The PaintEvent class represents the paint and update operations that the AWT performs on components. There is no PaintListener interface, so the only way to catch these events is to override paint(Graphics) and update(Graphics) in Component. This class exists so that paint events will get serialized properly.
public class java.awt.event.PaintEvent extends java.awt.event.ComponentEvent { // Constants public final static int PAINT; public final static int PAINT_FIRST; public final static int PAINT_LAST; public final static int UPDATE; // Constructor public PaintEvent (Component source, int id, Rectangle updateRect); // Instance Methods public Rectangle getUpdateRect(); public String paramString(); public void setUpdateRect (Rectangle updateRect); }
public class java.awt.event.PaintEvent extends java.awt.event.ComponentEvent { // Constants public final static int PAINT; public final static int PAINT_FIRST; public final static int PAINT_LAST; public final static int UPDATE; //Constructor public PaintEvent (Component source, int id, Rectangle updateRect); // Instance Methods public Rectangle getUpdateRect(); public String paramString(); public void setUpdateRect (Rectangle updateRect); }
The paint event type.
Specifies the beginning range of paint event ID values.
Specifies the ending range of paint event ID values.
The update event type.
The source of the event.
The event type ID.
The rectangular area to paint.
Constructs a PaintEvent with the given characteristics.
The rectangular area that needs painting.
String with current settings of the PaintEvent.
ComponentEvent.paramString()
Helper method for toString() to generate string of current settings.
The rectangular area to paint.
Changes the rectangular area that this PaintEvent will paint.
Component, ComponentEvent, Graphics