lt.monarch.chart.models
Class MatrixDataModelChangeEvent

java.lang.Object
  extended by lt.monarch.chart.models.DataModelChangeEvent
      extended by lt.monarch.chart.models.MatrixDataModelChangeEvent

public class MatrixDataModelChangeEvent
extends DataModelChangeEvent

Matrix data model change event class


Nested Class Summary
Modifier and Type Class and Description
 
Nested classes/interfaces inherited from class lt.monarch.chart.models.DataModelChangeEvent
DataModelChangeEvent.DataModelEvent
 
Field Summary
Modifier and Type Field and Description
protected  int column
           
protected  int firstRow
           
protected  int lastRow
           
 
Fields inherited from class lt.monarch.chart.models.DataModelChangeEvent
action, olddValues, source
 
Constructor Summary
Constructor and Description
MatrixDataModelChangeEvent(DataModel source, DataModelChangeEvent.DataModelEvent action, int firstRow, int lastRow)
          Matrix data model change event constructor.
MatrixDataModelChangeEvent(DataModel source, DataModelChangeEvent.DataModelEvent action, int firstRow, int lastRow, int column)
          Matrix data model change event constructor
MatrixDataModelChangeEvent(DataModel source, DataModelChangeEvent.DataModelEvent action, int firstRow, int lastRow, int column, java.lang.Object[] oldValue)
          Matrix data model change event constructor
MatrixDataModelChangeEvent(DataModel source, DataModelChangeEvent.DataModelEvent action, int firstRow, int lastRow, java.lang.Object[] oldValue)
          Matrix data model change event constructor.
 
Method Summary
Modifier and Type Method and Description
 int getColumn()
          Gets the column, where the change was performed
 int getFirstRow()
          Gets the first row where the change was performed
 int getLastRow()
          Gets the last row where the change was performed
 
Methods inherited from class lt.monarch.chart.models.DataModelChangeEvent
getAction, getOldValues, getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

firstRow

protected int firstRow

lastRow

protected int lastRow

column

protected int column
Constructor Detail

MatrixDataModelChangeEvent

public MatrixDataModelChangeEvent(DataModel source,
                                  DataModelChangeEvent.DataModelEvent action,
                                  int firstRow,
                                  int lastRow,
                                  int column)
Matrix data model change event constructor

Parameters:
source - source of the data model, where the changes were made
action - action type made in the data model
firstRow - first row in the data model, where the change was performed
lastRow - last row in the data model, where the change was performed
column - column, where the change was performed

MatrixDataModelChangeEvent

public MatrixDataModelChangeEvent(DataModel source,
                                  DataModelChangeEvent.DataModelEvent action,
                                  int firstRow,
                                  int lastRow,
                                  int column,
                                  java.lang.Object[] oldValue)
Matrix data model change event constructor

Parameters:
source - source of the data model, where the changes were made
action - action type made in the data model
firstRow - first row in the data model, where the change was performed
lastRow - last row in the data model, where the change was performed
column - column, where the change was performed
oldValue - when know is used to specify the old values (usually one value here)

MatrixDataModelChangeEvent

public MatrixDataModelChangeEvent(DataModel source,
                                  DataModelChangeEvent.DataModelEvent action,
                                  int firstRow,
                                  int lastRow)
Matrix data model change event constructor. This means all rows were changed.

Parameters:
source - source of the data model, where the changes were made
action - action type made in the data model
firstRow - first row in the data model, where the change was performed
lastRow - last row in the data model, where the change was performed

MatrixDataModelChangeEvent

public MatrixDataModelChangeEvent(DataModel source,
                                  DataModelChangeEvent.DataModelEvent action,
                                  int firstRow,
                                  int lastRow,
                                  java.lang.Object[] oldValue)
Matrix data model change event constructor. This means all rows were changed.

Parameters:
source - source of the data model, where the changes were made
action - action type made in the data model
firstRow - first row in the data model, where the change was performed
lastRow - last row in the data model, where the change was performed
oldValue - when know is used to specify the old values (usually array here)
Method Detail

getColumn

public int getColumn()
Gets the column, where the change was performed

Returns:
the column

getFirstRow

public int getFirstRow()
Gets the first row where the change was performed

Returns:
the first row of where the change was performed

getLastRow

public int getLastRow()
Gets the last row where the change was performed

Returns:
the last row of where the change was performed