public class RepaintEvent
extends java.util.EventObject
| Constructor and Description |
|---|
RepaintEvent(java.lang.Object source,
java.awt.geom.Rectangle2D invalidRect) |
RepaintEvent(java.lang.Object source,
java.awt.geom.Rectangle2D invalidRect,
boolean redrawCacheImage)
Initializes a new instance of the
RepaintEvent class |
| Modifier and Type | Method and Description |
|---|---|
java.awt.geom.Rectangle2D |
getInvalidRect()
Gets the rectangular area in the diagram document
that should be repainted.
|
boolean |
getRedrawCacheImage()
Gets a value indicating whether the back-buffer cache image should be repainted as well.
|
void |
setInvalidRect(java.awt.geom.Rectangle2D invalidRect)
Sets the rectangular area in the diagram document
that should be repainted.
|
public RepaintEvent(java.lang.Object source,
java.awt.geom.Rectangle2D invalidRect,
boolean redrawCacheImage)
RepaintEvent classsource - The source of the event.invalidRect - A Rectangle2D object representing
the rectangle that should be repainted.redrawCacheImage - A boolean value specifying
whether the diagram cache image used during modification
should be re-created.public RepaintEvent(java.lang.Object source,
java.awt.geom.Rectangle2D invalidRect)
public java.awt.geom.Rectangle2D getInvalidRect()
public void setInvalidRect(java.awt.geom.Rectangle2D invalidRect)
invalidRect - A Rectangle2D instance specifying the invalid rectangle.public boolean getRedrawCacheImage()