lt.monarch.chart.models
Interface MatrixDataModel

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

public interface MatrixDataModel
extends DataModel

General matrix data model interface.


Method Summary
Modifier and Type Method and Description
 int getPointCount(MatrixDimensions dimension)
          Gets the count of point in the specified dimension.
 java.lang.Object getValueAt(DataColumnType type, int row, int column)
          Get value at specified point.
 void setValueAt(DataColumnType type, int row, int column, java.lang.Object value)
          Sets value at the 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 row,
                            int column)
Get value at specified point.

Parameters:
type - data column type
row - row of the matrix
column - column of the matrix
Returns:
matrix element value

setValueAt

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

Parameters:
type - data column type
row - row number of the matrix
column - column number of the matrix
value - value to set to the specified point

getPointCount

int getPointCount(MatrixDimensions dimension)
Gets the count of point in the specified dimension. If dimension is ROWS then it returns the count of rows, if COLUMNS then count of columns.

Parameters:
dimension - dimension of the matrix
Returns:
count of either rows or columns