de.laures.cewolf.cpp
Class LegendEnhancer
java.lang.Object
de.laures.cewolf.cpp.LegendEnhancer
- All Implemented Interfaces:
- ChartPostProcessor, java.io.Serializable
public class LegendEnhancer
- extends java.lang.Object
- implements ChartPostProcessor, java.io.Serializable
A postprocessor for modifying the legend of a chart. It supports the following parameters:
fontname optional; default SansSerif
fontsize optional; default is 18
paint optional; default #000000 (i.e., black)
backgroundpaint optional; default #FFFFFF (i.e., white)
bold true/false; optional; default true
italic true/false; optional; default false
top optional; default 1; sets the top padding between the legend border and the legend
left optional; default 1; sets the left padding between the legend border and the legend
right optional; default 1; sets the right padding between the legend border and the legend
bottom optional; default 1; sets the bottom padding between the legend border and the legend
Usage:
<chart:chartpostprocessor id="subTitle">
<chart:param name="fontname" value="Serif" />
<chart:param name="fontsize" value="24" />
<chart:param name="paint" value="#FF8800" />
<chart:param name="backgroundpaint" value="#0088FF" />
<chart:param name="bold" value="false" />
<chart:param name="italic" value="true" />
<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: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 |
LegendEnhancer
public LegendEnhancer()
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