public class DrawingChangeEvent
extends java.util.EventObject
Constructor and Description |
---|
DrawingChangeEvent(Drawing source,
java.awt.Rectangle r)
Constructs a drawing change event.
|
Modifier and Type | Method and Description |
---|---|
Drawing |
getDrawing()
Return the drawing that was changed
|
java.awt.Rectangle |
getInvalidatedRectangle()
Gets the changed rectangle
|
public DrawingChangeEvent(Drawing source, java.awt.Rectangle r)
source
- the Drawing instance this change event stems fromr
- the rectangle that needs to be redrawnpublic Drawing getDrawing()
public java.awt.Rectangle getInvalidatedRectangle()
From the book: Flexible, Reliable Software, © CRC Press 2010. Author: Henrik B. Christensen, Aarhus University, Denmark