CH.ifa.draw.standard
Class ActionTool
- java.lang.Object
-
- CH.ifa.draw.standard.AbstractTool
-
- CH.ifa.draw.standard.ActionTool
-
- All Implemented Interfaces:
- Tool
- Direct Known Subclasses:
- BorderTool
public abstract class ActionTool extends AbstractTool
A tool that performs an action when it is active and the mouse is clicked.
-
-
Constructor Summary
Constructors Constructor and Description ActionTool(DrawingView itsView)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method and Description abstract voidaction(Figure figure)Performs an action with the touched figure.voidmouseDown(java.awt.event.MouseEvent e, int x, int y)Add the touched figure to the selection an invoke actionvoidmouseUp(java.awt.event.MouseEvent e, int x, int y)Handles mouse up in the drawing view.-
Methods inherited from class CH.ifa.draw.standard.AbstractTool
activate, deactivate, drawing, editor, keyDown, mouseDrag, mouseMove, view
-
-
-
-
Constructor Detail
-
ActionTool
public ActionTool(DrawingView itsView)
-
-
Method Detail
-
mouseDown
public void mouseDown(java.awt.event.MouseEvent e, int x, int y)Add the touched figure to the selection an invoke action- Specified by:
mouseDownin interfaceTool- Overrides:
mouseDownin classAbstractTool- See Also:
action(CH.ifa.draw.framework.Figure)
-
mouseUp
public void mouseUp(java.awt.event.MouseEvent e, int x, int y)Description copied from class:AbstractToolHandles mouse up in the drawing view.- Specified by:
mouseUpin interfaceTool- Overrides:
mouseUpin classAbstractTool
-
action
public abstract void action(Figure figure)
Performs an action with the touched figure.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG