org.jhotdraw.draw.event
Class CompositeFigureEvent
- java.lang.Object
-
- java.util.EventObject
-
- org.jhotdraw.draw.event.CompositeFigureEvent
-
- All Implemented Interfaces:
- java.io.Serializable
public class CompositeFigureEvent extends java.util.EventObjectAnEventObjectsent toCompositeFigureListeners.
Design PatternsObserver
Changes in the composition of a composite figure can be observed.
Subject:CompositeFigure; Observer:CompositeFigureListener; Event:CompositeFigureEvent.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description CompositeFigureEvent(CompositeFigure source, Figure child, java.awt.geom.Rectangle2D.Double invalidatedArea, int zIndex)Constructs an event for the provided CompositeFigure.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description FiguregetChildFigure()Gets the changed child figure.CompositeFiguregetCompositeFigure()Gets the changed drawing.intgetIndex()Returns the z-index of the child figure.java.awt.geom.Rectangle2D.DoublegetInvalidatedArea()Gets the bounds of the invalidated area on the drawing.
-
-
-
Constructor Detail
-
CompositeFigureEvent
public CompositeFigureEvent(CompositeFigure source, Figure child, java.awt.geom.Rectangle2D.Double invalidatedArea, int zIndex)
Constructs an event for the provided CompositeFigure.- Parameters:
source- The composite figure.child- The changed figure.invalidatedArea- The bounds of the invalidated area on the drawing.
-
-
Method Detail
-
getCompositeFigure
public CompositeFigure getCompositeFigure()
Gets the changed drawing.
-
getChildFigure
public Figure getChildFigure()
Gets the changed child 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 child figure.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG