|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.umd.cfar.lamp.viper.util.AbstractViperSelection edu.umd.cfar.lamp.viper.util.ViperSelectionSet edu.umd.cfar.lamp.viper.util.ViperSelectionSetWithPrimarySelection
An extension to the 'set' type of selection to include information about which node in the viper tree was the last one to be added to the set.
Field Summary |
Fields inherited from class edu.umd.cfar.lamp.viper.util.AbstractViperSelection |
notifyingListeners |
Constructor Summary | |
ViperSelectionSetWithPrimarySelection()
Creates an empty selection set with the primary selection empty, as well. |
Method Summary | |
void |
addNode(Node n)
Adds a new node to the set of selected nodes. |
void |
clear()
Removes any selection. |
DefaultSingleViperSubTree |
getPrimary()
Gets the primary selection. |
void |
removeNode(Node n)
Removes the given node from the set of selected nodes. |
void |
setRoot(ViperData root)
|
void |
setTo(Node node)
Sets to the single element selection 'node' |
void |
setTo(java.util.Set set)
Replaces the current set of selections with the given set. |
Methods inherited from class edu.umd.cfar.lamp.viper.util.ViperSelectionSet |
getRoot, getSelectionBeneath, isEmpty, isSelected |
Methods inherited from class edu.umd.cfar.lamp.viper.util.AbstractViperSelection |
addChangeListener, fireChangeEvent, getChangeListeners, removeChangeListener, writeLock, writeUnlock |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ViperSelectionSetWithPrimarySelection()
Method Detail |
public void setRoot(ViperData root)
setRoot
in class ViperSelectionSet
root
- public void setTo(Node node)
ViperSelectionSet
setTo
in class ViperSelectionSet
node
- the node to selectpublic DefaultSingleViperSubTree getPrimary()
public void setTo(java.util.Set set)
ViperSelectionSet
setTo
in class ViperSelectionSet
set
- public void addNode(Node n)
ViperSelectionSet
addNode
in class ViperSelectionSet
n
- public void clear()
ViperSelectionSet
clear
in class ViperSelectionSet
public void removeNode(Node n)
ViperSelectionSet
removeNode
in class ViperSelectionSet
n
- the node to remove
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |