C
- The class representing the cells of the gridpublic interface Grid<C>
extends java.lang.Iterable<C>
Modifier and Type | Method and Description |
---|---|
C |
get(double[] coords)
Gets the cell at the specified coordinates.
|
C |
get(int[] coords)
Gets the cell at the specified coordinates.
|
java.util.Collection<C> |
getAllValues()
Return the collection of all values contained in the grid
|
double[] |
getCoordRanges()
Get the extent of the coordinate axes for all values within this grid.
|
java.util.Set<double[]> |
getCoordsWithValues()
Get the set of coordinates that have non-null values
|
int |
getDimensionCount()
Gets the dimension count.
|
int |
getNumValues()
Get the number of non-null values that have been set in the grid
|
boolean |
isContinuous()
Return whether the grid values should be considered continuous.
|
C |
set(double[] coords,
C element)
Sets the cell content at the specified coordinates
|
C |
set(int[] coords,
C element)
Sets the cell content at the specified coordinates
|
C get(double[] coords)
coords
- the coordinate for the desired cellC get(int[] coords)
coords
- the coordinate for the desired celljava.util.Collection<C> getAllValues()
double[] getCoordRanges()
java.util.Set<double[]> getCoordsWithValues()
int getDimensionCount()
int getNumValues()
boolean isContinuous()
C set(double[] coords, C element)
coords
- the coordinateselement
- the data element.