Documentation of 'org.jhotdraw.draw.event.ToolAdapter' Java class
ToolAdapter
org.jhotdraw.draw.event

Class 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.
    • Constructor Summary

      Constructors 
      Constructor and Description
      ToolAdapter() 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      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

        equals, 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

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.