public class SparseGridStorage<T>
extends java.lang.Object
| Constructor and Description |
|---|
SparseGridStorage() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
T |
get(int column,
int row)
Gets the data at the specified location in the grid.
|
java.lang.Iterable<T> |
getColumnCells(int column)
Returns all cells in the specified column.
|
java.util.Set<java.lang.Integer> |
getColumnIndices(int row)
Returns the set of column indices in the specified row that contain data.
|
int |
getColumns()
Gets the total number of columns in the grid.
|
java.lang.Iterable<T> |
getRange(int left,
int top,
int right,
int bottom) |
com.mindfusion.common.ExtendedArrayList<T> |
getRangeList(int left,
int top,
int right,
int bottom) |
java.lang.Iterable<T> |
getRowCells(int row)
Returns all cells in the specified row.
|
java.util.Set<java.lang.Integer> |
getRowIndices()
Returns the set of row indices that contain data.
|
int |
getRows()
Gets the total number of rows in the grid.
|
java.util.Iterator<T> |
iterator() |
void |
set(int column,
int row,
T value)
Sets the data at the specified location in the grid.
|
void |
updateDimensions() |
public void clear()
public void updateDimensions()
public java.lang.Iterable<T> getRange(int left, int top, int right, int bottom)
public com.mindfusion.common.ExtendedArrayList<T> getRangeList(int left, int top, int right, int bottom)
public java.util.Iterator<T> iterator()
public java.lang.Iterable<T> getRowCells(int row)
public java.lang.Iterable<T> getColumnCells(int column)
public void set(int column,
int row,
T value)
column - The zero-based index of the column where the data should be get or set.row - The zero-based index of the row where the data should be get or set.value - The data at the specified location in the grid.public T get(int column, int row)
column - The zero-based index of the column where the data should be get or set.row - The zero-based index of the row where the data should be get or set.public java.util.Set<java.lang.Integer> getRowIndices()
public java.util.Set<java.lang.Integer> getColumnIndices(int row)
public int getColumns()
public int getRows()