|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthades.utils.Selection
keep track of selected objects.
Selection: a class to manage object selection in the HADES editor. At the moment, this class uses a Hashtable to store the selected objects. Except for the selectToggle() and print() methods it provides little additional value.
You can put any object into the Selection, but the corresponding editor functions for cut/copy/paste mostly expect graphical FigObjects like SimObject Symbols or WireSegments.
To get a reference to the current Editor selection, use the getSelection() method in class hades.gui.Editor.
Constructor Summary | |
Selection()
create a new and initially empty Selection. |
Method Summary | |
void |
add(java.lang.Object o)
add an object to this Selection. |
java.util.Enumeration |
elements()
return an Enumeration of all objects in this Selection. |
java.lang.String |
print()
return a String with all currently selected objects. |
void |
remove(java.lang.Object o)
deselect Object o. |
void |
removeAll()
deselect all objects. |
boolean |
toggle(java.lang.Object o)
toggle the Selection status for Object o. |
java.lang.String |
toString()
the usual info method. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Selection()
Method Detail |
public void add(java.lang.Object o)
public boolean toggle(java.lang.Object o)
public void remove(java.lang.Object o)
public void removeAll()
public java.util.Enumeration elements()
public java.lang.String print()
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |