|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Defines the interface for the tool objects in Creek. Since all tools in Creek will interact with the user (via the view) this interface extends the view listener interface.
Method Summary | |
void |
attach(CreekModel model,
ConceptView view,
javax.swing.JInternalFrame win)
Attach to the given model and view objects. |
void |
detach()
Detach from the model and view and prepare to be deactivated. |
java.awt.Point |
getMousePosition()
Returns the position of the mouse,this will return the first Mouse Position or last Mouse Position depending on the current Tool and the state of the tool |
VertexList |
getSelected()
Returns the list of selected vertices, in the order they were selected by the user. |
Methods inherited from interface java.awt.event.MouseListener |
mouseClicked, mouseEntered, mouseExited, mousePressed, mouseReleased |
Methods inherited from interface java.awt.event.MouseMotionListener |
mouseDragged, mouseMoved |
Method Detail |
public void attach(CreekModel model, ConceptView view, javax.swing.JInternalFrame win)
model
- GraphModel to attach toview
- GraphView to attach topublic void detach()
Note that this method may be called more than once
between calls to attach()
public VertexList getSelected()
public java.awt.Point getMousePosition()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |