de.laures.cewolf
Interface ChartHolder

All Known Implementing Classes:
AbstractChartDefinition, ChartImageDefinition, CombinedChartDefinition, OverlaidChartDefinition, SimpleChartDefinition

public interface ChartHolder

An object of this type represents a full descritption of a chart. Therefore it is able to produce the chart and dataset object resulting out of this definition.

Author:
Guido Laures

Method Summary
 java.lang.Object getChart()
          Returns a chart.
 java.lang.Object getDataset()
          Returns the dataset produced when using this definition.The type of this object is dependant on the underlying chart implementation.
 

Method Detail

getChart

java.lang.Object getChart()
                          throws DatasetProduceException,
                                 PostProcessingException,
                                 ChartValidationException
Returns a chart. The type of this object is dependant on the underlying chart implementation. As of this version of Cewolf it is of type org.jfree.chart.JFreeChart.

Returns:
the chart object for this definition
Throws:
DatasetProduceException - if there could be no data produced for the cahrt
ConfigurationException - if there is something wrong in the Cewolf configuration
PostProcessingException - if a post processor failed to process the chart
ChartValidationException

getDataset

java.lang.Object getDataset()
                            throws DatasetProduceException
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.

Returns:
Object the dataset for this definition
Throws:
DatasetProduceException - if the dataset could not be produced


Copyright © {inceptionYear}-2008 null. All Rights Reserved.