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.


Variable Index

 o ARRAY
Enum value indicating that the source data is interpreted as array-style data.
 o GENERAL
Enum value indicating that the source data is interpreted as general-style data.

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.

Variables

 o ARRAY
  public final static 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.

 o GENERAL
  public final static 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.

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