org.pentaho.chart.plugin.api
Interface IOutput

All Known Implementing Classes:
JFreeChartOutput, OpenFlashChartOutput, XmlChartOutput

public interface IOutput

Author:
wseyler

Nested Class Summary
static class IOutput.OutputTypes
           
 
Method Summary
 Object getDrawable()
           
 OutputStream persistChart(OutputStream outputStream, IOutput.OutputTypes fileType, int width, int height)
          Sends the current chart to the outputStream and formats it to the file of fileType.
 Writer persistMap(Writer outputStream, String mapName)
          Persists the current Map to the outputStream using the mapname for the generated map.
 

Method Detail

persistChart

OutputStream persistChart(OutputStream outputStream,
                          IOutput.OutputTypes fileType,
                          int width,
                          int height)
                          throws PersistenceException
Sends the current chart to the outputStream and formats it to the file of fileType.

Parameters:
outputStream -
fileType -
Returns:
Throws:
PersistenceException

persistMap

Writer persistMap(Writer outputStream,
                  String mapName)
                  throws PersistenceException
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.

Parameters:
outputStream -
mapName -
Returns:
Throws:
PersistenceException

getDrawable

Object getDrawable()