public class CompositeFigureEvent
extends java.util.EventObject
EventObject
sent to CompositeFigureListener
s.
Observer
Changes in the composition of a composite figure can be observed.
Subject: CompositeFigure
; Observer:
CompositeFigureListener
; Event: CompositeFigureEvent
.
Constructor and Description |
---|
CompositeFigureEvent(CompositeFigure source,
Figure child,
java.awt.geom.Rectangle2D.Double invalidatedArea,
int zIndex)
Constructs an event for the provided CompositeFigure.
|
Modifier and Type | Method and Description |
---|---|
Figure |
getChildFigure()
Gets the changed child figure.
|
CompositeFigure |
getCompositeFigure()
Gets the changed drawing.
|
int |
getIndex()
Returns the z-index of the child figure.
|
java.awt.geom.Rectangle2D.Double |
getInvalidatedArea()
Gets the bounds of the invalidated area on the drawing.
|
public CompositeFigureEvent(CompositeFigure source, Figure child, java.awt.geom.Rectangle2D.Double invalidatedArea, int zIndex)
source
- The composite figure.child
- The changed figure.invalidatedArea
- The bounds of the invalidated area on the drawing.public CompositeFigure getCompositeFigure()
public Figure getChildFigure()
public java.awt.geom.Rectangle2D.Double getInvalidatedArea()
public int getIndex()