|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.topcat.plot.OrderedSelectionRecorder
public abstract class OrderedSelectionRecorder
ListSelectionListener implementation which can tell you what order items have been selected in.
Constructor Summary | |
---|---|
OrderedSelectionRecorder()
Constructs a new recorder with no items selected. |
|
OrderedSelectionRecorder(boolean[] state)
Constructs a new recorder with a given initial state. |
Method Summary | |
---|---|
protected abstract boolean[] |
getModelState()
Returns the state of the selection model given the source of a selection event. |
int[] |
getOrderedSelection()
Returns a list of the currently-selected indices in the selection model in the order in which they were (most recently) added to the selection. |
void |
updateState(boolean[] state)
Sets the new selection state. |
void |
valueChanged(ListSelectionEvent evt)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OrderedSelectionRecorder()
public OrderedSelectionRecorder(boolean[] state)
state
- mask of flags, one true for each selected itemMethod Detail |
---|
public int[] getOrderedSelection()
public void valueChanged(ListSelectionEvent evt)
valueChanged
in interface ListSelectionListener
public void updateState(boolean[] state)
state
- mask of flags, one true for each selected itemprotected abstract boolean[] getModelState()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |