All Packages Class Hierarchy This Package Previous Next Index
Interface jclass.chart.Chartable
- public interface Chartable
Interface used to represent a graphable
object. By implementing this interface,
any arbitrary object can be provided as
a data source for ChartDataView. The
Chartable interface does not allow for data
modification.
-
ARRAY
- Enum value indicating that the source data is interpreted as
array-style data.
-
GENERAL
- Enum value indicating that the source data is interpreted as
general-style data.
-
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.
ARRAY
public static final int ARRAY
- Enum value indicating that the source data is interpreted as
array-style data. The first array or row of data encountered
specifies the x values for all data series. Every row after
the first row specifies the y values for a single data series.
GENERAL
public static final int GENERAL
- Enum value indicating that the source data is interpreted as
general-style data. For general data, the rows in the data
source are assumed to be sent in groups of two; the first
row in a group specifies the x values, and the second row
specifies the y values.
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