de.laures.cewolf.taglib.tags
Class ColorTag

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.tags.ColorTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.BodyTag, ChartPostProcessor, javax.servlet.jsp.tagext.IterationTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag
Direct Known Subclasses:
PointTag

public class ColorTag
extends CewolfBodyTag
implements ChartPostProcessor

Tag <color> which sets the color of its parent tag. This must implement the Colored interface

Author:
Guido Laures
See Also:
Colored, Serialized Form

Field Summary
 
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
ColorTag()
           
 
Method Summary
 int doEndTag()
           
 void processChart(java.lang.Object chart, java.util.Map args)
          Processes a generated chart.
 void setColor(java.lang.String s)
           
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doAfterBody, doInitBody, doStartTag, 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

ColorTag

public ColorTag()
Method Detail

doEndTag

public int doEndTag()
Specified by:
doEndTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doEndTag in class CewolfBodyTag
See Also:
Tag.doEndTag()

setColor

public void setColor(java.lang.String s)

processChart

public void processChart(java.lang.Object chart,
                         java.util.Map args)
Description copied from interface: ChartPostProcessor
Processes a generated chart. This method is called by the ChartProducer after a chart instance is generated and before it is rendered (if so). The ChartProducer is responsible for post processing a chart dependant on and only on the provided parameters. This means that the same parameters should result in the same post processings.

Specified by:
processChart in interface ChartPostProcessor
Parameters:
chart - the chart instnce. Concrete class depends on the rendering implementation. Currently a org.jfree.chart.JFreeChart is passed.
args - paramters passed to the postprocessor. These are defined in the JSP
See Also:
ChartPostProcessorTag