All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class jclass.chart.ChartDataModel

java.lang.Object
   |
   +----java.util.Observable
           |
           +----jclass.chart.ChartDataModel

public abstract class ChartDataModel
extends Observable
ChartDataModel is an arbitrary data source for JClass products. A DataSource object assumes that data can be retrieved as rows and columns. It is up to the product to interpret the data in the appropriate manner. For example, Chart will interpret every row pair as a series of x and y values. DataSources can be chained together as Observable/Observer pairs in order to transform the data. An example would be a DataSource that transposes the row and column values of its DataSource and presents that to a JClass product.


Constructor Index

 o ChartDataModel()
Default constructor for ChartDataModel.

Method Index

 o getDataInterpretation()
 o getDataItem(int, int)
Retrieves a data item from the data source.
 o getName()
Gets the value of the Name property.
 o getNumRows()
Gets the NumRows property of the data source, which specifies the number of rows of data available.
 o getPointLabels()
Gets the value of the PointLabels property.
 o getRow(int)
Retrieves an entire row of data items.
 o getSeriesLabel(int)
Gets the value of the SeriesLabel property.
 o getSeriesName(int)
Gets the value of the SeriesName property.

Constructors

 o ChartDataModel
 public ChartDataModel()
Default constructor for ChartDataModel.

Methods

 o getDataInterpretation
 public abstract int getDataInterpretation()
 o getDataItem
 public abstract Object getDataItem(int row,
                                    int column)
Retrieves a data item from the data source.

Parameters:
row - row index
column - column index
Returns:
object-derived data item
 o getRow
 public abstract Vector getRow(int row)
Retrieves an entire row of data items.

Parameters:
row - row index
Returns:
array of object-derived data items
 o getNumRows
 public abstract int getNumRows()
Gets the NumRows property of the data source, which specifies the number of rows of data available.

Returns:
number of available rows
 o getPointLabels
 public abstract String[] getPointLabels()
Gets 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.

Returns:
array of point labels
 o getSeriesName
 public abstract String getSeriesName(int row)
Gets 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.

Parameters:
row - index of the row for which the name is returned
Returns:
row/series name
 o getSeriesLabel
 public abstract String getSeriesLabel(int row)
Gets 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.

Parameters:
row - index of the row for which the label is returned
Returns:
row/series label
 o getName
 public abstract String getName()
Gets the value of the Name property. The Name property defines the name of the data object


All Packages  Class Hierarchy  This Package  Previous  Next  Index