FileDocCategorySizeDatePackage
PaintEvent.javaAPI DocAndroid 1.5 API2527Wed May 06 22:41:54 BST 2009java.awt.event

PaintEvent

public class PaintEvent extends ComponentEvent
This class is not supported in Android 1.0. It is merely provided to maintain interface compatibility with desktop Java implementations.
since
Android 1.0

Fields Summary
private static final long
serialVersionUID
public static final int
PAINT_FIRST
public static final int
PAINT_LAST
public static final int
PAINT
public static final int
UPDATE
private Rectangle
updateRect
Constructors Summary
public PaintEvent(Component source, int id, Rectangle updateRect)


           
        super(source, id);

        this.updateRect = updateRect;
    
Methods Summary
public java.awt.RectanglegetUpdateRect()

        return updateRect;
    
public java.lang.StringparamString()

        /* The format is based on 1.5 release behavior 
         * which can be revealed by the following code:
         * 
         * PaintEvent e = new PaintEvent(new Component(){}, 
         *          PaintEvent.PAINT, new Rectangle(0, 0, 10, 20)); 
         * System.out.println(e);
         */

        String typeString = null;

        switch (id) {
        case PAINT:
            typeString = "PAINT"; //$NON-NLS-1$
            break;
        case UPDATE:
            typeString = "UPDATE"; //$NON-NLS-1$
            break;
        default:
            typeString = "unknown type"; //$NON-NLS-1$
        }

        return typeString + ",updateRect=" + updateRect; //$NON-NLS-1$
    
public voidsetUpdateRect(java.awt.Rectangle updateRect)

        this.updateRect = updateRect;