Class GridData<T>
Implements
Inherited Members
Namespace:
Assembly: .dll
Syntax
public class GridData<T> implements IDoubleValuesProvider
Type Parameters
| Name | Description |
|---|---|
| T |
Constructors
GridData(Class<T> itemsClass, dataSeries.IndexCalculator indexCalculator)
Declaration
public GridData(Class<T> itemsClass, dataSeries.IndexCalculator indexCalculator)
Parameters
| Type | Name | Description |
|---|---|---|
| Class<T> | itemsClass | |
| dataSeries.IndexCalculator | indexCalculator |
Fields
VALUES_SHOULD_HAVE_SAME_SIZE_AS_GRID_DATA
Declaration
public static final String VALUES_SHOULD_HAVE_SAME_SIZE_AS_GRID_DATA
Field Value
| Type | Description |
|---|---|
| String |
indexCalculator
Declaration
public final dataSeries.IndexCalculator indexCalculator
Field Value
| Type | Description |
|---|---|
| dataSeries.IndexCalculator |
items
Declaration
public final ISciList<T> items
Field Value
| Type | Description |
|---|---|
| ISciList<T> |
Methods
copyFrom(T[] values)
Copies values to this instance
Declaration
public final void copyFrom(T[] values)
Parameters
| Type | Name | Description |
|---|---|---|
| T[] | values | Values to copy from |
copyFrom(IValues<T> values)
Copies values to this instance
Declaration
public final void copyFrom(IValues<T> values)
Parameters
| Type | Name | Description |
|---|---|---|
| IValues<T> | values | Values to copy from |
findIndex(double doubleValue, SearchMode searchMode, boolean isSorted)
Declaration
public int findIndex(double doubleValue, SearchMode searchMode, boolean isSorted)
Parameters
| Type | Name | Description |
|---|---|---|
| double | doubleValue | The double representation of value to find |
| SearchMode | searchMode | The search mode |
| boolean | isSorted | The flag which specified whether of not list is sorted in ascending order |
Returns
| Type | Description |
|---|---|
| int | The index of item in list |
get(int xIndex, int zIndex)
Gets the value with specified z and x index
Declaration
public final T get(int xIndex, int zIndex)
Parameters
| Type | Name | Description |
|---|---|---|
| int | xIndex | The xIndex to use |
| int | zIndex | The zIndex to use |
Returns
| Type | Description |
|---|---|
| T | The value at specified index |
getDoubleValue(int index)
Declaration
public final double getDoubleValue(int index)
Parameters
| Type | Name | Description |
|---|---|---|
| int | index |
Returns
| Type | Description |
|---|---|
| double |
getDoubleValues(DoubleValues doubleValues, IntegerValues indices)
Declaration
public final void getDoubleValues(DoubleValues doubleValues, IntegerValues indices)
Parameters
| Type | Name | Description |
|---|---|---|
| DoubleValues | doubleValues | |
| IntegerValues | indices |
getDoubleValues(DoubleValues doubleValues, int startIndex, int count)
Declaration
public final void getDoubleValues(DoubleValues doubleValues, int startIndex, int count)
Parameters
| Type | Name | Description |
|---|---|---|
| DoubleValues | doubleValues | |
| int | startIndex | |
| int | count |
getMinMax(IRange<T> range)
Gets the Min and Max values stored in this grid data
Declaration
public final void getMinMax(IRange<T> range)
Parameters
| Type | Name | Description |
|---|---|---|
| IRange<T> | range | The range to set |
pushRow(T[] row)
Pushes a row into the array, which discards one old row in a First In First Out fashion. use this method to scroll the GridData in the Z-direction
Declaration
public final void pushRow(T[] row)
Parameters
| Type | Name | Description |
|---|---|---|
| T[] | row | The row with new values |
pushRow(IValues<T> row)
Pushes a row into the array, which discards one old row in a First In First Out fashion. use this method to scroll the GridData in the Z-direction
Declaration
public final void pushRow(IValues<T> row)
Parameters
| Type | Name | Description |
|---|---|---|
| IValues<T> | row | The row with new values |
set(int xIndex, int zIndex, T value)
Sets the value with specified z and x index
Declaration
public final void set(int xIndex, int zIndex, T value)
Parameters
| Type | Name | Description |
|---|---|---|
| int | xIndex | The xIndex to use |
| int | zIndex | The zIndex to use |
| T | value | The value to set |
setRowAt(int index, T[] row)
Sets the row at the specified Z index
Declaration
public final void setRowAt(int index, T[] row)
Parameters
| Type | Name | Description |
|---|---|---|
| int | index | The z-index to use |
| T[] | row | The row with new values |
setRowAt(int index, IValues<T> row)
Sets the row at the specified Z index
Declaration
public final void setRowAt(int index, IValues<T> row)
Parameters
| Type | Name | Description |
|---|---|---|
| int | index | The z-index to use |
| IValues<T> | row | The row with new values |
size()
Declaration
public final int size()
Returns
| Type | Description |
|---|---|
| int |