All Packages Class Hierarchy This Package Previous Next Index
Class java.awt.event.PaintEvent
java.lang.Object
|
+----java.util.EventObject
|
+----java.awt.AWTEvent
|
+----java.awt.event.ComponentEvent
|
+----java.awt.event.PaintEvent
- public class PaintEvent
- extends ComponentEvent
The component-level paint event.
This event is a special type which is used to ensure that
paint/update method calls are serialized along with the other
events delivered from the event queue. This event is not
designed to be used with the Event Listener model; programs
should continue to override paint/update methods in order
render themselves properly.
-
PAINT
- The paint event type.
-
PAINT_FIRST
- Marks the first integer id for the range of paint event ids.
-
PAINT_LAST
- Marks the last integer id for the range of paint event ids.
-
UPDATE
- The update event type.
-
PaintEvent(Component, int, Rectangle)
- Constructs a FocusEvent object with the specified source component
and type.
-
getUpdateRect()
- Returns the rectangle representing the area which needs to be
repainted in response to this event.
-
paramString()
-
-
setUpdateRect(Rectangle)
- Sets the rectangle representing the area which needs to be
repainted in response to this event.
PAINT_FIRST
Properties Public Constant
PAINT_FIRST=int
- Marks the first integer id for the range of paint event ids.
PAINT_LAST
Properties Public Constant
PAINT_LAST=int
- Marks the last integer id for the range of paint event ids.
PAINT
Properties Public Constant
PAINT=int
- The paint event type.
UPDATE
Properties Public Constant
UPDATE=int
- The update event type.
PaintEvent
method PaintEvent(source=Component, -
id=int, -
updateRect=Rectangle) public
- Constructs a FocusEvent object with the specified source component
and type.
- Parameters:
- source - the object where the event originated
getUpdateRect
method getUpdateRect() returns Rectangle public
- Returns the rectangle representing the area which needs to be
repainted in response to this event.
setUpdateRect
method setUpdateRect(updateRect=Rectangle) public
- Sets the rectangle representing the area which needs to be
repainted in response to this event.
- Parameters:
- updateRect - the rectangle area which needs to be repainted
paramString
method paramString() returns String public
- Overrides:
- paramString in class ComponentEvent
All Packages Class Hierarchy This Package Previous Next Index