public interface ISplusMultidimensionalViewModel extends ISplusViewModel
ISplusViewModel
that holds a
multi-dimensional array.Modifier and Type | Method and Description |
---|---|
int[] |
getDimensions()
Retrieves the dimensions array of the multi-dimensional array.
|
java.util.List<ISplusViewModel> |
getSlices()
Slice this along the given two indices that was set by the method
setViewBy(int, int) and return all the slices as a List
of ISplusViewModel . |
void |
setViewBy(int i,
int j)
Sets indices for two dimensions.
|
getDefaultViewAdapter, getName, getSplusObject, reload, save
int[] getDimensions()
java.util.List<ISplusViewModel> getSlices()
setViewBy(int, int)
and return all the slices as a List
of ISplusViewModel
. If the setViewBy(int, int)
method is
never called, it will act as if the two indices to slice by are 0 and 1.List
of ISplusViewModel
.void setViewBy(int i, int j)
i
- The first index of the slices. Must be a number between 0 and
the length of the result of getDimensions()
.j
- The second index of the slices. Must be a number between 0 and
the length of the result of getDimensions()
.getSlices().