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() |
T[] |
getSelectedObjects()
for the ItemSelectable interface contract
|
boolean |
isPicked(T e) |
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
- the element to be picked/unpickedstate
- true if v
is to be marked as picked, false if to be marked as unpickedv
prior to this callpublic void clear()
PickedState
clear
in interface PickedState<T>
public Set<T> getPicked()
getPicked
in interface PickedState<T>
public boolean isPicked(T e)
isPicked
in interface PickedInfo<T>
isPicked
in interface PickedState<T>
true
if v
is currently "picked".public T[] getSelectedObjects()
getSelectedObjects
in interface ItemSelectable
Copyright © 2015. All rights reserved.