Module org.jfree.chart3d
Package org.jfree.chart3d.interaction
Class StandardXYZDataItemSelection<S>
java.lang.Object
org.jfree.chart3d.interaction.StandardXYZDataItemSelection<S>
- Type Parameters:
S- S
- All Implemented Interfaces:
XYZDataItemSelection
An object that tracks selected items from an
XYZDataset.- Since:
- 1.3
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanadd(XYZItemKey item) Adds an item to the selection, returnstrueif the item was added andfalseif it already existed in the selection.booleanaddAll(Collection<XYZItemKey> keys) Adds all the items from the specified collection, returningtrueif the selection is updated orfalseif all the supplied keys are already present in the selection.voidclear()Clears the selection.booleanisSelected(XYZItemKey item) Returnstrueif the item is present in the selection, andfalseotherwise.booleanremove(XYZItemKey item) Removes an item from the selection, returningtrueif the item was removed andfalseif it was not present in the selection.
-
Constructor Details
-
StandardXYZDataItemSelection
public StandardXYZDataItemSelection()Creates a new (empty) selection.
-
-
Method Details
-
add
Adds an item to the selection, returnstrueif the item was added andfalseif it already existed in the selection.- Parameters:
item- the item key (nullnot permitted).- Returns:
- A boolean.
-
addAll
Adds all the items from the specified collection, returningtrueif the selection is updated orfalseif all the supplied keys are already present in the selection.- Parameters:
keys- the keys (nullnot permitted).- Returns:
- A boolean.
-
remove
Removes an item from the selection, returningtrueif the item was removed andfalseif it was not present in the selection.- Parameters:
item- the item (nullnot permitted).- Returns:
- A boolean.
-
isSelected
Returnstrueif the item is present in the selection, andfalseotherwise.- Specified by:
isSelectedin interfaceXYZDataItemSelection<S>- Parameters:
item- the itemnullnot permitted).- Returns:
- A boolean.
-
clear
Clears the selection.
-