Class MultiPickedState<T>
java.lang.Object
edu.uci.ics.jung.visualization.picking.AbstractPickedState<T>
edu.uci.ics.jung.visualization.picking.MultiPickedState<T>
- All Implemented Interfaces:
PickedInfo<T>,PickedState<T>,ItemSelectable
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.- Author:
- Tom Nelson, Joshua O'Madadhain
-
Field Summary
FieldsFields inherited from class edu.uci.ics.jung.visualization.picking.AbstractPickedState
listenerList -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class edu.uci.ics.jung.visualization.picking.AbstractPickedState
addItemListener, fireItemStateChanged, removeItemListenerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.awt.ItemSelectable
addItemListener, removeItemListener
-
Field Details
-
picked
the 'picked' vertices
-
-
Constructor Details
-
MultiPickedState
public MultiPickedState()
-
-
Method Details
-
pick
Description copied from interface:PickedStateMarksvas "picked" ifb == true, and unmarksvas picked ifb == false.- Specified by:
pickin interfacePickedState<T>- Parameters:
v- the element to be picked/unpickedstate- true ifvis to be marked as picked, false if to be marked as unpicked- Returns:
- the "picked" state of
vprior to this call
-
clear
public void clear()Description copied from interface:PickedStateClears the "picked" state from all elements.- Specified by:
clearin interfacePickedState<T>
-
getPicked
- Specified by:
getPickedin interfacePickedState<T>- Returns:
- all "picked" elements.
-
isPicked
- Specified by:
isPickedin interfacePickedInfo<T>- Specified by:
isPickedin interfacePickedState<T>- Returns:
trueifvis currently "picked".
-
getSelectedObjects
for the ItemSelectable interface contract- Specified by:
getSelectedObjectsin interfaceItemSelectable
-