JHotDraw 7.4.1

org.jhotdraw.draw.event
Class ToolAdapter

java.lang.Object
  extended by 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 receiving ToolEvents. This class exists as a convenience for creating ToolListener objects.

Version:
$Id: ToolAdapter.java 604 2010-01-09 12:00:29Z rawcoder $
Author:
Werner Randelshofer

Constructor Summary
ToolAdapter()
           
 
Method Summary
 void areaInvalidated(ToolEvent e)
          Sent when an area of the drawing view needs to be repainted.
 void boundsInvalidated(ToolEvent e)
          Sent when the tool has edited an area outside of the bounds of the canvas.
 void toolDone(ToolEvent event)
          Informs the listener that a tool has done its interaction.
 void toolStarted(ToolEvent event)
          Informs the listener that a tool has starteds interacting with a specific drawing view.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ToolAdapter

public ToolAdapter()
Method Detail

toolStarted

public void toolStarted(ToolEvent event)
Description copied from interface: ToolListener
Informs the listener that a tool has starteds interacting with a specific drawing view.

Specified by:
toolStarted in interface ToolListener

toolDone

public void toolDone(ToolEvent event)
Description copied from interface: ToolListener
Informs the listener that a tool has done its interaction. This method can be used to switch back to the default tool.

Specified by:
toolDone in interface ToolListener

areaInvalidated

public void areaInvalidated(ToolEvent e)
Description copied from interface: ToolListener
Sent when an area of the drawing view needs to be repainted.

Specified by:
areaInvalidated in interface ToolListener

boundsInvalidated

public void boundsInvalidated(ToolEvent e)
Description copied from interface: ToolListener
Sent when the tool has edited an area outside of the bounds of the canvas.

Specified by:
boundsInvalidated in interface ToolListener

Copyright 1996-2010 (c) by the authors and contributors of the JHotDraw project.
Some rights reserved.