public class GridData<T extends java.lang.Comparable<T>>
extends java.lang.Object
implements com.scichart.data.model.IDoubleValuesProvider
Modifier and Type | Field and Description |
---|---|
IndexCalculator |
indexCalculator |
com.scichart.data.model.ISciList<T> |
items |
static java.lang.String |
VALUES_SHOULD_HAVE_SAME_SIZE_AS_GRID_DATA |
Constructor and Description |
---|
GridData(java.lang.Class<T> itemsClass,
IndexCalculator indexCalculator) |
Modifier and Type | Method and Description |
---|---|
void |
copyFrom(com.scichart.core.model.IValues<T> values)
Copies values to this instance
|
void |
copyFrom(T[] values)
Copies values to this instance
|
T |
get(int xIndex,
int zIndex)
Gets the value with specified z and x index
|
void |
getDoubleValues(com.scichart.core.model.DoubleValues doubleValues,
com.scichart.core.model.IntegerValues indices) |
void |
getDoubleValues(com.scichart.core.model.DoubleValues doubleValues,
int startIndex,
int count) |
void |
getMinMax(com.scichart.data.model.IRange<T> range)
Gets the Min and Max values stored in this grid data
|
void |
pushRow(com.scichart.core.model.IValues<T> row)
Pushes a row into the array, which discards one old row in a First In First Out fashion.
|
void |
pushRow(T[] row)
Pushes a row into the array, which discards one old row in a First In First Out fashion.
|
void |
set(int xIndex,
int zIndex,
T value)
Sets the value with specified z and x index
|
void |
setRowAt(int index,
com.scichart.core.model.IValues<T> row)
Sets the row at the specified Z index
|
void |
setRowAt(int index,
T[] row)
Sets the row at the specified Z index
|
int |
size() |
public static final java.lang.String VALUES_SHOULD_HAVE_SAME_SIZE_AS_GRID_DATA
public final IndexCalculator indexCalculator
public GridData(java.lang.Class<T> itemsClass, IndexCalculator indexCalculator)
public final void getDoubleValues(com.scichart.core.model.DoubleValues doubleValues, com.scichart.core.model.IntegerValues indices)
getDoubleValues
in interface com.scichart.data.model.IDoubleValuesProvider
public final void getDoubleValues(com.scichart.core.model.DoubleValues doubleValues, int startIndex, int count)
getDoubleValues
in interface com.scichart.data.model.IDoubleValuesProvider
public final int size()
size
in interface com.scichart.data.model.IDoubleValuesProvider
public final void getMinMax(com.scichart.data.model.IRange<T> range)
range
- The range to setpublic final T get(int xIndex, int zIndex)
xIndex
- The xIndex to usezIndex
- The zIndex to usepublic final void set(int xIndex, int zIndex, T value)
xIndex
- The xIndex to usezIndex
- The zIndex to usevalue
- The value to setpublic final void pushRow(T[] row)
row
- The row with new valuespublic final void pushRow(com.scichart.core.model.IValues<T> row)
row
- The row with new valuespublic final void setRowAt(int index, T[] row)
index
- The z-index to userow
- The row with new valuespublic final void setRowAt(int index, com.scichart.core.model.IValues<T> row)
index
- The z-index to userow
- The row with new valuespublic final void copyFrom(T[] values)
values
- Values to copy frompublic final void copyFrom(com.scichart.core.model.IValues<T> values)
values
- Values to copy from