org.jhotdraw.draw
Class FigureEvent
java.lang.Object
java.util.EventObject
org.jhotdraw.draw.FigureEvent
- All Implemented Interfaces:
- java.io.Serializable
public class FigureEvent
- extends java.util.EventObject
Change event passed to FigureListeners.
- See Also:
- Serialized Form
| Fields inherited from class java.util.EventObject |
source |
|
Constructor Summary |
FigureEvent(Figure source,
AttributeKey attribute,
java.lang.Object oldValue,
java.lang.Object newValue)
Constructs an event for the given source Figure. |
FigureEvent(Figure source,
java.awt.geom.Rectangle2D.Double invalidatedArea)
Constructs an event for the given source Figure. |
| 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 |
FigureEvent
public FigureEvent(Figure source,
java.awt.geom.Rectangle2D.Double invalidatedArea)
- Constructs an event for the given source Figure.
- Parameters:
invalidatedArea - The bounds of the invalidated area on the drawing.
FigureEvent
public FigureEvent(Figure source,
AttributeKey attribute,
java.lang.Object oldValue,
java.lang.Object newValue)
- Constructs an event for the given source Figure.
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.
getAttribute
public AttributeKey getAttribute()
getOldValue
public java.lang.Object getOldValue()
getNewValue
public java.lang.Object getNewValue()