Package org.apache.harmony.awt.gl

Examples of org.apache.harmony.awt.gl.MultiRectArea.intersect()


        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;
    }

    private void readObject(ObjectInputStream stream) throws IOException,
View Full Code Here


        }
        for (Iterator dirties = dirtyRegionsCopy.iterator(); dirties.hasNext(); ) {
            Map.Entry entry = (Map.Entry)dirties.next();
            JComponent c = (JComponent)entry.getKey();
            MultiRectArea dirtyRect = (MultiRectArea)entry.getValue();
            dirtyRect.intersect(c.getVisibleRect());

            if (mergeWithParent(c, dirtyRect)) {
                continue;
            }
            if (mergeWithChildren(c, dirtyRect)) {
View Full Code Here

        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;
    }

    private void readObject(ObjectInputStream stream) throws IOException,
View Full Code Here

                            childrenCoverage = MultiRectArea.union(childrenCoverage, clip);
                        }
                    }
                    rc++;
                    if (clipBounds != null) {
                        clip.intersect(clipBounds);
                    }
                    clip.translate(-bounds.x, -bounds.y);
                    compList[rc] = comp;
                    clipList[rc] = clip;
                }
View Full Code Here

        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;
    }

    private void readObject(ObjectInputStream stream) throws IOException,
View Full Code Here

                            childrenCoverage = MultiRectArea.union(childrenCoverage, clip);
                        }
                    }
                    rc++;
                    if (clipBounds != null) {
                        clip.intersect(clipBounds);
                    }
                    clip.translate(-bounds.x, -bounds.y);
                    compList[rc] = comp;
                    clipList[rc] = clip;
                }
View Full Code Here

        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;
    }

    private void readObject(ObjectInputStream stream) throws IOException,
View Full Code Here

                startSeg = (startSeg + 1) % 8;
            }
        }

        if (clip != null) {
            mra.intersect(clip);
        }

        return mra;
    }
View Full Code Here

        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;
    }

    private void readObject(ObjectInputStream stream) throws IOException,
View Full Code Here

        }
        for (Iterator dirties = dirtyRegionsCopy.iterator(); dirties.hasNext(); ) {
            Map.Entry entry = (Map.Entry)dirties.next();
            JComponent c = (JComponent)entry.getKey();
            MultiRectArea dirtyRect = (MultiRectArea)entry.getValue();
            dirtyRect.intersect(c.getVisibleRect());

            if (mergeWithParent(c, dirtyRect)) {
                continue;
            }
            if (mergeWithChildren(c, dirtyRect)) {
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.