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 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.
|
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, removeItemListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addItemListener, removeItemListener
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
Copyright © 2015. All rights reserved.