Module org.jfree.chart3d
Package org.jfree.chart3d.interaction
Class StandardKeyedValues3DItemSelection
java.lang.Object
org.jfree.chart3d.interaction.StandardKeyedValues3DItemSelection
- All Implemented Interfaces:
Serializable,KeyedValues3DItemSelection
public class StandardKeyedValues3DItemSelection
extends Object
implements KeyedValues3DItemSelection, Serializable
An object that tracks selected items from a
KeyedValues3D dataset.- Since:
- 1.3
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new item selection instance, initially with no selections. -
Method Summary
Modifier and TypeMethodDescriptionbooleanadd(KeyedValues3DItemKey itemKey) Adds an item to the selection, returningtrueif the item is added andfalseif the item already existed in the selection.booleanaddAll(Collection<? extends KeyedValues3DItemKey> keys) Adds a collection of items to the selection, returningtrueif the selection is changed, andfalseif no changes were made.voidclear()Clears the item selection (that is, removes all items contained in the selection).booleanbooleanisSelected(KeyedValues3DItemKey itemKey) Returnstrueif the specified item is in the selection, andfalseotherwise.booleanremove(KeyedValues3DItemKey itemKey) Removes an item from the selection returningtrueif the item was removed andfalseif it did not exist within the selection.
-
Constructor Details
-
StandardKeyedValues3DItemSelection
public StandardKeyedValues3DItemSelection()Creates a new item selection instance, initially with no selections.
-
-
Method Details
-
add
Adds an item to the selection, returningtrueif the item is added andfalseif the item already existed in the selection.- Parameters:
itemKey- the item key (nullnot permitted).- Returns:
- A boolean.
-
addAll
Adds a collection of items to the selection, returningtrueif the selection is changed, andfalseif no changes were made.- Parameters:
keys- the keys to add (nullnot permitted).- Returns:
- A boolean.
-
remove
Removes an item from the selection returningtrueif the item was removed andfalseif it did not exist within the selection.- Parameters:
itemKey- the item key (nullnot permitted).- Returns:
- A boolean.
-
isSelected
Returnstrueif the specified item is in the selection, andfalseotherwise.- Specified by:
isSelectedin interfaceKeyedValues3DItemSelection- Parameters:
itemKey- the item key (nullnot permitted).- Returns:
- A boolean.
-
clear
Clears the item selection (that is, removes all items contained in the selection). -
equals
-