java.awt.event
public class PaintEvent extends ComponentEvent
Since: 1.1
UNKNOWN: updated to 1.4
Field Summary | |
---|---|
static int | PAINT This id is for paint event types. |
static int | PAINT_FIRST This is the first id in the range of event ids used by this class. |
static int | PAINT_LAST This is the last id in the range of event ids used by this class. |
static int | UPDATE This id is for update event types. |
Constructor Summary | |
---|---|
PaintEvent(Component source, int id, Rectangle updateRect)
Initializes a new instance of PaintEvent with the specified
source, id, and update region. |
Method Summary | |
---|---|
Rectangle | getUpdateRect()
Returns the rectange to be updated for this event.
|
String | paramString()
Returns a string identifying this event.
|
void | setUpdateRect(Rectangle updateRect)
Sets the rectangle to be updated for this event.
|
PaintEvent
with the specified
source, id, and update region. Note that an invalid id leads to
unspecified results.
Parameters: source the event source id the event id updateRect the rectangle to repaint
Throws: IllegalArgumentException if source is null
Returns: the rectangle to update
Returns: a string identifying this event
Parameters: updateRect the new update rectangle for this event