public class StandardXYZDataItemSelection<S> extends java.lang.Object implements XYZDataItemSelection
XYZDataset.| Constructor and Description |
|---|
StandardXYZDataItemSelection()
Creates a new (empty) selection.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(XYZItemKey item)
Adds an item to the selection, returns
true if the item
was added and false if it already existed in the selection. |
boolean |
addAll(java.util.Collection<XYZItemKey> keys)
Adds all the items from the specified collection, returning
true if the selection is updated or false if
all the supplied keys are already present in the selection. |
void |
clear()
Clears the selection.
|
boolean |
isSelected(XYZItemKey item)
Returns
true if the item is present in the selection,
and false otherwise. |
boolean |
remove(XYZItemKey item)
Removes an item from the selection, returning
true if the
item was removed and false if it was not present in the
selection. |
public StandardXYZDataItemSelection()
public boolean add(XYZItemKey item)
true if the item
was added and false if it already existed in the selection.item - the item key (null not permitted).public boolean addAll(java.util.Collection<XYZItemKey> keys)
true if the selection is updated or false if
all the supplied keys are already present in the selection.keys - the keys (null not permitted).public boolean remove(XYZItemKey item)
true if the
item was removed and false if it was not present in the
selection.item - the item (null not permitted).public boolean isSelected(XYZItemKey item)
true if the item is present in the selection,
and false otherwise.isSelected in interface XYZDataItemSelectionitem - the item null not permitted).public void clear()