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
-
DragTracker(DrawingView, Figure)
-
-
mouseDown(MouseEvent, int, int)
- Handles mouse down events in the drawing view.
-
mouseDrag(MouseEvent, int, int)
- Handles mouse drag events in the drawing view.
-
mouseUp(MouseEvent, int, int)
- Handles mouse up in the drawing view.
-
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...
DragTracker
public DragTracker(DrawingView view,
Figure anchor)
mouseDown
public void mouseDown(MouseEvent e,
int x,
int y)
- Handles mouse down events in the drawing view.
- Overrides:
- mouseDown in class AbstractTool
mouseDrag
public synchronized void mouseDrag(MouseEvent e,
int x,
int y)
- Handles mouse drag events in the drawing view.
- Overrides:
- mouseDrag in class AbstractTool
mouseUp
public void mouseUp(MouseEvent e,
int x,
int y)
- Handles mouse up in the drawing view.
- Overrides:
- mouseUp in class AbstractTool
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