lt.monarch.chart.models
Interface ArrayDataModel

All Superinterfaces:
DataModel
All Known Implementing Classes:
AbstractDataModel, ChartDataModel, StackedDataModel

public interface ArrayDataModel
extends DataModel

Array data model interface.


Method Summary
Modifier and Type Method and Description
 void addColumn(DataColumnType type, DataModelColumn column)
          Adds new data column of the specified type to data model.
 int getPointCount()
          Counts the data model size.
 java.lang.Object getValueAt(DataColumnType type, int index)
          Gets the data value at the specified point.
 void setValueAt(DataColumnType type, int index, java.lang.Object value)
          Sets value at specified point.
 
Methods inherited from interface lt.monarch.chart.models.DataModel
addListener, castToArray, castToMatrix, dispose, fireDataChanged, getAddressDimensions, getValuesInPoint, hasColumn, removeListener
 

Method Detail

getValueAt

java.lang.Object getValueAt(DataColumnType type,
                            int index)
Gets the data value at the specified point.

Parameters:
type - data column type (KEY, VALUE and etc.)
index - data value index in the data model
Returns:
requested data value

setValueAt

void setValueAt(DataColumnType type,
                int index,
                java.lang.Object value)
Sets value at specified point.

Parameters:
type - data column type (KEY, VALUE and etc.)
index - data value index in the data model
value - value to set

getPointCount

int getPointCount()
Counts the data model size.

Returns:
data model size.

addColumn

void addColumn(DataColumnType type,
               DataModelColumn column)
Adds new data column of the specified type to data model. If data model previously contained given column, the old value is replaced by the specified value.

Parameters:
type - new data column type
column - new data column object