de.laures.cewolf.cpp
Class MeterEnhancer
java.lang.Object
de.laures.cewolf.cpp.MeterEnhancer
- All Implemented Interfaces:
- ChartPostProcessor, java.io.Serializable
public class MeterEnhancer
- extends java.lang.Object
- implements ChartPostProcessor, java.io.Serializable
A postprocessor for changing details of a Meter plot.
units an arbitrary string to be displayed next to the numeric value; optional; default "Units"
needleColor optional; default #FFFFFF (i.e., white)
backgroundColor optional; default #000000 (i.e., black)
valueColor optional; default #FFFFFF (i.e., white)
Usage:
<chart:chartpostprocessor id="thermometerEnhancer">
<chart:param name="units" value="km/h" />
<chart:param name="needleColor" value="#336699" />
<chart:param name="valueColor" value="#99AACC" />
<chart:param name="backgroundColor" value="#CCCCCC" />
</chart:chartpostprocessor>
- See Also:
- Serialized Form
Method Summary |
void |
processChart(org.jfree.chart.JFreeChart chart,
java.util.Map<java.lang.String,java.lang.String> params)
Processes a generated chart. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MeterEnhancer
public MeterEnhancer()
processChart
public void processChart(org.jfree.chart.JFreeChart chart,
java.util.Map<java.lang.String,java.lang.String> 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 instanceparams
- parameters passed to the postprocessor. These are defined in the JSP- See Also:
ChartPostProcessorTag
cewolf tag library - web charts with JFreeChart