Interface PickedState<T>
-
- All Superinterfaces:
java.awt.ItemSelectable
,PickedInfo<T>
- All Known Implementing Classes:
AbstractPickedState
,MultiPickedState
public interface PickedState<T> extends PickedInfo<T>, java.awt.ItemSelectable
An interface for classes that keep track of the "picked" state of edges or vertices.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
clear()
Clears the "picked" state from all elements.java.util.Set<T>
getPicked()
boolean
isPicked(T v)
boolean
pick(T v, boolean b)
Marksv
as "picked" ifb == true
, and unmarksv
as picked ifb == false
.
-
-
-
Method Detail
-
pick
boolean pick(T v, boolean b)
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
java.util.Set<T> getPicked()
- Returns:
- all "picked" elements.
-
isPicked
boolean isPicked(T v)
- Specified by:
isPicked
in interfacePickedInfo<T>
- Returns:
true
ifv
is currently "picked".
-
-