|
JHotDraw 7.4.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.EventObject org.jhotdraw.draw.event.FigureEvent
public class FigureEvent
An EventObject
sent to FigureListener
s.
Observer
State changes of figures can be observed by other objects. Specifically
CompositeFigure
observes area invalidations and remove requests
of its child figures. DrawingView
also observes area invalidations
of its drawing object.
Subject: Figure
; Observer:
FigureListener
; Event: FigureEvent
; Concrete Observer:
CompositeFigure
, DrawingView
.
Field Summary |
---|
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. |
Method Summary | |
---|---|
AttributeKey |
getAttribute()
|
Figure |
getFigure()
Gets the changed figure |
java.awt.geom.Rectangle2D.Double |
getInvalidatedArea()
Gets the bounds of the invalidated area on the drawing. |
java.lang.Object |
getNewValue()
|
java.lang.Object |
getOldValue()
|
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 |
---|
public FigureEvent(Figure source, java.awt.geom.Rectangle2D.Double invalidatedArea)
invalidatedArea
- The bounds of the invalidated area on the drawing.public FigureEvent(Figure source, AttributeKey attribute, java.lang.Object oldValue, java.lang.Object newValue)
Method Detail |
---|
public Figure getFigure()
public java.awt.geom.Rectangle2D.Double getInvalidatedArea()
public AttributeKey getAttribute()
public java.lang.Object getOldValue()
public java.lang.Object getNewValue()
|
Copyright 1996-2010 (c) by the authors and contributors of the JHotDraw project. Some rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |