|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.EventObject
java.awt.AWTEvent
java.awt.event.ComponentEvent
java.awt.event.PaintEvent
public class 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.
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. |
Fields inherited from class java.awt.event.ComponentEvent |
---|
COMPONENT_FIRST, COMPONENT_HIDDEN, COMPONENT_LAST, COMPONENT_MOVED, COMPONENT_RESIZED, COMPONENT_SHOWN |
Fields inherited from class java.util.EventObject |
---|
source |
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. |
Methods inherited from class java.awt.event.ComponentEvent |
---|
getComponent |
Methods inherited from class java.awt.AWTEvent |
---|
consume, getID, isConsumed, setSource, toString |
Methods inherited from class java.util.EventObject |
---|
getSource |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int PAINT_FIRST
public static final int PAINT_LAST
public static final int PAINT
public static final int UPDATE
Constructor Detail |
---|
public PaintEvent(Component source, int id, Rectangle updateRect)
PaintEvent
with the specified
source, id, and update region. Note that an invalid id leads to
unspecified results.
source
- the event sourceid
- the event idupdateRect
- the rectangle to repaint
IllegalArgumentException
- if source is nullMethod Detail |
---|
public Rectangle getUpdateRect()
public void setUpdateRect(Rectangle updateRect)
updateRect
- the new update rectangle for this eventpublic String paramString()
paramString
in class ComponentEvent
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |