org.pentaho.chart.plugin.xml
Class XmlChartOutput

java.lang.Object
  extended by org.pentaho.chart.plugin.xml.XmlChartOutput
All Implemented Interfaces:
IOutput

public class XmlChartOutput
extends Object
implements IOutput

Todo: Document Me

Author:
Thomas Morgner

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.pentaho.chart.plugin.api.IOutput
IOutput.OutputTypes
 
Constructor Summary
XmlChartOutput(ChartDocument document)
           
 
Method Summary
 Object getDrawable()
           
static boolean isEmpty(String source, boolean trim)
           
 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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlChartOutput

public XmlChartOutput(ChartDocument document)
Method Detail

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

isEmpty

public static boolean isEmpty(String source,
                              boolean trim)

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