|
JHotDraw 7.5.1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.EventObject
org.jhotdraw.draw.event.CompositeFigureEvent
public class CompositeFigureEvent
An EventObject sent to CompositeFigureListeners.
Observer
Changes in the composition of a composite figure can be observed.
Subject: CompositeFigure; Observer:
CompositeFigureListener; Event: CompositeFigureEvent.
| Field Summary |
|---|
| Fields inherited from class java.util.EventObject |
|---|
source |
| Constructor Summary | |
|---|---|
CompositeFigureEvent(CompositeFigure source,
Figure child,
java.awt.geom.Rectangle2D.Double invalidatedArea,
int zIndex)
Constructs an event for the provided CompositeFigure. |
|
| Method Summary | |
|---|---|
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. |
| 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 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.| Method Detail |
|---|
public CompositeFigure getCompositeFigure()
public Figure getChildFigure()
public java.awt.geom.Rectangle2D.Double getInvalidatedArea()
public int getIndex()
|
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 | ||||||||