All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class jclass.chart.InputStreamDataSource

java.lang.Object
   |
   +----jclass.chart.InputStreamDataSource

public class InputStreamDataSource
extends Object
implements Chartable, JCSerializable
This class is the base for any data source that relies on input from some stream, which includes files, urls, large strings, etc.

Properties

Name Description
DataInterpretation The DataInterpretation property is responsible for what format is the data in.
DataItem The DataItem property specifies a data item from the data source.
Name The Name property defines the name of the data object. Default value is null.
NumRows The NumRows property of the data source, which specifies the number of rows of data available.
PointLabels The value of the PointLabels property. The PointLabels property is an indexed property that contains a list of point labels provided by the data source.
Row The Row property specifies an entire row of data items.
SeriesLabel The value of the SeriesLabel property. The SeriesLabel property defines the label that is associated with a data series. The SeriesLabel can be unparsed JCString text, whereas SeriesName is a name used for retrieving data series.
SeriesName The value of the SeriesName property. The SeriesName property is a string associated with a row in a data source. It is used by ChartDataView as the name for a data series.


Constructor Index

 o InputStreamDataSource()
 o InputStreamDataSource(InputStream)
The constructor takes the InputStream and reads in all the appropriate data.

Method Index

 o ctor(InputStream)
Subclasses may need to set the stream up before they can call super(), so provide a default ctor and the ctor() function to replace the super() call (ie.
 o getDataInterpretation()
What format is the data in?
 o getDataItem(int, int)
Obtain the value of a single data item
 o getName()
 o getNumRows()
 o getPointLabels()
 o getRow(int)
 o getSeriesLabel(int)
 o getSeriesName(int)

Constructors

 o InputStreamDataSource
 public InputStreamDataSource(InputStream i) throws IOException
The constructor takes the InputStream and reads in all the appropriate data.

Throws: IOException
An IOException will be thrown if there are any errors while reading in the data.
 o InputStreamDataSource
 protected InputStreamDataSource()

Methods

 o ctor
 protected void ctor(InputStream i) throws IOException
Subclasses may need to set the stream up before they can call super(), so provide a default ctor and the ctor() function to replace the super() call (ie. AppletDataSource)

 o getDataInterpretation
 public int getDataInterpretation()
What format is the data in?

Returns:
s Either Chartable.ARRAY or Chartable.GENERAL
See Also:
getDataInterpretation
 o getDataItem
 public synchronized Object getDataItem(int row,
                                        int column)
Obtain the value of a single data item

Returns:
s Some object, preferably derived from Number
See Also:
getDataItem
 o getRow
 public synchronized Vector getRow(int row)
See Also:
getRow
 o getNumRows
 public int getNumRows()
See Also:
getNumRows
 o getPointLabels
 public String[] getPointLabels()
See Also:
getPointLabels
 o getSeriesName
 public String getSeriesName(int row)
See Also:
getSeriesName
 o getSeriesLabel
 public String getSeriesLabel(int row)
See Also:
getSeriesLabel
 o getName
 public String getName()
See Also:
getName

All Packages  Class Hierarchy  This Package  Previous  Next  Index