Package org.apache.harmony.awt.gl

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


    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

        this.factory = factory;
        setEvent(event);
    }

    public MultiRectArea getClipRects() {
        return new MultiRectArea(clipRects);
    }
View Full Code Here

            wm.setFocusedWindow(newFocusedWindow);
        }
    }

    private void processExposeEvent(X11.XExposeEvent event) {
        MultiRectArea clip = nativeQueue.getAccumulatedClip(windowId);

        clip.add(new Rectangle(event.get_x(), event.get_y(),
                event.get_width(), event.get_height()));

        if (event.get_count() != 0) {
            eventId = ID_PLATFORM;
        } else {
View Full Code Here

                                                    stringWidth + TEXT_SPACING,
                                                    stringHeight + 2*TEXT_SPACING);

                if (titleRect.intersects(g.getClipBounds())) {
                    Rectangle[] difference = SwingUtilities.computeDifference(g.getClipBounds(), titleRect);
                    MultiRectArea clipArea = new MultiRectArea(difference);
                    g.setClip(clipArea);
                }
            }
        }

View Full Code Here

            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

        }
        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

        RepaintManager.currentManager(blitingComponent).markCompletelyClean(parent);

        g.copyArea(adjustedCopyRect.x - dx, adjustedCopyRect.y - dy, adjustedCopyRect.width, adjustedCopyRect.height, dx, dy);

        wasPainted = false;
        MultiRectArea affectedArea = new MultiRectArea(visibleBounds);
        affectedArea.add(lastPaintedRect);
        affectedArea.substract(adjustedCopyRect);
        if (!affectedArea.isEmpty()) {
            Shape oldClip = g.getClip();

            g.setClip(affectedArea);
            parent.paint(g);
View Full Code Here

        return true;
    }

    private boolean isObscured(final int x, final int y, final int width, final int height) {
        ComponentInternals ci = ComponentInternals.getComponentInternals();
        MultiRectArea obscuredArea = ci.getObscuredRegion(parent);
        ci.addObscuredRegions(obscuredArea, blitingComponent, parent);
        if (obscuredArea == null || obscuredArea.isEmpty()) {
            return false;
        }
        return obscuredArea.intersects(x, y, width, height);
    }
View Full Code Here

            case COMPLEXREGION: {
                clipRgn = decodeComplexRgn(hRgn, dx, dy);
                break;
            }
            case SIMPLEREGION:
                clipRgn = new MultiRectArea(clipRect);
                break;
            case NULLREGION:
                clipRgn = new MultiRectArea();
                break;
            }
            win32.DeleteObject(hRgn);
        }
        return clipRgn;
View Full Code Here

TOP

Related Classes of org.apache.harmony.awt.gl.MultiRectArea

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.