This interface defines the methods to access chart data. It has to deal
with several difficulties. The model is basically
resembling a Swing table model. Furthermore, in the implementation it
needs to be defined whether the datasets are organized in rows or in columns,
whether the x-axis values are numeric etc. In order to layout
certain components, there must be methods to return the maximum and minimum
values.
A DataSet is a series of figures belonging together, whereas a column
is the value printed at the x-axis. They can be rendered using specific
Format classes.
author: mueller version: 1.0
getColumnValueAt(int set, int col) Returns a specific column value.
Parameters: set - the data set index Parameters: col - the column index the column value.
public int
getDataSetLength(int set) Returns the length of a certain dataset.
Returns a specific column value.
Parameters: col - the column index the column value. In case of numeric columns this isalways a Number object.
getColumnValueAt
publicObject getColumnValueAt(int set, int col)(Code)
Returns a specific column value.
Parameters: set - the data set index Parameters: col - the column index the column value. In case of numeric columns this isalways a Number object.
Returns the length of a certain dataset. Note that for proper
rendering all datasets should have an equal length.
Parameters: set - the DataSet index the int length of a DataSet
Returns the Value in a specific dataset at a certain index.
Parameters: set - the DataSet index Parameters: index - the value index in the DataSet the value Object
Sets the ChartDataModelConstraints object for the given
axis binding.
Parameters: axis - the Axis constant Parameters: constraints - the ChartDataModelConstraints object a ChartDataModelConstraints object.
public void setValueAt(int set, int index, Object value)(Code)
Sets the value in a specific dataset at the given index.
Parameters: set - the DataSet index Parameters: index - the value index in the DataSet Parameters: value - the value to be stored