PaintEventNamePaintEvent
DescriptionThe 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. Class Definition
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); } Class Definition
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); } ConstantsPAINTpublic final static int PAINTThe paint event type. PAINT_FIRSTpublic final static int PAINT_FIRSTSpecifies the beginning range of paint event ID values. PAINT_LASTpublic final static int PAINT_LASTSpecifies the ending range of paint event ID values. UPDATEpublic final static int UPDATEThe update event type. ConstructorPaintEventpublic PaintEvent (Component source, ind id, Rectangle updateRect)
Instance MethodsgetUpdateRectpublic Rectangle getUpdateRect()
paramStringpublic String paramString()
setUpdateRectpublic void setUpdateRect (Rectangle updateRect)
See AlsoComponent, ComponentEvent, Graphics |
|