org.pentaho.chart.plugin.jfreechart.outputs
Class JFreeChartOutput
java.lang.Object
org.pentaho.chart.plugin.jfreechart.outputs.JFreeChartOutput
- All Implemented Interfaces:
- IOutput
public class JFreeChartOutput
- extends Object
- implements IOutput
- Author:
- wseyler
JFreeChartOutput
public JFreeChartOutput(org.jfree.chart.JFreeChart chart)
persistChart
public OutputStream persistChart(OutputStream outputStream,
IOutput.OutputTypes fileType,
int width,
int height)
throws PersistenceException
- Description copied from interface:
IOutput
- Sends the current chart to the outputStream and formats it to the file of fileType.
- Specified by:
persistChart
in interface IOutput
- Returns:
-
- Throws:
PersistenceException
persistMap
public Writer persistMap(Writer outputStream,
String mapName)
throws PersistenceException
- Description copied from interface:
IOutput
- Persists the current Map to the outputStream using the mapname for the generated map.
For this call to be useful it should follow a call to PersistChart.
- Specified by:
persistMap
in interface IOutput
- Returns:
-
- Throws:
PersistenceException
getDrawable
public Object getDrawable()
- Specified by:
getDrawable
in interface IOutput