CH.ifa.draw.figures
Class ScribbleTool
- java.lang.Object
-
- CH.ifa.draw.standard.AbstractTool
-
- CH.ifa.draw.figures.ScribbleTool
-
- All Implemented Interfaces:
- Tool
public class ScribbleTool extends AbstractTool
Tool to scribble a PolyLineFigure- See Also:
PolyLineFigure
-
-
Constructor Summary
Constructors Constructor and Description ScribbleTool(DrawingView view)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidactivate()Activates the tool for the given view.voiddeactivate()Deactivates the tool.voidmouseDown(java.awt.event.MouseEvent e, int x, int y)Handles mouse down events in the drawing view.voidmouseDrag(java.awt.event.MouseEvent e, int x, int y)Handles mouse drag events in the drawing view.
-
-
-
Constructor Detail
-
ScribbleTool
public ScribbleTool(DrawingView view)
-
-
Method Detail
-
activate
public void activate()
Description copied from class:AbstractToolActivates the tool for the given view. This method is called whenever the user switches to this tool. Use this method to reinitialize a tool.- Specified by:
activatein interfaceTool- Overrides:
activatein classAbstractTool
-
deactivate
public void deactivate()
Description copied from class:AbstractToolDeactivates the tool. This method is called whenever the user switches to another tool. Use this method to do some clean-up when the tool is switched. Subclassers should always call super.deactivate.- Specified by:
deactivatein interfaceTool- Overrides:
deactivatein classAbstractTool
-
mouseDown
public void mouseDown(java.awt.event.MouseEvent e, int x, int y)Description copied from class:AbstractToolHandles mouse down events in the drawing view.- Specified by:
mouseDownin interfaceTool- Overrides:
mouseDownin classAbstractTool
-
mouseDrag
public void mouseDrag(java.awt.event.MouseEvent e, int x, int y)Description copied from class:AbstractToolHandles mouse drag events in the drawing view.- Specified by:
mouseDragin interfaceTool- Overrides:
mouseDragin classAbstractTool
-
-
DataMelt 3.0 © DataMelt by jWork.ORG