Package java.awt.event

Examples of java.awt.event.PaintEvent


        if (x == 0 && y == 0 && width == 0 && height == 0) {
            return;
        }

        toolkit.postEvent(
            new PaintEvent(awtFrame, PaintEvent.UPDATE, new Rectangle(x,
                y, width, height)));
    }
View Full Code Here


        return null;
    }

    protected final void paintAWTComponent() {
        if (targetComponent != null) {
            toolkit.postEvent(new PaintEvent(targetComponent, PaintEvent.PAINT, targetComponent
                .getBounds()));
        }
    }
View Full Code Here

    /**
     * Post a paint event for the AWT component on the event queue.
     */
    protected final void postPaintEvent() {
        if (targetComponent != null) {
            final PaintEvent event = new PaintEvent(targetComponent, PaintEvent.PAINT, targetComponent.getBounds());
            JNodeToolkit.postToTarget(event, targetComponent);
        }
    }
View Full Code Here

    public final void paint(Graphics g) {
        if (!(targetComponent instanceof java.awt.Window)) {
            peerComponent.paint(g);
            targetComponent.paint(g);
        } else
            toolkit.postEvent(new PaintEvent(targetComponent, PaintEvent.PAINT, targetComponent.getBounds()));
    }
View Full Code Here

    }

    public final void repaint(long tm, int x, int y, int width, int height) {
        //peerComponent.repaint(tm, x, y, width, height);
        //postPaintEvent();
        toolkit.postEvent(new PaintEvent(targetComponent, PaintEvent.UPDATE, targetComponent.getBounds()));
    }
View Full Code Here

    public void endLayout() {
        if (!paintPending && !paintArea.isEmpty()
            && !ComponentAccessor.getIgnoreRepaint(target))
        {
            // if not waiting for native painting repaint damaged area
            postEvent(new PaintEvent(target, PaintEvent.PAINT,
                                     new Rectangle()));
        }
        isLayouting = false;
    }
View Full Code Here

     * what methods you end up invoking here.
     */
    public PaintEvent createPaintEvent(Component target, int x, int y, int w,
                                       int h) {

        return new PaintEvent((Component)target, PaintEvent.PAINT,
                              new Rectangle(x, y, w, h));
    }
View Full Code Here

     * NOTE: This method may be called by privileged threads.
     *       DO NOT INVOKE CLIENT CODE ON THIS THREAD!
     */
    void handleExpose(int x, int y, int w, int h) {
        if ( !ComponentAccessor.getIgnoreRepaint(target) ) {
            postEvent(new PaintEvent(target, PaintEvent.PAINT,
                                     new Rectangle(x, y, w, h)));
        }
    }
View Full Code Here

     * NOTE: This method may be called by privileged threads.
     *       DO NOT INVOKE CLIENT CODE ON THIS THREAD!
     */
    void handleRepaint(int x, int y, int w, int h) {
        if ( !ComponentAccessor.getIgnoreRepaint(target) ) {
            postEvent(new PaintEvent(target, PaintEvent.UPDATE,
                                     new Rectangle(x, y, w, h)));
        }
    }
View Full Code Here

    public void endLayout() {
        if (!paintPending && !paintArea.isEmpty() &&
            !((Component)target).getIgnoreRepaint()) {
            // if not waiting for native painting repaint damaged area
            postEvent(new PaintEvent((Component)target, PaintEvent.PAINT,
                                     new Rectangle()));
        }
        isLayouting = false;
    }
View Full Code Here

TOP

Related Classes of java.awt.event.PaintEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.