lt.monarch.chart.models
Class ArrayDataModelChangeEvent
java.lang.Object
lt.monarch.chart.models.DataModelChangeEvent
lt.monarch.chart.models.ArrayDataModelChangeEvent
public class ArrayDataModelChangeEvent
extends DataModelChangeEvent
Array data model change event class.
Method Summary
int |
getFirstIndex()
Gets first index of changed data point in the data model |
int |
getLastIndex()
Gets last index of changed data point in the data model |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
firstIndex
protected int firstIndex
lastIndex
protected int lastIndex
ArrayDataModelChangeEvent
public ArrayDataModelChangeEvent(DataModel source,
DataModelChangeEvent.DataModelEvent action,
int firstIndex,
int lastIndex,
java.lang.Object[] previousValues)
- Array data model change event constructor.
If previous values are supplied as one dimensional array, then it will be used as one point data,
if two dimensional array, then as a list of points in the data model
- Parameters:
source - source of the data model, where the changes were madeaction - action type made in the data modelfirstIndex - first index of changed point in the data modellastIndex - last index of changed data point in the data modelpreviousValues - array of previous values that has been deleted or changed
ArrayDataModelChangeEvent
public ArrayDataModelChangeEvent(DataModel source,
DataModelChangeEvent.DataModelEvent action,
int firstIndex,
int lastIndex)
- Array data model change event constructor
- Parameters:
source - source of the data model, where the changes were madeaction - action type made in the data modelfirstIndex - first index of changed point in the data modellastIndex - last index of changed data point in the data model
getFirstIndex
public int getFirstIndex()
- Gets first index of changed data point in the data model
- Returns:
- the first index value
getLastIndex
public int getLastIndex()
- Gets last index of changed data point in the data model
- Returns:
- the last index value