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.


Constructor Index

 o ActionTool(DrawingView)

Method Index

 o action(Figure)
Performs an action with the touched figure.
 o mouseDown(MouseEvent, int, int)
Add the touched figure to the selection an invoke action
 o mouseUp(MouseEvent, int, int)
Handles mouse up in the drawing view.

Constructors

 o ActionTool
 public ActionTool(DrawingView itsView)

Methods

 o 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
 o mouseUp
 public void mouseUp(MouseEvent e,
                     int x,
                     int y)
Handles mouse up in the drawing view.

Overrides:
mouseUp in class AbstractTool
 o action
 public abstract void action(Figure figure)
Performs an action with the touched figure.


All Packages  Class Hierarchy  This Package  Previous  Next  Index