All Packages Class Hierarchy This Package Previous Next Index
Class CH.ifa.draw.standard.ActionTool
java.lang.Object
|
+----CH.ifa.draw.standard.AbstractTool
|
+----CH.ifa.draw.standard.ActionTool
- public abstract class ActionTool
- extends AbstractTool
A tool that performs an action when it is active and
the mouse is clicked.
-
ActionTool(DrawingView)
-
-
action(Figure)
- Performs an action with the touched figure.
-
mouseDown(MouseEvent, int, int)
- Add the touched figure to the selection an invoke action
-
mouseUp(MouseEvent, int, int)
- Handles mouse up in the drawing view.
ActionTool
public ActionTool(DrawingView itsView)
mouseDown
public void mouseDown(MouseEvent e,
int x,
int y)
- Add the touched figure to the selection an invoke action
- Overrides:
- mouseDown in class AbstractTool
- See Also:
- action
mouseUp
public void mouseUp(MouseEvent e,
int x,
int y)
- Handles mouse up in the drawing view.
- Overrides:
- mouseUp in class AbstractTool
action
public abstract void action(Figure figure)
- Performs an action with the touched figure.
All Packages Class Hierarchy This Package Previous Next Index