de.laures.cewolf.cpp
Class CompassEnhancer

java.lang.Object
  extended by de.laures.cewolf.cpp.CompassEnhancer
All Implemented Interfaces:
ChartPostProcessor, java.io.Serializable

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

A postprocessor for changing details of a Compass plot.
drawBorder boolean; default false
needleType arrow,line,long,pin,plum,pointer,ship,wind,middlepin; default arrow
needleFill optional; default #000000 (i.e., black)
needleOutline optional; default #000000 (i.e., black)

Usage:

<chart:chartpostprocessor id="compassEnhancer">
  <chart:param name="needleType" value="ship" />
  <chart:param name="drawBorder" value="false" />
  <chart:param name="needleFill" value="#336699" />
  <chart:param name="needleOutline" value="#99AACC" />
</chart:chartpostprocessor>

See Also:
Serialized Form

Constructor Summary
CompassEnhancer()
           
 
Method Summary
 void processChart(java.lang.Object chart, java.util.Map params)
          Processes a generated chart.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompassEnhancer

public CompassEnhancer()
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 postprocessings.

Specified by:
processChart in interface ChartPostProcessor
Parameters:
chart - the chart instance; only JFreeChart instances are supported
params - parameters passed to the postprocessor. These are defined in the JSP
See Also:
ChartPostProcessorTag


cewolf tag library - web charts with JFreeChart