de.laures.cewolf.taglib
Class SimpleChartDefinition

java.lang.Object
  extended by de.laures.cewolf.taglib.AbstractChartDefinition
      extended by de.laures.cewolf.taglib.SimpleChartDefinition
All Implemented Interfaces:
ChartHolder, ChartImageRenderListener, DataAware, TaglibConstants, java.io.Serializable

public class SimpleChartDefinition
extends AbstractChartDefinition
implements DataAware, java.io.Serializable

Author:
guido To change the template for this generated type comment go to Window>Preferences>Java>Code Generation>Code and Comments
See Also:
Serialized Form

Field Summary
private  DataContainer dataAware
           
 
Fields inherited from class de.laures.cewolf.taglib.AbstractChartDefinition
log, title, type, xAxisLabel, yAxisLabel
 
Fields inherited from interface de.laures.cewolf.taglib.TaglibConstants
ANCHOR_EAST, ANCHOR_NORTH, ANCHOR_SOUTH, ANCHOR_WEST, TOOLTIPS_ENABLED_KEY
 
Constructor Summary
SimpleChartDefinition()
           
 
Method Summary
 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 setDataProductionConfig(DatasetProducer dsp, java.util.Map params, boolean useCache)
           
 
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
 

Field Detail

dataAware

private DataContainer dataAware
Constructor Detail

SimpleChartDefinition

public SimpleChartDefinition()
Method Detail

produceChart

protected org.jfree.chart.JFreeChart produceChart()
                                           throws DatasetProduceException,
                                                  ChartValidationException
Specified by:
produceChart in class AbstractChartDefinition
Throws:
DatasetProduceException
ChartValidationException

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

setDataProductionConfig

public void setDataProductionConfig(DatasetProducer dsp,
                                    java.util.Map params,
                                    boolean useCache)
Specified by:
setDataProductionConfig in interface DataAware