|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecteasik.sketch.util.SketchSelectionListener
public class SketchSelectionListener
This class sits on the Sketch we've created and listens for selection events. Upon receiving them it updates a vector of currently selected objects (JGraphT, not JGraph cells), and allows the application to manipulate them.
| Field Summary | |
|---|---|
(package private) java.util.Vector<java.lang.Object> |
_currentSelection
The current selection as defined by the user |
(package private) Sketch |
_ourSketch
The current sketch |
| Constructor Summary | |
|---|---|
SketchSelectionListener(Sketch inSketch)
Initialises the sketch listener. |
|
| Method Summary | |
|---|---|
void |
emptySelection()
Clears the selection buffer, should only ever be used when loading a new sketch or clearing an existing one. |
java.util.Vector |
getCurrentSelection()
Returns the vector containing the current selection |
void |
valueChanged(org.jgraph.event.GraphSelectionEvent graphEvent)
Overloaded listener event. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
java.util.Vector<java.lang.Object> _currentSelection
Sketch _ourSketch
| Constructor Detail |
|---|
public SketchSelectionListener(Sketch inSketch)
inSketch - Sketch it is watching| Method Detail |
|---|
public java.util.Vector getCurrentSelection()
public void emptySelection()
public void valueChanged(org.jgraph.event.GraphSelectionEvent graphEvent)
valueChanged in interface org.jgraph.event.GraphSelectionListenergraphEvent - The event object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||