de.laures.cewolf.cpp
Class DialEnhancer
java.lang.Object
de.laures.cewolf.cpp.DialEnhancer
- All Implemented Interfaces:
- ChartPostProcessor, java.io.Serializable
public class DialEnhancer
- extends java.lang.Object
- implements ChartPostProcessor, java.io.Serializable
A postprocessor for changing details of a Dial plot.
pointerType "pin" or "pointer"; default pointer
dialText text to display on the dial; optional
lowerBound optional; default 0; starting value for the scale
upperBound optional; default 100; end value for the scale
majorTickIncrement optional; default 10; value increment between major tick marks
minorTickCount optional; default 4; minor tick marks to put between major tick marks
Usage:
<chart:chartpostprocessor id="dialEnhancer">
<chart:param name="pointerType" value="pin"/>
<chart:param name="dialText" value="(km/h)"/>
<chart:param name="lowerBound" value="0.1"/>
<chart:param name="upperBound" value="0.1"/>
<chart:param name="majorTickIncrement" value="20"/>
<chart:param name="minorTickCount" value="9"/>
</chart:chartpostprocessor>
- See Also:
- Serialized Form
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 |
DialEnhancer
public DialEnhancer()
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 supportedparams
- parameters passed to the postprocessor. These are defined in the JSP- See Also:
ChartPostProcessorTag
cewolf tag library - web charts with JFreeChart