|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjcreek.gui.conceptmap.tool.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 java.util.HashSet |
movingEntities
The set of moving entites. |
protected VisualEntity |
pressVertex
Vertex the user pressed on in mousePressed(). |
protected boolean |
wasPressed
True if mouse was pressed on the view before being released. |
protected ConceptMapView |
view
View that we're associated with. |
Constructor Summary | |
DragTool()
Creates a new DragTool object. |
|
DragTool(ConceptMapView view)
Creates a new DragTool and attaches it to the supplied ConceptMapView. |
Method Summary | |
void |
attach(ConceptMapView view)
|
protected void |
continueDrag(int x,
int y)
|
void |
detatch()
|
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)
|
void |
paintTool(java.awt.Graphics g)
|
protected void |
startDrag(int x,
int y)
|
protected void |
stopDrag()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected ConceptMapView view
protected VisualEntity pressVertex
protected boolean wasPressed
protected java.util.HashSet movingEntities
protected java.awt.Point firstMousePos
protected java.awt.Point lastMousePos
Constructor Detail |
public DragTool()
public DragTool(ConceptMapView view)
view
- The ConceptMapView to attach this tool to.Method Detail |
public void paintTool(java.awt.Graphics g)
paintTool
in interface ConceptMapTool
public void attach(ConceptMapView view)
attach
in interface ConceptMapTool
public void detatch()
detatch
in interface ConceptMapTool
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 startDrag(int x, int y)
protected void continueDrag(int x, int y)
protected void stopDrag()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |