de.laures.cewolf.cpp
Class VisualEnhancer
java.lang.Object
de.laures.cewolf.cpp.VisualEnhancer
- All Implemented Interfaces:
- ChartPostProcessor, java.io.Serializable
public class VisualEnhancer
- extends java.lang.Object
- implements ChartPostProcessor, java.io.Serializable
A postprocessor for altering the border and padding of a chart. It supports the following parameters:
border true/false; optional, default true; whether or not a border is drawn around the chart
borderpaint optional; default #000000 (i.e., black); the color of the border
top optional; default 1; sets the top padding between the chart border and the chart drawing area
left optional; default 1; sets the left padding between the chart border and the chart drawing area
right optional; default 1; sets the right padding between the chart border and the chart drawing area
bottom optional; default 1; sets the bottom padding between the chart border and the chart drawing area
plotTop optional; default 4; sets the top padding of the plot
plotLeft optional; default 8; sets the left padding of the plot
plotRight optional; default 8; sets the right padding of the plot
plotBottom optional; default 4; sets the bottom padding of the plot
rangeIncludesZero true/false; optional; default true; whether the range (Y) axis always includes zero
showDomainAxes true/false; optional; default true; whether or not to show any domain (X) axes
showRangeAxes true/false; optional; default true; whether or not to show any range (Y) axes
Usage:
<chart:chartpostprocessor id="visualEnhance">
<chart:param name="border" value="true" />
<chart:param name="borderpaint" value="#4488BB" />
<chart:param name="top" value="5" />
<chart:param name="left" value="5" />
<chart:param name="right" value="5" />
<chart:param name="bottom" value="5" />
<chart:param name="plotTop" value="0" />
<chart:param name="plotLeft" value="0" />
<chart:param name="plotRight" value="0" />
<chart:param name="plotBottom" value="0" />
<chart:param name="rangeIncludesZero" value="false" />
<chart:param name="showDomainAxes" value="true" />
<chart:param name="showRangeAxes" value="true" />
</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 |
VisualEnhancer
public VisualEnhancer()
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