Package org.apache.harmony.awt.gl

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


    @Override
    public void fill(Shape s) {
        if (!nativeBrush || composite != AlphaComposite.SrcOver) {
            s = transform.createTransformedShape(s);
            MultiRectArea mra = jsr.rasterize(s, 0.5);
            super.fillMultiRectAreaPaint(mra);
            return;
        }

        PathIterator pi = s.getPathIterator(transform, 0.5);
View Full Code Here


    @Override
    public void fillRect(int x, int y, int width, int height) {
        if (!nativeBrush || composite != AlphaComposite.SrcOver) {
            Shape s = transform.createTransformedShape(new Rectangle(x, y, width, height));
            MultiRectArea mra = jsr.rasterize(s, 0.5);
            super.fillMultiRectAreaPaint(mra);
            return;
        }

        fillRect(gi, x, y, width, height);
View Full Code Here

            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

            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

            rect.translate(dx, dy);
            rgn[i] = rect;
        }
        bufferPtr.unlock();

        return new MultiRectArea(rgn);
    }
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

            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

            rect.translate(dx, dy);
            rgn[i] = rect;
        }
        bufferPtr.unlock();

        return new MultiRectArea(rgn);
    }
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.