public final class Exports extends TeeBase
Title: Exports class
Description:
Example:
//( 1) Save the template into a Stream...
ByteArrayOutputStream m = new ByteArrayOutputStream();
myChart.getExport().getTemplate().toStream(m);
//( 2) Load the template into other Chart...
copyChart.setChart(copyChart.getImport().getTemplate().fromStream(
new ByteArrayInputStream(m.toByteArray())
));
//( 3) repaint the Chart
copyChart.repaint();
Copyright (c) 2005-2007 by Steema Software SL. All Rights Reserved.
Company: Steema Software SL
| Modifier and Type | Class and Description |
|---|---|
class |
Exports.DataExport |
chart, InternalUse| Constructor and Description |
|---|
Exports(IBaseChart chart) |
| Modifier and Type | Method and Description |
|---|---|
Exports.DataExport |
getData()
Gets a class instance with methods to export chart Series data.
|
ImageExport |
getImage()
Gets a class instance with methods to create images from chart.
|
TemplateExport |
getTemplate()
Gets a class instance with methods to store the chart to a file or
stream using Java standard serialization and XMLEncoder mechanisms.
|
getChart, invalidate, setBooleanProperty, setChart, setColorProperty, setDoubleProperty, setIntegerProperty, setStringPropertypublic Exports(IBaseChart chart)
public Exports.DataExport getData()
public ImageExport getImage()
public TemplateExport getTemplate()
Example:
myChart.getExport().getTemplate().toXML(tmpName);
showSavedFile(tmpName);