PaintEvent (Java SE 10 & JDK 10 )
-
-
Field Summary
Fields Modifier and Type Field Description static intPAINTThe paint event type.
static intPAINT_FIRSTMarks the first integer id for the range of paint event ids.
static intPAINT_LASTMarks the last integer id for the range of paint event ids.
static intUPDATEThe update event type.
-
Fields declared in class java.awt.AWTEvent
ACTION_EVENT_MASK, ADJUSTMENT_EVENT_MASK, COMPONENT_EVENT_MASK, consumed, CONTAINER_EVENT_MASK, FOCUS_EVENT_MASK, HIERARCHY_BOUNDS_EVENT_MASK, HIERARCHY_EVENT_MASK, id, INPUT_METHOD_EVENT_MASK, INVOCATION_EVENT_MASK, ITEM_EVENT_MASK, KEY_EVENT_MASK, MOUSE_EVENT_MASK, MOUSE_MOTION_EVENT_MASK, MOUSE_WHEEL_EVENT_MASK, PAINT_EVENT_MASK, RESERVED_ID_MAX, TEXT_EVENT_MASK, WINDOW_EVENT_MASK, WINDOW_FOCUS_EVENT_MASK, WINDOW_STATE_EVENT_MASK
-
Fields declared in class java.awt.event.ComponentEvent
COMPONENT_FIRST, COMPONENT_HIDDEN, COMPONENT_LAST, COMPONENT_MOVED, COMPONENT_RESIZED, COMPONENT_SHOWN
-
Fields declared in class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor Description PaintEvent(Component source, int id, Rectangle updateRect)Constructs a
PaintEventobject with the specified source component and type.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RectanglegetUpdateRect()Returns the rectangle representing the area which needs to be repainted in response to this event.
voidsetUpdateRect(Rectangle updateRect)Sets the rectangle representing the area which needs to be repainted in response to this event.
-
Methods declared in class java.awt.event.ComponentEvent
getComponent, paramString
-
Methods declared in class java.util.EventObject
getSource
-
-