| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectedu.umd.cfar.lamp.viper.util.AbstractViperSelection
edu.umd.cfar.lamp.viper.util.ViperSelectionSet
| Field Summary | 
| Fields inherited from class edu.umd.cfar.lamp.viper.util.AbstractViperSelection | 
| notifyingListeners | 
| Constructor Summary | |
| ViperSelectionSet()Constructs an empty selection set. | |
| Method Summary | |
|  void | addNode(Node n)Adds a new node to the set of selected nodes. | 
|  void | clear()Removes any selection. | 
|  ViperData | getRoot() | 
|  java.util.Iterator | getSelectionBeneath(Node n)Returns the nodes in the selection set that are beneaththe given node in the tree | 
|  boolean | isEmpty()Tests to see if something is selected. | 
|  boolean | isSelected(Node n)Tests to see if the given node is selected. | 
|  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.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 ViperSelectionSet()
| Method Detail | 
public boolean isSelected(Node n)
ViperSelection
n - the viper data node to test
true iff the node is selectedpublic void addNode(Node n)
n - public void clear()
public void removeNode(Node n)
n - the node to removepublic void setTo(java.util.Set set)
set - public void setTo(Node node)
node - the node to selectpublic boolean isEmpty()
ViperSelection
public ViperData getRoot()
public void setRoot(ViperData root)
root - public java.util.Iterator getSelectionBeneath(Node n)
beneaththe given node in the tree
n - the common ancestor
| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||