de.laures.cewolf.taglib
Class CombinedChartDefinition
java.lang.Object
de.laures.cewolf.taglib.AbstractChartDefinition
de.laures.cewolf.taglib.CombinedChartDefinition
- All Implemented Interfaces:
- ChartHolder, ChartImageRenderListener, TaglibConstants, java.io.Serializable
public class CombinedChartDefinition
- extends AbstractChartDefinition
- implements java.io.Serializable
Chart definition subclass to handle combined charts
- Author:
- guido, tbardzil
- See Also:
- Serialized Form
Method Summary |
void |
addPlot(PlotDefinition pd)
|
java.lang.Object |
getDataset()
Returns the dataset produced when using this definition.The type of this object is dependant on the underlying
chart implementation. |
protected org.jfree.chart.JFreeChart |
produceChart()
|
void |
setLayout(java.lang.String layout)
|
Methods inherited from class de.laures.cewolf.taglib.AbstractChartDefinition |
addPostProcessor, addPostProcessorParams, getChart, getLegend, onImageRendered, removeLegend, setAntialias, setBackground, setBackgroundImageAlpha, setLegendAnchor, setPaint, setShowLegend, setTitle, setType, setXAxisLabel, setYAxisLabel |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
layout
private java.lang.String layout
plotDefinitions
private java.util.List plotDefinitions
drawingSupplier
private transient org.jfree.chart.plot.DrawingSupplier drawingSupplier
CombinedChartDefinition
public CombinedChartDefinition()
setLayout
public void setLayout(java.lang.String layout)
getDataset
public java.lang.Object getDataset()
throws DatasetProduceException
- Description copied from interface:
ChartHolder
- Returns the dataset produced when using this definition.The type of this object is dependant on the underlying
chart implementation. As of this version of Cewolf it is of type
org.jfree.data.Dataset.
- Specified by:
getDataset
in interface ChartHolder
- Returns:
- Object the dataset for this definition
- Throws:
DatasetProduceException
- if the dataset could not be produced
addPlot
public void addPlot(PlotDefinition pd)
produceChart
protected org.jfree.chart.JFreeChart produceChart()
throws DatasetProduceException,
ChartValidationException
- Specified by:
produceChart
in class AbstractChartDefinition
- Throws:
DatasetProduceException
ChartValidationException