CH.ifa.draw.standard
Class DragTracker
java.lang.Object
CH.ifa.draw.standard.AbstractTool
CH.ifa.draw.standard.DragTracker
- All Implemented Interfaces:
- Tool
public class DragTracker
- extends AbstractTool
DragTracker implements the dragging of the clicked
figure.
- See Also:
SelectionTool
Method Summary |
void |
mouseDown(java.awt.event.MouseEvent e,
int x,
int y)
Handles mouse down events in the drawing view. |
void |
mouseDrag(java.awt.event.MouseEvent e,
int x,
int y)
Handles mouse drag events in the drawing view. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DragTracker
public DragTracker(DrawingView view,
Figure anchor)
mouseDown
public void mouseDown(java.awt.event.MouseEvent e,
int x,
int y)
- Description copied from class:
AbstractTool
- Handles mouse down events in the drawing view.
- Specified by:
mouseDown
in interface Tool
- Overrides:
mouseDown
in class AbstractTool
mouseDrag
public void mouseDrag(java.awt.event.MouseEvent e,
int x,
int y)
- Description copied from class:
AbstractTool
- Handles mouse drag events in the drawing view.
- Specified by:
mouseDrag
in interface Tool
- Overrides:
mouseDrag
in class AbstractTool