Interface PickedState<T>
- All Superinterfaces:
ItemSelectable
,PickedInfo<T>
- All Known Implementing Classes:
AbstractPickedState
,MultiPickedState
An interface for classes that keep track of the "picked" state
of edges or vertices.
-
Method Summary
Methods inherited from interface java.awt.ItemSelectable
addItemListener, getSelectedObjects, removeItemListener
-
Method Details
-
pick
Marksv
as "picked" ifb == true
, and unmarksv
as picked ifb == false
.- Parameters:
v
- the element to be picked/unpickedb
- true ifv
is to be marked as picked, false if to be marked as unpicked- Returns:
- the "picked" state of
v
prior to this call
-
clear
void clear()Clears the "picked" state from all elements. -
getPicked
- Returns:
- all "picked" elements.
-
isPicked
- Specified by:
isPicked
in interfacePickedInfo<T>
- Returns:
true
ifv
is currently "picked".
-