Examples of MultiRectArea


Examples of org.apache.harmony.awt.gl.MultiRectArea

        }
        if (r.isEmpty()) {
            return null;
        }
        r.translate(x, y);
        MultiRectArea ret = parent.getObscuredRegion(r);
        if (ret != null) {
            parent.addObscuredRegions(ret, this);
            ret.translate(-x, -y);
            ret.intersect(new Rectangle(0, 0, w, h));
        }
        return ret;
    }
View Full Code Here

Examples of org.apache.harmony.awt.gl.MultiRectArea

        if (clipBounds != null && clipBounds.isEmpty()) {
            return;
        }
        int cc = getComponentCount();
        if (!isOptimizedDrawingEnabled()) {
            MultiRectArea childrenCoverage = null;
            Component compList[] = new Component[cc];
            Shape clipList[] = new Shape[cc];
            int rc = -1;
            for (int i = 0; i < cc; i++) {
                Component comp = getComponent(i);
                if (comp.isVisible()) {
                    if (!comp.isLightweight()) {
                        continue;
                    }
                    MultiRectArea clip;
                    Rectangle bounds = comp.getBounds();
                    if (childrenCoverage == null && comp.isOpaque()) {
                        childrenCoverage = new MultiRectArea(bounds);
                        clip = new MultiRectArea(bounds);
                    } else {
                        clip = new MultiRectArea(bounds);
                        clip.substract(childrenCoverage);
                        if (clip.isEmpty()) {
                            continue;
                        }
                        if (comp.isOpaque()) {
                            childrenCoverage = MultiRectArea.union(childrenCoverage, clip);
                        }
                    }
                    rc++;
                    if (clipBounds != null) {
                        clip.intersect(clipBounds);
                    }
                    clip.translate(-bounds.x, -bounds.y);
                    compList[rc] = comp;
                    clipList[rc] = clip;
                }
            }
            while (rc >= 0) {
View Full Code Here

Examples of org.apache.harmony.awt.gl.MultiRectArea

            indexModel = true;
        }
    }

    public XGraphics2D(long drawable, int tx, int ty, int width, int height) {
        this(drawable, tx, ty, new MultiRectArea(new Rectangle(width, height)));
    }
View Full Code Here

Examples of org.apache.harmony.awt.gl.MultiRectArea

    public XGraphics2D(NativeWindow nwin, int tx, int ty, MultiRectArea clip) {
        this(nwin.getId(), tx, ty, clip);
    }

    public XGraphics2D(NativeWindow nwin, int tx, int ty, int width, int height) {
        this(nwin.getId(), tx, ty, new MultiRectArea(new Rectangle(width, height)));
    }
View Full Code Here

Examples of org.apache.harmony.awt.gl.MultiRectArea

            if (behaviour instanceof LWBehavior) {
                if (parent == null || !parent.visible || !parent.behaviour.isDisplayable()) {
                    return;
                }
                if (repaintRegion == null) {
                    repaintRegion = new MultiRectArea(new Rectangle(x, y, width, height));
                }
                repaintRegion.intersect(new Rectangle(0, 0, this.w, this.h));
                repaintRegion.translate(this.x, this.y);
                parent.repaintRegion = repaintRegion;
                repaintRegion = null;
View Full Code Here

Examples of org.apache.harmony.awt.gl.MultiRectArea

        }
        if (r.isEmpty()) {
            return null;
        }
        r.translate(x, y);
        MultiRectArea ret = parent.getObscuredRegion(r);
        if (ret != null) {
            parent.addObscuredRegions(ret, this);
            ret.translate(-x, -y);
            ret.intersect(new Rectangle(0, 0, w, h));
        }
        return ret;
    }
View Full Code Here

Examples of org.apache.harmony.awt.gl.MultiRectArea

            indexModel = true;
        }
    }

    public XGraphics2D(XVolatileImage image, int tx, int ty, int width, int height) {
        this(image, tx, ty, new MultiRectArea(new Rectangle(width, height)));
    }
View Full Code Here

Examples of org.apache.harmony.awt.gl.MultiRectArea

            indexModel = true;
        }
    }

    public XGraphics2D(long drawable, int tx, int ty, int width, int height) {
        this(drawable, tx, ty, new MultiRectArea(new Rectangle(width, height)));
    }
View Full Code Here

Examples of org.apache.harmony.awt.gl.MultiRectArea

    public XGraphics2D(NativeWindow nwin, int tx, int ty, MultiRectArea clip) {
        this(nwin.getId(), tx, ty, clip);
    }

    public XGraphics2D(NativeWindow nwin, int tx, int ty, int width, int height) {
        this(nwin.getId(), tx, ty, new MultiRectArea(new Rectangle(width, height)));
    }
View Full Code Here

Examples of org.apache.harmony.awt.gl.MultiRectArea

   */
  private static final long serialVersionUID = 3075461419585512220L;
  private final MultiRectArea clip;

    public ClipRegion(final MultiRectArea clip) {
        this.clip = new MultiRectArea(clip);
        setBounds(clip.getBounds());
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.