public class MultiPickedState<T> extends AbstractPickedState<T> implements PickedState<T>
Sets are constructed so that their iterators
will traverse them in the order in which they are picked.| Modifier and Type | Field and Description |
|---|---|
protected java.util.Set<T> |
picked
the 'picked' vertices
|
listenerList| Constructor and Description |
|---|
MultiPickedState() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears the "picked" state from all elements.
|
java.util.Set<T> |
getPicked()
Returns all "picked" elements.
|
T[] |
getSelectedObjects()
for the ItemSelectable interface contract
|
boolean |
isPicked(T e)
Returns
true if v is currently "picked". |
boolean |
pick(T v,
boolean state)
Marks
v as "picked" if b == true,
and unmarks v as picked if b == false. |
addItemListener, fireItemStateChanged, removeItemListenerprotected java.util.Set<T> picked
public boolean pick(T v, boolean state)
PickedStatev as "picked" if b == true,
and unmarks v as picked if b == false.pick in interface PickedState<T>v prior to this callPickedState#pick(ArchetypeVertex, boolean)public void clear()
PickedStateclear in interface PickedState<T>edu.uci.ics.jung.visualization.picking.PickedState#clearPickedVertices()public java.util.Set<T> getPicked()
PickedStategetPicked in interface PickedState<T>edu.uci.ics.jung.visualization.picking.PickedState#getPickedEdges()public boolean isPicked(T e)
PickedStatetrue if v is currently "picked".isPicked in interface PickedInfo<T>isPicked in interface PickedState<T>edu.uci.ics.jung.visualization.picking.PickedState#isPicked(ArchetypeEdge)public T[] getSelectedObjects()
getSelectedObjects in interface java.awt.ItemSelectable