de.laures.cewolf.example
Class ExtraTitleEnhancer

java.lang.Object
  extended byde.laures.cewolf.example.ExtraTitleEnhancer
All Implemented Interfaces:
ChartPostProcessor, java.io.Serializable

public class ExtraTitleEnhancer
extends java.lang.Object
implements ChartPostProcessor, java.io.Serializable

An example chart postprocessor which adds an extra sub title to a chart.

Author:
Guido Laures
See Also:
Serialized Form

Constructor Summary
ExtraTitleEnhancer()
          Creates a new instance of ExtraTitleEnhancer
 
Method Summary
 void processChart(java.lang.Object chart, java.util.Map params)
          Processes a generated chart.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExtraTitleEnhancer

public ExtraTitleEnhancer()
Creates a new instance of ExtraTitleEnhancer

Method Detail

processChart

public void processChart(java.lang.Object chart,
                         java.util.Map params)
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.
params - paramters passed to the postprocessor. These are defined in the JSP
See Also:
ChartPostProcessorTag