com.mindfusion.diagramming
Class RepaintEvent
java.lang.Object
java.util.EventObject
com.mindfusion.diagramming.RepaintEvent
- All Implemented Interfaces:
- java.io.Serializable
public class RepaintEvent
- extends java.util.EventObject
Specifies the coordinates of the area that should be
repainted by views when the Repaint event is raised
- See Also:
- Serialized Form
Fields inherited from class java.util.EventObject |
source |
Constructor Summary |
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 |
Method Summary |
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. |
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 |
RepaintEvent
public RepaintEvent(java.lang.Object source,
java.awt.geom.Rectangle2D invalidRect,
boolean redrawCacheImage)
- Initializes a new instance of the
RepaintEvent
class
- Parameters:
source
- 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.
RepaintEvent
public RepaintEvent(java.lang.Object source,
java.awt.geom.Rectangle2D invalidRect)
getInvalidRect
public java.awt.geom.Rectangle2D getInvalidRect()
- Gets the rectangular area in the diagram document
that should be repainted.
- Returns:
- A Rectangle2D instance specifying the invalid rectangle.
The value of Rectangle2D.Empty indicates that the
whole view should be repainted.
setInvalidRect
public void setInvalidRect(java.awt.geom.Rectangle2D invalidRect)
- Sets the rectangular area in the diagram document
that should be repainted.
- Parameters:
invalidRect
- A Rectangle2D instance specifying the invalid rectangle.
getRedrawCacheImage
public boolean getRedrawCacheImage()
- Gets a value indicating whether the back-buffer cache image should be repainted as well.
- Returns:
- true to redraw the back-buffer image; otherwise, false.