de.laures.cewolf.cpp
Class BarRendererProcessor
java.lang.Object
de.laures.cewolf.cpp.BarRendererProcessor
- All Implemented Interfaces:
- ChartPostProcessor, java.io.Serializable
public class BarRendererProcessor
- extends java.lang.Object
- implements ChartPostProcessor, java.io.Serializable
A postprocessor for setting/removing the bar outline (default: false),
the item margin for 2D and 3D bar charts (default: 0.2%), whether or not
item labels are visible (default: no), the color to use for item labels (default: black)
and their font size (default: 12).
It also has an option to set custom category colors (as opposed to custom series colors,
which is what the SeriesPaintProcessor provides); if you use this you'll want to set showlegend=false.
Usage:
<chart:chartpostprocessor id="barRenderer">
<chart:param name="outline" value="true"/>
<chart:param name="itemMargin" value="0.1"/>
<chart:param name="showItemLabels" value="true"/>
<chart:param name="itemLabelColor" value="#336699" />
<chart:param name="itemLabelSize" value="14" />
<chart:param name="categoryColors" value="true"/>
<chart:param name="0" value="#FFFFAA" />
<chart:param name="1" value="#AAFFAA" />
<chart:param name="2" value="#FFAAFF" />
<chart:param name="3" value="#FFAAAA" />
</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 |
BarRendererProcessor
public BarRendererProcessor()
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