org.pentaho.chart.plugin.jfreechart
Class JFreeChartPlugin

java.lang.Object
  extended by org.pentaho.chart.plugin.AbstractChartPlugin
      extended by org.pentaho.chart.plugin.jfreechart.JFreeChartPlugin
All Implemented Interfaces:
IChartPlugin

public class JFreeChartPlugin
extends AbstractChartPlugin

Author:
wseyler

Field Summary
static String PLUGIN_ID
           
 
Fields inherited from interface org.pentaho.chart.plugin.IChartPlugin
ERROR_DUPLICATE_SINGLETON, ERROR_INDETERMINATE_CHART_TYPE, ERROR_INVALID_DEFINITION, ERROR_MISSING_REQUIRED_DATA, RESULT_ERROR, RESULT_VALIDATED
 
Constructor Summary
JFreeChartPlugin()
           
 
Method Summary
 String getPluginId()
           
 Set<IOutput.OutputTypes> getSupportedOutputs()
          Returns a set of OutputTypes that this plugin can return (via the IOutput returned from renderChartDocument).
 IOutput renderChartDocument(ChartDocumentContext chartDocumentContext, ChartTableModel data)
          Renders the chart based on the chartDocument and data.
 IOutput renderChartDocument(ChartModel chartModel, IChartDataModel data)
           
 ChartResult validateChartDocument(ChartDocument chartDocument)
          Validates the current chart document.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PLUGIN_ID

public static final String PLUGIN_ID
See Also:
Constant Field Values
Constructor Detail

JFreeChartPlugin

public JFreeChartPlugin()
Method Detail

renderChartDocument

public IOutput renderChartDocument(ChartDocumentContext chartDocumentContext,
                                   ChartTableModel data)
Description copied from interface: IChartPlugin
Renders the chart based on the chartDocument and data. Chart can be accessed via the output parameter which gets returned from this method call

Returns:
IOutput

getPluginId

public String getPluginId()

renderChartDocument

public IOutput renderChartDocument(ChartModel chartModel,
                                   IChartDataModel data)

validateChartDocument

public ChartResult validateChartDocument(ChartDocument chartDocument)
Description copied from interface: IChartPlugin
Validates the current chart document. AbstractChartPlugin implements the validations that are NOT plugin specific. The plugin should override and call the super before doing it's validation

Specified by:
validateChartDocument in interface IChartPlugin
Overrides:
validateChartDocument in class AbstractChartPlugin
Returns:

getSupportedOutputs

public Set<IOutput.OutputTypes> getSupportedOutputs()
Description copied from interface: IChartPlugin
Returns a set of OutputTypes that this plugin can return (via the IOutput returned from renderChartDocument).

Returns: