All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class CH.ifa.draw.standard.DragTracker

CH.ifa.draw.standard.AbstractTool
   |
   +----CH.ifa.draw.standard.DragTracker

public class DragTracker
extends AbstractTool
DragTracker implements the dragging of the clicked figure.

See Also:
SelectionTool

Constructor Index

 o DragTracker(DrawingView, Figure)

Method Index

 o mouseDown(MouseEvent, int, int)
Handles mouse down events in the drawing view.
 o mouseDrag(MouseEvent, int, int)
Handles mouse drag events in the drawing view.
 o mouseUp(MouseEvent, int, int)
Handles mouse up in the drawing view.
 o run()
This was a good idea - but it won't work because SelectionTool gets the drawing lock on mouseDown and it doesn't release the lock until on mouseUp...

Constructors

 o DragTracker
 public DragTracker(DrawingView view,
                    Figure anchor)

Methods

 o mouseDown
 public void mouseDown(MouseEvent e,
                       int x,
                       int y)
Handles mouse down events in the drawing view.

Overrides:
mouseDown in class AbstractTool
 o mouseDrag
 public synchronized void mouseDrag(MouseEvent e,
                                    int x,
                                    int y)
Handles mouse drag events in the drawing view.

Overrides:
mouseDrag in class AbstractTool
 o mouseUp
 public void mouseUp(MouseEvent e,
                     int x,
                     int y)
Handles mouse up in the drawing view.

Overrides:
mouseUp in class AbstractTool
 o run
 public void run()
This was a good idea - but it won't work because SelectionTool gets the drawing lock on mouseDown and it doesn't release the lock until on mouseUp... (which is probably wise).


All Packages  Class Hierarchy  This Package  Previous  Next  Index