org.jhotdraw.draw.event
Class ToolAdapter
- java.lang.Object
-
- org.jhotdraw.draw.event.ToolAdapter
-
- All Implemented Interfaces:
- java.util.EventListener, ToolListener
public class ToolAdapter extends java.lang.Object implements ToolListener
An abstract adapter class for receivingToolEvents. This class exists as a convenience for creatingToolListenerobjects.
-
-
Constructor Summary
Constructors Constructor and Description ToolAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidareaInvalidated(ToolEvent e)Sent when an area of the drawing view needs to be repainted.voidboundsInvalidated(ToolEvent e)Sent when the tool has edited an area outside of the bounds of the canvas.voidtoolDone(ToolEvent event)Informs the listener that a tool has done its interaction.voidtoolStarted(ToolEvent event)Informs the listener that a tool has starteds interacting with a specific drawing view.
-
-
-
Method Detail
-
toolStarted
public void toolStarted(ToolEvent event)
Description copied from interface:ToolListenerInforms the listener that a tool has starteds interacting with a specific drawing view.- Specified by:
toolStartedin interfaceToolListener
-
toolDone
public void toolDone(ToolEvent event)
Description copied from interface:ToolListenerInforms the listener that a tool has done its interaction. This method can be used to switch back to the default tool.- Specified by:
toolDonein interfaceToolListener
-
areaInvalidated
public void areaInvalidated(ToolEvent e)
Description copied from interface:ToolListenerSent when an area of the drawing view needs to be repainted.- Specified by:
areaInvalidatedin interfaceToolListener
-
boundsInvalidated
public void boundsInvalidated(ToolEvent e)
Description copied from interface:ToolListenerSent when the tool has edited an area outside of the bounds of the canvas.- Specified by:
boundsInvalidatedin interfaceToolListener
-
-
DataMelt 3.0 © DataMelt by jWork.ORG