|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjcreek.cke.visualizer.DragTool
Field Summary | |
protected java.awt.Point |
firstMousePos
The list of the relations being moved around. |
protected java.awt.Point |
lastMousePos
Most recent mouse position while dragging. |
protected VertexList |
movingVertices
The list of the entities being moved around. |
protected VisualEntity |
pressVertex
Vertex the user pressed on in mousePressed(). |
protected VertexList |
selectedList
List of the selected entities in the order they were selected by the user. |
protected boolean |
wasPressed
True if mouse was pressed on the view before being released. |
protected ConceptView |
view
View that we're associated with. |
Constructor Summary | |
DragTool()
Creates a new DragTool object. |
Method Summary | |
void |
attach(ConceptView view)
|
void |
detach()
|
protected void |
finishMoving()
If we were moving entities, clean up now. |
VertexList |
getSelected()
Returns the list of selected entities, in the order they were selected by the user. |
void |
mouseClicked(java.awt.event.MouseEvent e)
|
void |
mouseDragged(java.awt.event.MouseEvent me)
|
void |
mouseEntered(java.awt.event.MouseEvent e)
|
void |
mouseExited(java.awt.event.MouseEvent e)
|
void |
mouseMoved(java.awt.event.MouseEvent e)
|
void |
mousePressed(java.awt.event.MouseEvent me)
|
void |
mouseReleased(java.awt.event.MouseEvent me)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected ConceptView view
protected VisualEntity pressVertex
protected VertexList selectedList
protected boolean wasPressed
protected VertexList movingVertices
protected java.awt.Point firstMousePos
protected java.awt.Point lastMousePos
Constructor Detail |
public DragTool()
Method Detail |
public void attach(ConceptView view)
public void detach()
public void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked
in interface java.awt.event.MouseListener
public void mouseDragged(java.awt.event.MouseEvent me)
mouseDragged
in interface java.awt.event.MouseMotionListener
public void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered
in interface java.awt.event.MouseListener
public void mouseExited(java.awt.event.MouseEvent e)
mouseExited
in interface java.awt.event.MouseListener
public void mouseMoved(java.awt.event.MouseEvent e)
mouseMoved
in interface java.awt.event.MouseMotionListener
public void mousePressed(java.awt.event.MouseEvent me)
mousePressed
in interface java.awt.event.MouseListener
public void mouseReleased(java.awt.event.MouseEvent me)
mouseReleased
in interface java.awt.event.MouseListener
protected void finishMoving()
public VertexList getSelected()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |