JHotDraw 7.0.9

org.jhotdraw.draw
Class DrawingEvent

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

public class DrawingEvent
extends java.util.EventObject

Change event passed to DrawingChangeListeners.

Version:
2.1 2007-05-21 Added z-index property.
1.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
DrawingEvent(Drawing source, Figure figure, java.awt.geom.Rectangle2D.Double invalidatedArea)
          Constructs an event for the provided Drawing.
DrawingEvent(Drawing source, Figure figure, java.awt.geom.Rectangle2D.Double invalidatedArea, int zIndex)
          Constructs an event for the provided Drawing.
 
Method Summary
 Drawing getDrawing()
          Gets the changed drawing.
 Figure getFigure()
          Gets the changed figure.
 int getIndex()
          Returns the z-index of the figure.
 java.awt.geom.Rectangle2D.Double getInvalidatedArea()
          Gets the bounds of the invalidated area on the drawing.
 
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

DrawingEvent

public DrawingEvent(Drawing source,
                    Figure figure,
                    java.awt.geom.Rectangle2D.Double invalidatedArea)
Constructs an event for the provided Drawing.

Parameters:
figure - The changed figure.
invalidatedArea - The bounds of the invalidated area on the drawing.

DrawingEvent

public DrawingEvent(Drawing source,
                    Figure figure,
                    java.awt.geom.Rectangle2D.Double invalidatedArea,
                    int zIndex)
Constructs an event for the provided Drawing.

Parameters:
figure - The changed figure.
invalidatedArea - The bounds of the invalidated area on the drawing.
Method Detail

getDrawing

public Drawing getDrawing()
Gets the changed drawing.


getFigure

public Figure getFigure()
Gets the changed figure.


getInvalidatedArea

public java.awt.geom.Rectangle2D.Double getInvalidatedArea()
Gets the bounds of the invalidated area on the drawing.


getIndex

public int getIndex()
Returns the z-index of the figure.


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