|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.uci.ics.jung.visualization.picking.AbstractPickedState<T> edu.uci.ics.jung.visualization.picking.MultiPickedState<T>
public class MultiPickedState<T>
Maintains the state of what has been 'picked' in the graph.
The Sets
are constructed so that their iterators
will traverse them in the order in which they are picked.
Field Summary | |
---|---|
protected Set<T> |
picked
the 'picked' vertices |
Fields inherited from class edu.uci.ics.jung.visualization.picking.AbstractPickedState |
---|
listenerList |
Constructor Summary | |
---|---|
MultiPickedState()
|
Method Summary | |
---|---|
void |
clear()
Clears the "picked" state from all elements. |
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 . |
Methods inherited from class edu.uci.ics.jung.visualization.picking.AbstractPickedState |
---|
addItemListener, fireItemStateChanged, removeItemListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.awt.ItemSelectable |
---|
addItemListener, removeItemListener |
Field Detail |
---|
protected Set<T> picked
Constructor Detail |
---|
public MultiPickedState()
Method Detail |
---|
public boolean pick(T v, boolean state)
PickedState
v
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()
PickedState
clear
in interface PickedState<T>
edu.uci.ics.jung.visualization.picking.PickedState#clearPickedVertices()
public Set<T> getPicked()
PickedState
getPicked
in interface PickedState<T>
edu.uci.ics.jung.visualization.picking.PickedState#getPickedEdges()
public boolean isPicked(T e)
PickedState
true
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 ItemSelectable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |