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.
-
ChartDataModel()
- Default constructor for ChartDataModel.
-
getDataInterpretation()
-
-
getDataItem(int, int)
- Retrieves a data item from the data source.
-
getName()
- Gets the value of the Name property.
-
getNumRows()
- Gets the NumRows property of the data source, which
specifies the number of rows of data available.
-
getPointLabels()
- Gets the value of the PointLabels property.
-
getRow(int)
- Retrieves an entire row of data items.
-
getSeriesLabel(int)
- Gets the value of the SeriesLabel property.
-
getSeriesName(int)
- Gets the value of the SeriesName property.
ChartDataModel
public ChartDataModel()
- Default constructor for ChartDataModel.
getDataInterpretation
public abstract int getDataInterpretation()
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
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
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
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
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
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
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