public class FigureChangeEvent
extends java.util.EventObject
Constructor and Description |
---|
FigureChangeEvent(Figure source)
Constructs an event for the given source Figure with an empty rectangle.
|
FigureChangeEvent(Figure source,
java.awt.Rectangle r)
Constructs an event for the given source Figure.
|
Modifier and Type | Method and Description |
---|---|
Figure |
getFigure()
Gets the changed figure.
|
java.awt.Rectangle |
getInvalidatedRectangle()
Gets the changed rectangle.
|
public FigureChangeEvent(Figure source, java.awt.Rectangle r)
source
- the figure that this event originates fromr
- the rectangle which is invalidated (needs repainting)public FigureChangeEvent(Figure source)
source
- the figure that this event originates frompublic Figure getFigure()
public java.awt.Rectangle getInvalidatedRectangle()
From the book: Flexible, Reliable Software, © CRC Press 2010. Author: Henrik B. Christensen, Aarhus University, Denmark