de.laures.cewolf.taglib.tags
Class ChartImgTag

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended byjavax.servlet.jsp.tagext.BodyTagSupport
          extended byde.laures.cewolf.taglib.tags.CewolfBodyTag
              extended byde.laures.cewolf.taglib.html.AbstractHTMLBaseTag
                  extended byde.laures.cewolf.taglib.html.HTMLImgTag
                      extended byde.laures.cewolf.taglib.tags.ChartImgTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.BodyTag, CewolfRootTag, javax.servlet.jsp.tagext.IterationTag, Mapped, java.io.Serializable, javax.servlet.jsp.tagext.Tag, TaglibConstants, WebConstants
Direct Known Subclasses:
ChartImgURLTag

public class ChartImgTag
extends HTMLImgTag
implements CewolfRootTag, Mapped, TaglibConstants, WebConstants

This is the tag implementation of the <img> tag. This tag inputs the proper <img> tag into the HTML page delivered to the client. It therefor determines the chart ID which will be used by the rendering servlet to retrieve the chart.

Author:
glaures
See Also:
ChartImage, Serialized Form

Field Summary
 
Fields inherited from interface de.laures.cewolf.taglib.TaglibConstants
ANCHOR_EAST, ANCHOR_NORTH, ANCHOR_SOUTH, ANCHOR_WEST, TOOLTIPS_ENABLED_KEY
 
Fields inherited from interface de.laures.cewolf.WebConstants
AMPERSAND, HEIGHT_PARAM, IMG_PARAM, MIME_PNG, MIME_SVG, SESSIONID_KEY, WIDTH_PARAM
 
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag
EVAL_BODY_BUFFERED, EVAL_BODY_TAG
 
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
ChartImgTag()
           
 
Method Summary
 int doAfterBody()
           
 int doEndTag()
           
 int doStartTag()
           
 void enableMapping()
          Method setUsemap.
 java.lang.String getChartid()
           
 java.lang.String getChartId()
          Method getChartId.
 int getHeight()
           
 java.lang.Object getRenderingInfo()
          Method getImageKey.
 int getTimeout()
           
 int getWidth()
           
 void setChartid(java.lang.String id)
           
 void setMime(java.lang.String mimeType)
          Sets the mimeType.
 void setRenderer(java.lang.String renderer)
           
 void setTimeout(int timeout)
           
 void writeAttributes(java.io.Writer wr)
           
 
Methods inherited from class de.laures.cewolf.taglib.html.HTMLImgTag
setAlign, setAlt, setBorder, setHeight, setHspace, setIsmap, setLongdesc, setSrc, setUsemap, setVspace, setWidth
 
Methods inherited from class de.laures.cewolf.taglib.html.AbstractHTMLBaseTag
setClass, setDir, setHtmltitle, setLang, setOnclick, setOndbclick, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setStyle
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doInitBody, getBodyContent, getPreviousOut, release, setBodyContent
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.servlet.jsp.tagext.Tag
getParent, setPageContext, setParent
 

Constructor Detail

ChartImgTag

public ChartImgTag()
Method Detail

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doStartTag in class AbstractHTMLBaseTag
Throws:
javax.servlet.jsp.JspException

doAfterBody

public int doAfterBody()
                throws javax.servlet.jsp.JspException
Specified by:
doAfterBody in interface javax.servlet.jsp.tagext.IterationTag
Throws:
javax.servlet.jsp.JspException

doEndTag

public int doEndTag()
             throws javax.servlet.jsp.JspException
Specified by:
doEndTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doEndTag in class AbstractHTMLBaseTag
Throws:
javax.servlet.jsp.JspException

getRenderingInfo

public java.lang.Object getRenderingInfo()
                                  throws CewolfException
Description copied from interface: Mapped
Method getImageKey.

Specified by:
getRenderingInfo in interface Mapped
Returns:
int
Throws:
CewolfException

enableMapping

public void enableMapping()
Description copied from interface: Mapped
Method setUsemap.

Specified by:
enableMapping in interface Mapped

getChartId

public java.lang.String getChartId()
Description copied from interface: CewolfRootTag
Method getChartId.

Specified by:
getChartId in interface CewolfRootTag
Returns:
String

setChartid

public void setChartid(java.lang.String id)

getChartid

public java.lang.String getChartid()

setRenderer

public void setRenderer(java.lang.String renderer)

getWidth

public int getWidth()

getHeight

public int getHeight()

setMime

public void setMime(java.lang.String mimeType)
Sets the mimeType.

Parameters:
mimeType - The mimeType to set

writeAttributes

public void writeAttributes(java.io.Writer wr)
Overrides:
writeAttributes in class HTMLImgTag
See Also:
AbstractHTMLBaseTag.writeAttributes(Writer)

getTimeout

public int getTimeout()
Returns:
Returns the timeout.

setTimeout

public void setTimeout(int timeout)
Parameters:
timeout - The timeout to set.