JHotDraw 7.1

org.jhotdraw.draw
Class ToolEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.jhotdraw.draw.ToolEvent
All Implemented Interfaces:
java.io.Serializable

public class ToolEvent
extends java.util.EventObject

An event sent to ToolListener's.

Version:
3.0 2006-02-13 Changed to support multiple views.
2.0 2006-01-14 Changed to support double precision coordinates.
1.0 2003-12-01 Derived from JHotDraw 5.4b1.
Author:
Werner Randelshofer
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ToolEvent(Tool src, DrawingView view, java.awt.Rectangle invalidatedArea)
          Creates a new instance.
 
Method Summary
 java.awt.Rectangle getInvalidatedArea()
          Gets the bounds of the invalidated area on the drawing view.
 Tool getTool()
          Gets the tool which is the source of the event.
 DrawingView getView()
          Gets the drawing view of the tool.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ToolEvent

public ToolEvent(Tool src,
                 DrawingView view,
                 java.awt.Rectangle invalidatedArea)
Creates a new instance.

Method Detail

getTool

public Tool getTool()
Gets the tool which is the source of the event.


getView

public DrawingView getView()
Gets the drawing view of the tool.


getInvalidatedArea

public java.awt.Rectangle getInvalidatedArea()
Gets the bounds of the invalidated area on the drawing view.


Copyright 1996-2007 (c) JHotDraw.org.
Some rights reserved.