|
JClass DesktopViews 6.3.0 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.klg.jclass.chart.JCChartFactory
Factory class that creates JCChart
objects from various sources.
Field Summary | |
static int |
DATA_FILE_TEXT
|
static int |
DATA_FILE_XML
|
static int |
EMBED_DATA
|
static int |
HTML
Format (i.e. |
static int |
NO_DATA
Ways to save data. |
Constructor Summary | |
JCChartFactory()
|
Method Summary | |
static com.klg.jclass.chart.JCChart |
makeChartFromFile(String fileName,
com.klg.jclass.util.io.LoadProperties loadProperties,
String name,
int type)
Makes a JCChart instance by reading HTML-style chart parameters from a
file. |
static com.klg.jclass.chart.JCChart |
makeChartFromFile(String fileName,
String name)
Makes a JCChart instance by reading HTML-style chart parameters
from a file. |
static com.klg.jclass.chart.JCChart |
makeChartFromFile(String fileName,
String name,
int type)
Makes a JCChart instance by reading HTML-style chart parameters from a
file. |
static com.klg.jclass.chart.JCChart |
makeChartFromReader(Reader reader,
com.klg.jclass.util.io.LoadProperties loadProperties,
String name,
int type)
Makes a JCChart instance by reading HTML-style chart parameters from a reader. |
static com.klg.jclass.chart.JCChart |
makeChartFromReader(Reader reader,
String name,
int type)
Makes a JCChart instance by reading HTML-style chart parameters from a reader. |
static com.klg.jclass.chart.JCChart |
makeChartFromStream(InputStream stream,
com.klg.jclass.util.io.LoadProperties loadProperties,
String name,
int type)
Makes a JCChart instance by reading HTML-style chart parameters
from an input stream. |
static com.klg.jclass.chart.JCChart |
makeChartFromStream(InputStream stream,
String name,
int type)
Makes a JCChart instance by reading HTML-style chart parameters
from an input stream. |
static com.klg.jclass.chart.JCChart |
makeChartFromString(String params,
com.klg.jclass.util.io.LoadProperties loadProperties,
String name,
int type)
Makes a JCChart instance by reading HTML-style chart parameters
from a String. |
static com.klg.jclass.chart.JCChart |
makeChartFromString(String params,
String name)
Makes a JCChart instance by reading HTML-style chart parameters
from a String. |
static com.klg.jclass.chart.JCChart |
makeChartFromString(String params,
String name,
int type)
Makes a JCChart instance by reading HTML-style chart parameters
from a String. |
static void |
saveChartToFile(com.klg.jclass.chart.JCChart chart,
String fileName,
int type)
Saves JCChart to a file in HTML format. |
static void |
saveChartToFile(com.klg.jclass.chart.JCChart chart,
String fileName,
int type,
int dataSaveType,
String dataFileName)
Deprecated. As of DesktopViews 6.2. Set data output properties on each ChartDataView separately and use saveChartToFile(chart, fileName, type) |
static void |
saveChartToStream(com.klg.jclass.chart.JCChart chart,
OutputStream stream,
int type)
Saves JCChart to an output stream in HTML format. |
static void |
saveChartToStream(com.klg.jclass.chart.JCChart chart,
OutputStream stream,
int type,
int dataSaveType,
String dataFileName)
Deprecated. As of DesktopViews 6.2. Set data output properties on each ChartDataView separately and use saveChartToStream(chart, stream, type) |
static String |
saveChartToString(com.klg.jclass.chart.JCChart chart,
int type)
Saves JCChart to a String in HTML format. |
static String |
saveChartToString(com.klg.jclass.chart.JCChart chart,
int type,
int dataSaveType,
String dataFileName)
Deprecated. As of DesktopViews 6.2. Set data output properties on each ChartDataView separately and use saveChartToString(chart, type) |
static void |
setOutputDataPropertiesOnChart(com.klg.jclass.chart.JCChart chart,
int dataSaveType,
String outputDataFileName)
Set the dataSaveType and the outputDataFileName on all dataViews of the chart. |
protected static void |
updateChart(com.klg.jclass.chart.JCChart chart,
String name,
int type,
Object inputSource,
com.klg.jclass.util.io.LoadProperties loadProperties)
Updates a JCChart instance by reading HTML-style chart parameters from an input source. |
static void |
updateChartFromFile(com.klg.jclass.chart.JCChart chart,
String fileName,
com.klg.jclass.util.io.LoadProperties loadProperties,
String name,
int type)
Updates a JCChart instance by reading HTML-style chart
parameters from a file. |
static void |
updateChartFromFile(com.klg.jclass.chart.JCChart chart,
String fileName,
String name,
int type)
Updates a JCChart instance by reading HTML-style chart
parameters from a file. |
static void |
updateChartFromReader(com.klg.jclass.chart.JCChart chart,
Reader reader,
com.klg.jclass.util.io.LoadProperties loadProperties,
String name,
int type)
Updates a JCChart instance by reading HTML-style chart parameters from a reader. |
static void |
updateChartFromReader(com.klg.jclass.chart.JCChart chart,
Reader reader,
String name,
int type)
Updates a JCChart instance by reading HTML-style chart parameters from a reader. |
static void |
updateChartFromStream(com.klg.jclass.chart.JCChart chart,
InputStream stream,
com.klg.jclass.util.io.LoadProperties loadProperties,
String name,
int type)
Updates a JCChart instance by reading HTML-style chart
parameters from an input stream. |
static void |
updateChartFromStream(com.klg.jclass.chart.JCChart chart,
InputStream stream,
String name,
int type)
Updates a JCChart instance by reading HTML-style chart
parameters from an input stream. |
static void |
updateChartFromString(com.klg.jclass.chart.JCChart chart,
String params,
com.klg.jclass.util.io.LoadProperties loadProperties,
String name,
int type)
Updates a JCChart instance by reading HTML-style chart parameters from
a String. |
static void |
updateChartFromString(com.klg.jclass.chart.JCChart chart,
String params,
String name,
int type)
Updates a JCChart instance by reading HTML-style chart parameters from
a String. |
static void |
updateChartWithData(com.klg.jclass.chart.JCChart chart,
int dataType,
Object data,
int dataViewIndex,
com.klg.jclass.util.io.LoadProperties lp)
Updates a JCChart instance with new data coming from a file, an input stream, or a reader. |
static void |
updateChartWithData(com.klg.jclass.chart.JCChart chart,
int dataType,
Object data,
com.klg.jclass.util.io.LoadProperties lp)
Updates a JCChart instance with new data coming from a file, an input stream, or a reader. |
static void |
updateChartWithData(com.klg.jclass.chart.JCChart chart,
int dataType,
Object data,
String dataViewName,
com.klg.jclass.util.io.LoadProperties lp)
Updates a JCChart instance with new data coming from a file, an input stream, or a reader. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int HTML
public static final int NO_DATA
public static final int EMBED_DATA
public static final int DATA_FILE_TEXT
public static final int DATA_FILE_XML
Constructor Detail |
public JCChartFactory()
Method Detail |
public static void updateChartWithData(com.klg.jclass.chart.JCChart chart, int dataType, Object data, com.klg.jclass.util.io.LoadProperties lp) throws IOException
chart
- The chart to updatedataType
- The type of data (must be DATA_FILE_TEXT
or
DATA_FILE_XML
for anything to happen).data
- the data object (can be a filename String, an
InputStream
, or a Reader
)lp
- a LoadProperties
object. This object
contains properties relating to file loading and XML parsing.
IOException
- If problems reading the data objectpublic static void updateChartWithData(com.klg.jclass.chart.JCChart chart, int dataType, Object data, String dataViewName, com.klg.jclass.util.io.LoadProperties lp) throws IOException
chart
- The chart to updatedataType
- The type of data (must be DATA_FILE_TEXT
or
DATA_FILE_XML
for anything to happen).data
- the data object (can be a filename String, an
InputStream
, or a Reader
)dataViewName
- The name of the ChartDataView object to update. If the
provided name does not match the name of any existing ChartDataView
object, then nothing is done.lp
- a LoadProperties
object. This object
contains properties relating to file loading and XML parsing.
IOException
- If problems reading the data objectpublic static void updateChartWithData(com.klg.jclass.chart.JCChart chart, int dataType, Object data, int dataViewIndex, com.klg.jclass.util.io.LoadProperties lp) throws IOException
chart
- The chart to updatedataType
- The type of data (must be DATA_FILE_TEXT
or
DATA_FILE_XML
for anything to happen).data
- the data object (can be a filename String, an
InputStream
, or a Reader
)dataViewIndex
- The index of the ChartDataView object to update. If no
ChartDataView exists for the provided index, this method will attempt to
create a ChartDataView with that index and set the data on this new
ChartDataView object. This may result in the chart throwing an
IllegalArgumentException if the index is more than one higher than the
current number of dataviews.lp
- a LoadProperties
object. This object
contains properties relating to file loading and XML parsing.
IOException
- If problems reading the data objectprotected static void updateChart(com.klg.jclass.chart.JCChart chart, String name, int type, Object inputSource, com.klg.jclass.util.io.LoadProperties loadProperties) throws IOException, JCIOException, JCParseException
<PARAM NAME=propertyName VALUE="value">
chart
- The chart instance to be updated (if null, nothing is done)inputSource
- The input sourcename
- the name of the chart being read from parameters. If non-null,
only parameters of the form name.parameter are applied to this chart.type
- The type of input. Currently this is always JCChartFactory.HTML.loadProperties
- instance of LoadProperties containing information
that will be used during the load of chart properties. If not
needed, it should be null.
IOException
- If problems reading from the input source
JCIOException
- If an internal file referenced within the input source
cannot be found. These can be ignored by setting the appropriate option.
JCParseException
- If errors in parsing the input sourceJCChart
,
JCFileAccessor
public static com.klg.jclass.chart.JCChart makeChartFromStream(InputStream stream, com.klg.jclass.util.io.LoadProperties loadProperties, String name, int type) throws IOException, JCIOException, JCParseException
JCChart
instance by reading HTML-style chart parameters
from an input stream. See the JClass Chart manual for more information on
the available parameters. The parameters are expected to be of the form:
<PARAM NAME=propertyName VALUE="value">
stream
- the input sourcename
- The name of the chart being read from parameters. If non-null,
only parameters of the form name.parameter
are applied to
this chart.type
- The type of file to save. Currently this is always
JCChartFactory.HTML
.loadProperties
- instance of LoadProperties containing information
that will be used during the load of chart properties.
JCChart
instance created from parameters
IOException
- If problems reading from the input stream
JCIOException
- If an internal file referenced within the input source
cannot be found. These can be ignored by setting the appropriate option.
JCParseException
- If errors in parsing the input sourceJCChart
,
JCFileAccessor
public static com.klg.jclass.chart.JCChart makeChartFromStream(InputStream stream, String name, int type) throws IOException, JCIOException, JCParseException
JCChart
instance by reading HTML-style chart parameters
from an input stream. See the JClass Chart manual for more information on
the available parameters. The parameters are expected to be of the form:
<PARAM NAME=propertyName VALUE="value">
stream
- the input sourcename
- The name of the chart being read from parameters. If non-null,
only parameters of the form name.parameter
are applied to
this chart.type
- The type of file to save. Currently this is always
JCChartFactory.HTML
.
JCChart
instance created from parameters
IOException
- If problems reading from the input stream
JCIOException
- If an internal file referenced within the input source
cannot be found. These can be ignored by setting the appropriate option.
JCParseException
- If errors in parsing the input sourceJCChart
,
JCFileAccessor
public static void updateChartFromStream(com.klg.jclass.chart.JCChart chart, InputStream stream, com.klg.jclass.util.io.LoadProperties loadProperties, String name, int type) throws IOException, JCIOException, JCParseException
JCChart
instance by reading HTML-style chart
parameters from an input stream. See the JClass Chart manual for more
information on the available parameters. The parameters are expected to be
of the form: <PARAM NAME=propertyName VALUE="value">
chart
- the chart instance to be updated (if null, nothing is done)stream
- the input sourcename
- The name of the chart being read from parameters. If non-null,
only parameters of the form name.parameter
are applied to
this chart.type
- The type of file to save. Currently this is always
JCChartFactory.HTML
.loadProperties
- instance of LoadProperties containing information
that will be used during the load of chart properties.
IOException
- If problems reading from the input stream
JCIOException
- If an internal file referenced within the input source
cannot be found. These can be ignored by setting the appropriate option.
JCParseException
- If errors in parsing the input sourceJCChart
,
JCFileAccessor
public static void updateChartFromStream(com.klg.jclass.chart.JCChart chart, InputStream stream, String name, int type) throws IOException, JCIOException, JCParseException
JCChart
instance by reading HTML-style chart
parameters from an input stream. See the JClass Chart manual for more
information on the available parameters. The parameters are expected to be
of the form: <PARAM NAME=propertyName VALUE="value">
chart
- the chart instance to be updated (if null, nothing is done)stream
- the input sourcename
- The name of the chart being read from parameters. If non-null,
only parameters of the form name.parameter
are applied to
this chart.type
- The type of file to save. Currently this is always
JCChartFactory.HTML
.
IOException
- If problems reading from the input stream
JCIOException
- If an internal file referenced within the input source
cannot be found. These can be ignored by setting the appropriate option.
JCParseException
- If errors in parsing the input sourceJCChart
,
JCFileAccessor
public static com.klg.jclass.chart.JCChart makeChartFromReader(Reader reader, com.klg.jclass.util.io.LoadProperties loadProperties, String name, int type) throws IOException, JCIOException, JCParseException
reader
- The input sourcename
- the name of the chart being read from parameters. If non-null,
only parameters of the form name.parameter are applied to this chart.type
- The type of input. Currently this is always JCChartFactory.HTML.loadProperties
- instance of LoadProperties containing information
that will be used during the load of chart properties.
IOException
- If problems reading from the reader
JCIOException
- If an internal file referenced within the input source
cannot be found. These can be ignored by setting the appropriate option.
JCParseException
- If errors in parsing the input sourceJCChart
,
JCFileAccessor
public static com.klg.jclass.chart.JCChart makeChartFromReader(Reader reader, String name, int type) throws IOException, JCIOException, JCParseException
reader
- The input sourcename
- the name of the chart being read from parameters. If non-null,
only parameters of the form name.parameter are applied to this chart.type
- The type of input. Currently this is always JCChartFactory.HTML.
IOException
- If problems reading from the reader
JCIOException
- If an internal file referenced within the input source
cannot be found. These can be ignored by setting the appropriate option.
JCParseException
- If errors in parsing the input sourceJCChart
,
JCFileAccessor
public static void updateChartFromReader(com.klg.jclass.chart.JCChart chart, Reader reader, com.klg.jclass.util.io.LoadProperties loadProperties, String name, int type) throws IOException, JCIOException, JCParseException
chart
- The chart instance to be updated (if null, nothing is done)reader
- The input sourcename
- the name of the chart being read from parameters. If non-null,
only parameters of the form name.parameter are applied to this chart.type
- The type of input. Currently this is always JCChartFactory.HTML.loadProperties
- instance of LoadProperties containing information
that will be used during the load of chart properties.
IOException
- If problems reading from the reader
JCIOException
- If an internal file referenced within the input source
cannot be found. These can be ignored by setting the appropriate option.
JCParseException
- If errors in parsing the input sourceJCChart
,
JCFileAccessor
public static void updateChartFromReader(com.klg.jclass.chart.JCChart chart, Reader reader, String name, int type) throws IOException, JCIOException, JCParseException
chart
- The chart instance to be updated (if null, nothing is done)reader
- The input sourcename
- the name of the chart being read from parameters. If non-null,
only parameters of the form name.parameter are applied to this chart.type
- The type of input. Currently this is always JCChartFactory.HTML.
IOException
- If problems reading from the reader
JCIOException
- If an internal file referenced within the input source
cannot be found. These can be ignored by setting the appropriate option.
JCParseException
- If errors in parsing the input sourceJCChart
,
JCFileAccessor
public static com.klg.jclass.chart.JCChart makeChartFromFile(String fileName, com.klg.jclass.util.io.LoadProperties loadProperties, String name, int type) throws IOException, JCIOException, JCParseException
JCChart
instance by reading HTML-style chart parameters from a
file. See the JClass Chart manual for more information on the
available parameters. The parameters are expected to be of the form:
<PARAM NAME=propertyName VALUE="value">
fileName
- the file name of the input source containing chart parametersname
- The name of the chart being read from parameters. If non-null,
only parameters of the form name.parameter
are applied to
this chart.type
- The type of file to save. Currently this is always
JCChartFactory.HTML
.loadProperties
- instance of LoadProperties containing information
that will be used during the load of chart properties.
JCChart
instance created from parameters
IOException
- If problems reading from the file
JCIOException
- If an internal file referenced within the input source
cannot be found. These can be ignored by setting the appropriate option.
JCParseException
- If errors in parsing the input sourceJCChart
,
JCFileAccessor
public static com.klg.jclass.chart.JCChart makeChartFromFile(String fileName, String name, int type) throws IOException, JCIOException, JCParseException
JCChart
instance by reading HTML-style chart parameters from a
file. See the JClass Chart manual for more information on the
available parameters. The parameters are expected to be of the form:
<PARAM NAME=propertyName VALUE="value">
fileName
- the file name of the input source containing chart parametersname
- The name of the chart being read from parameters. If non-null,
only parameters of the form name.parameter
are applied to
this chart.type
- The type of file to save. Currently this is always
JCChartFactory.HTML
.
JCChart
instance created from parameters
IOException
- If problems reading from the file
JCIOException
- If an internal file referenced within the input source
cannot be found. These can be ignored by setting the appropriate option.
JCParseException
- If errors in parsing the input sourceJCChart
,
JCFileAccessor
public static void updateChartFromFile(com.klg.jclass.chart.JCChart chart, String fileName, com.klg.jclass.util.io.LoadProperties loadProperties, String name, int type) throws IOException, JCIOException, JCParseException
JCChart
instance by reading HTML-style chart
parameters from a file. See the JClass Chart manual for more information on
the available parameters. The parameters are expected to be of the form:
<PARAM NAME=propertyName VALUE="value">
chart
- the chart instance to be updated (if null, nothing is done)fileName
- the file name of the input source containing chart parametersname
- The name of the chart being read from parameters. If non-null,
only parameters of the form name.parameter
are applied to
this chart.type
- The type of file to save. Currently this is always
JCChartFactory.HTML
.loadProperties
- instance of LoadProperties containing information
that will be used during the load of chart properties.
IOException
- If problems reading from the file
JCIOException
- If an internal file referenced within the input source
cannot be found. These can be ignored by setting the appropriate option.
JCParseException
- If errors in parsing the input sourceJCChart
,
JCFileAccessor
public static void updateChartFromFile(com.klg.jclass.chart.JCChart chart, String fileName, String name, int type) throws IOException, JCIOException, JCParseException
JCChart
instance by reading HTML-style chart
parameters from a file. See the JClass Chart manual for more information on
the available parameters. The parameters are expected to be of the form:
<PARAM NAME=propertyName VALUE="value">
chart
- the chart instance to be updated (if null, nothing is done)fileName
- the file name of the input source containing chart parametersname
- The name of the chart being read from parameters. If non-null,
only parameters of the form name.parameter
are applied to
this chart.type
- The type of file to save. Currently this is always
JCChartFactory.HTML
.
IOException
- If problems reading from the file
JCIOException
- If an internal file referenced within the input source
cannot be found. These can be ignored by setting the appropriate option.
JCParseException
- If errors in parsing the input sourceJCChart
,
JCFileAccessor
public static com.klg.jclass.chart.JCChart makeChartFromFile(String fileName, String name)
JCChart
instance by reading HTML-style chart parameters
from a file. See the JClass Chart manual for more information on the
available parameters. The parameters are expected to be of the form:
<PARAM NAME=propertyName VALUE="value">
fileName
- the name of the file containing chart parametersname
- The name of the chart being read from parameters. If non-null,
only parameters of the form name.parameter
are applied to
this chart.
JCChart
instance created from parametersJCChart
,
JCFileAccessor
public static com.klg.jclass.chart.JCChart makeChartFromString(String params, com.klg.jclass.util.io.LoadProperties loadProperties, String name, int type) throws JCIOException, JCParseException
JCChart
instance by reading HTML-style chart parameters
from a String. See the JClass Chart manual for more information on the
available parameters. The parameters are expected to be of the form:
<PARAM NAME=propertyName VALUE="value">
params
- a String containing chart parametersname
- The name of the chart being read from parameters. If non-null,
only parameters of the form name.parameter
are applied to
this chart.type
- the format of text within the String (currently this is always
JCChartFactory.HTML
)loadProperties
- instance of LoadProperties containing information
that will be used during the load of chart properties.
JCChart
instance created from parameters
JCIOException
- If an internal file referenced within the input source
cannot be found. These can be ignored by setting the appropriate option.
JCParseException
- If errors in parsing the input sourceJCChart
,
JCStringAccessor
public static com.klg.jclass.chart.JCChart makeChartFromString(String params, String name, int type) throws JCIOException, JCParseException
JCChart
instance by reading HTML-style chart parameters
from a String. See the JClass Chart manual for more information on the
available parameters. The parameters are expected to be of the form:
<PARAM NAME=propertyName VALUE="value">
params
- a String containing chart parametersname
- The name of the chart being read from parameters. If non-null,
only parameters of the form name.parameter
are applied to
this chart.type
- the format of text within the String (currently this is always
JCChartFactory.HTML
)
JCChart
instance created from parameters
JCIOException
- If an internal file referenced within the input source
cannot be found. These can be ignored by setting the appropriate option.
JCParseException
- If errors in parsing the input sourceJCChart
,
JCStringAccessor
public static void updateChartFromString(com.klg.jclass.chart.JCChart chart, String params, com.klg.jclass.util.io.LoadProperties loadProperties, String name, int type) throws JCIOException, JCParseException
JCChart
instance by reading HTML-style chart parameters from
a String. See the JClass Chart manual for more information on the
available parameters. The parameters are expected to be of the form:
<PARAM NAME=propertyName VALUE="value">
chart
- the chart instance to be updated (if null, nothing is done)params
- a String containing chart parameters.name
- The name of the chart being read from parameters. If non-null,
only parameters of the form name.parameter
are applied to
this chart.type
- the format of text within the String (currently this is always
JCChartFactory.HTML
)loadProperties
- instance of LoadProperties containing information
that will be used during the load of chart properties.
JCIOException
- If an internal file referenced within the input source
cannot be found. These can be ignored by setting the appropriate option.
JCParseException
- If errors in parsing the input sourceJCChart
,
JCStringAccessor
public static void updateChartFromString(com.klg.jclass.chart.JCChart chart, String params, String name, int type) throws JCIOException, JCParseException
JCChart
instance by reading HTML-style chart parameters from
a String. See the JClass Chart manual for more information on the
available parameters. The parameters are expected to be of the form:
<PARAM NAME=propertyName VALUE="value">
chart
- the chart instance to be updated (if null, nothing is done)params
- a String containing chart parameters.name
- The name of the chart being read from parameters. If non-null,
only parameters of the form name.parameter
are applied to
this chart.type
- the format of text within the String (currently this is always
JCChartFactory.HTML
)
JCIOException
- If an internal file referenced within the input source
cannot be found. These can be ignored by setting the appropriate option.
JCParseException
- If errors in parsing the input sourceJCChart
,
JCStringAccessor
public static com.klg.jclass.chart.JCChart makeChartFromString(String params, String name)
JCChart
instance by reading HTML-style chart parameters
from a String. See the JClass Chart manual for more information on the
available parameters. The parameters are expected to be of the form:
<PARAM NAME=propertyName VALUE="value">
params
- a String containing chart parameters.name
- The name of the chart being read from parameters. If non-null,
only parameters of the form name.parameter
are applied to
this chart.
JCChart
instance created from parametersJCChart
,
JCStringAccessor
public static void setOutputDataPropertiesOnChart(com.klg.jclass.chart.JCChart chart, int dataSaveType, String outputDataFileName)
chart
- The chart to be saveddataSaveType
- How to write out the data. This must be one of
NO_DATA
, EMBED_DATA
,
DATA_FILE_TEXT
, or DATA_FILE_XML
. Respectively,
this means that either no data is saved, data is embeded in the HTML or
XML file, data is saved as a separate text file, or data is saved as a
separate XML file. Note that if a separate text or xml file is written
out, the corresponding property in the chart output is set to point to
the absolute file name set in the outputDataFileName.outputDataFileName
- the name of the data file if the data is being
written to a separate file (a default name is used if NULL is passed in)public static void saveChartToStream(com.klg.jclass.chart.JCChart chart, OutputStream stream, int type, int dataSaveType, String dataFileName) throws IOException
JCChart
to an output stream in HTML format.
chart
- the chart to be savedstream
- the output streamtype
- format type to save (currently this is always
JCChartFactory.HTML
)dataSaveType
- How to write out the data. This must be one of
NO_DATA
, EMBED_DATA
,
DATA_FILE_TEXT
, or DATA_FILE_XML
. Respectively
this means that either no data is saved, data is embeded in the HTML or
XML file, data is saved as a separate text file, or data is saved as a
separate XML file.dataFileName
- the name of the data file if the data is being written
to a separate file (a default name is used if NULL
is passed
in)
IOException
public static void saveChartToStream(com.klg.jclass.chart.JCChart chart, OutputStream stream, int type) throws IOException
JCChart
to an output stream in HTML format.
Output of data and images is specified by setting properties on the object
which holds the data/image. For data, create an
OutputDataProperties
object and set it on the corresponding
ChartDataView
. For images, create an
OutputProperties
object and set in on the
JCFillStyle
object (or other object which holds the image).
chart
- the chart to be savedstream
- the output streamtype
- format type to save (currently this is always
JCChartFactory.HTML
)
IOException
OutputProperties
,
OutputDataProperties
,
ChartDataView
,
JCFillStyle
public static void saveChartToFile(com.klg.jclass.chart.JCChart chart, String fileName, int type, int dataSaveType, String dataFileName) throws IOException
JCChart
to a file in HTML format.
chart
- the chart to be savedfileName
- the name of the filetype
- format type to save (currently this is always
JCChartFactory.HTML
)dataSaveType
- How to write out the data. This must be one of
NO_DATA
, EMBED_DATA
,
DATA_FILE_TEXT
, or DATA_FILE_XML
. Respectively
this means that either no data is saved, data is embeded in the HTML or
XML file, data is saved as a separate text file, or data is saved as a
separate XML file.dataFileName
- the name of the data file if the data is being written
to a separate file (a default name is used if NULL
is passed
in)
IOException
public static void saveChartToFile(com.klg.jclass.chart.JCChart chart, String fileName, int type) throws IOException
JCChart
to a file in HTML format.
Output of data and images is specified by setting properties on the object
which holds the data/image. For data, create an
OutputDataProperties
object and set it on the corresponding
ChartDataView
. For images, create an
OutputProperties
object and set in on the
JCFillStyle
object (or other object which holds the image).
chart
- the chart to be savedfileName
- the name of the filetype
- format type to save (currently this is always
JCChartFactory.HTML
)
IOException
OutputProperties
,
OutputDataProperties
,
ChartDataView
,
JCFillStyle
public static String saveChartToString(com.klg.jclass.chart.JCChart chart, int type, int dataSaveType, String dataFileName)
JCChart
to a String in HTML format.
chart
- the chart to be savedtype
- format type to save (currently this is always
JCChartFactory.HTML
)dataSaveType
- How to write out the data. This must be one of
NO_DATA
, EMBED_DATA
,
DATA_FILE_TEXT
, or DATA_FILE_XML
. Respectively
this means that either no data is saved, data is embeded in the HTML or
XML file, data is saved as a separate text file, or data is saved as a
separate XML file.dataFileName
- the name of the data file if the data is being written
to a separate file (a default name is used if NULL
is passed
in)
public static String saveChartToString(com.klg.jclass.chart.JCChart chart, int type) throws JCIOException
JCChart
to a String in HTML format.
Output of data and images is specified by setting properties on the object
which holds the data/image. For data, create an
OutputDataProperties
object and set it on the corresponding
ChartDataView
. For images, create an
OutputProperties
object and set in on the
JCFillStyle
object (or other object which holds the image).
chart
- the chart to be savedtype
- format type to save (currently this is always
JCChartFactory.HTML
)
JCIOException
OutputProperties
,
OutputDataProperties
,
ChartDataView
,
JCFillStyle
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |