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 TypeMethodDescriptionboolean
add
(XYZItemKey item) Adds an item to the selection, returnstrue
if the item was added andfalse
if it already existed in the selection.boolean
addAll
(Collection<XYZItemKey> keys) Adds all the items from the specified collection, returningtrue
if the selection is updated orfalse
if all the supplied keys are already present in the selection.void
clear()
Clears the selection.boolean
isSelected
(XYZItemKey item) Returnstrue
if the item is present in the selection, andfalse
otherwise.boolean
remove
(XYZItemKey item) Removes an item from the selection, returningtrue
if the item was removed andfalse
if 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, returnstrue
if the item was added andfalse
if it already existed in the selection.- Parameters:
item
- the item key (null
not permitted).- Returns:
- A boolean.
-
addAll
Adds all the items from the specified collection, returningtrue
if the selection is updated orfalse
if all the supplied keys are already present in the selection.- Parameters:
keys
- the keys (null
not permitted).- Returns:
- A boolean.
-
remove
Removes an item from the selection, returningtrue
if the item was removed andfalse
if it was not present in the selection.- Parameters:
item
- the item (null
not permitted).- Returns:
- A boolean.
-
isSelected
Returnstrue
if the item is present in the selection, andfalse
otherwise.- Specified by:
isSelected
in interfaceXYZDataItemSelection<S>
- Parameters:
item
- the itemnull
not permitted).- Returns:
- A boolean.
-
clear
Clears the selection.
-