de.laures.cewolf.taglib.tags
Class ColorTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by javax.servlet.jsp.tagext.BodyTagSupport
          extended by de.laures.cewolf.taglib.tags.CewolfBodyTag
              extended by de.laures.cewolf.taglib.tags.ColorTag
All Implemented Interfaces:
ChartPostProcessor, java.io.Serializable, javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, 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 class de.laures.cewolf.taglib.tags.CewolfBodyTag
log
 
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport
bodyContent
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
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()
           
protected  java.awt.Color getColor()
           
 void processChart(java.lang.Object chart, java.util.Map args)
          Processes a generated chart.
protected  void reset()
           
 void setColor(java.lang.String s)
           
 
Methods inherited from class de.laures.cewolf.taglib.tags.CewolfBodyTag
doAfterEndTag
 
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
clone, equals, finalize, 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()

reset

protected void reset()
Specified by:
reset in class CewolfBodyTag

setColor

public void setColor(java.lang.String s)

getColor

protected java.awt.Color getColor()

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


Copyright © {inceptionYear}-2008 null. All Rights Reserved.