edu.mssm.crover.webservices.rbde
Class SequenceDiagramGif

java.lang.Object
  |
  +--javax.servlet.GenericServlet
        |
        +--javax.servlet.http.HttpServlet
              |
              +--edu.mssm.crover.webservices.rbde.SequenceDiagramGif
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig, javax.servlet.SingleThreadModel

public class SequenceDiagramGif
extends javax.servlet.http.HttpServlet
implements javax.servlet.SingleThreadModel

Builds and returns a GIF image of the sequence diagram. The response is set to image/gif and the image is encoded on the fly from a buffered stream without storing an image file on the server. SingleThreadModel ensures the calls are handled in the order they appear in the HTML file.

See Also:
Serialized Form

Constructor Summary
SequenceDiagramGif()
           
 
Method Summary
 void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
static org.apache.ecs.ElementContainer getResidueNumberMapContainer(javax.servlet.http.HttpServletResponse response, CustomizedDiagram cd)
          Returns an ElementContainer to be used for setting the clickable HTML map (usemap).
static org.apache.ecs.ElementContainer getURLAnnotationsMapContainer(CustomizedDiagram cd)
          Returns an ElementContainer to be used for setting the clickable HTML map (usemap).
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SequenceDiagramGif

public SequenceDiagramGif()
Method Detail

doPost

public void doPost(javax.servlet.http.HttpServletRequest request,
                   javax.servlet.http.HttpServletResponse response)
            throws java.io.IOException,
                   javax.servlet.ServletException
Overrides:
doPost in class javax.servlet.http.HttpServlet
java.io.IOException
javax.servlet.ServletException

doGet

public void doGet(javax.servlet.http.HttpServletRequest request,
                  javax.servlet.http.HttpServletResponse response)
           throws java.io.IOException,
                  javax.servlet.ServletException
Overrides:
doGet in class javax.servlet.http.HttpServlet
java.io.IOException
javax.servlet.ServletException

getResidueNumberMapContainer

public static org.apache.ecs.ElementContainer getResidueNumberMapContainer(javax.servlet.http.HttpServletResponse response,
                                                                           CustomizedDiagram cd)
Returns an ElementContainer to be used for setting the clickable HTML map (usemap). The ElementContainer contains the settings of all the glyphs in the current Image and their residue numbers, or ranges in case of elipsis.


getURLAnnotationsMapContainer

public static org.apache.ecs.ElementContainer getURLAnnotationsMapContainer(CustomizedDiagram cd)
Returns an ElementContainer to be used for setting the clickable HTML map (usemap). The ElementContainer contains the settings of all the glyphs and their URL annotations in the current Image.



Copyright @ 2003 Mount Sinai School of Medicine. All Rights Reserved.