public class HeaderCellSelectionSet extends SelectionSet<HeaderCellRange>
Selection
contains two
HeaderCellSelectionSet
s, for the column header and row header
selection, as well as a DataCellSelectionSet
for the databody
selection. At most one of these three sets may be non-empty at a time.
All ranges in the set must be in the same layer of the header.Constructor and Description |
---|
HeaderCellSelectionSet(int edge)
Creates a new, empty header cell selection set.
|
Modifier and Type | Method and Description |
---|---|
java.util.Iterator<HeaderCellIndex> |
cellIndexIterator()
Returns an iterator over the cell indexes of this
HeaderCellSelectionSet . |
java.util.Iterator<HeaderCellKey> |
cellKeyIterator()
Returns an iterator over the cell keys of this
HeaderCellSelectionSet . |
int |
getEdge()
Returns the edge (
DataDirector.ROW_EDGE or DataDirector.COLUMN_EDGE ) to
which this HeaderCellSelectionSet corresponds. |
int |
getLayer()
Returns the index of the start layer of all the ranges in this set, or -1
if the set is empty or if the layer is unknown at this time.
|
getDataModel, getPivotTableModel, setDataModel, setPivotTableModel
add, clear, clone, contains, isEmpty, iterator, remove, size
addAll, containsAll, retainAll, toArray, toArray, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
public HeaderCellSelectionSet(int edge)
edge
- either DataDirector.ROW_EDGE
or DataDirector.COLUMN_EDGE
public java.util.Iterator<HeaderCellKey> cellKeyIterator() throws DataException
HeaderCellSelectionSet
.
There is no guarantee as to the order in which cells are returned by this iterator. Also,
if an individual cell appears in multiple ranges of the selection, there is no guarantee
whether it will be returned once or multiple times. It is possible that guarantees for one
or both of these things will be provided in the future.DataException
public java.util.Iterator<HeaderCellIndex> cellIndexIterator() throws DataException
HeaderCellSelectionSet
.
There is no guarantee as to the order in which cells are returned by this iterator. Also,
if an individual cell appears in multiple ranges of the selection, there is no guarantee
whether it will be returned once or multiple times. It is possible that guarantees for one
or both of these things will be provided in the future.DataException
public int getEdge()
DataDirector.ROW_EDGE
or DataDirector.COLUMN_EDGE
) to
which this HeaderCellSelectionSet
corresponds.HeaderCellSelectionSet
public int getLayer()