java.awt.event
Class PaintEvent
java.lang.Object
|
+--java.util.EventObject
|
+--java.awt.AWTEvent
|
+--java.awt.event.ComponentEvent
|
+--java.awt.event.PaintEvent
This event is generated when an area of the screen needs to be painted.
This event is not meant for users, but exists to allow proper serialization
behavior in the EventQueue with user-accessible events.
Since:Author:- Aaron M. Renn <arenn@urbanophile.com>
PAINT
public static final int PAINT
This id is for paint event types.
PAINT_FIRST
public static final int PAINT_FIRST
This is the first id in the range of event ids used by this class.
PAINT_LAST
public static final int PAINT_LAST
This is the last id in the range of event ids used by this class.
UPDATE
public static final int UPDATE
This id is for update event types.
PaintEvent
public PaintEvent(java.awt.Component source, int id, java.awt.Rectangle updateRect)
Initializes a new instance of PaintEvent
with the specified
source, id, and update region. Note that an invalid id leads to
unspecified results.
Parameters:
Throws:
getUpdateRect
public Rectangle getUpdateRect()
Returns the rectange to be updated for this event.
Returns:
paramString
public String paramString()
Returns a string identifying this event.
Returns:
- a string identifying this event
setUpdateRect
public void setUpdateRect(java.awt.Rectangle updateRect)
Sets the rectangle to be updated for this event.
Parameters: