Package org.apache.harmony.awt.gl

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


    public static MultiRectArea getObscuredRegion(long hwnd, Rectangle part) {
        int rects[] = getObscuredRegionImpl(hwnd, part.x, part.y,
                                            part.width, part.height);
        MultiRectArea mra = new MultiRectArea();
        for (int i=0; i<rects.length; i+=4) {
            mra.addRect(rects[i], rects[i+1], rects[i+2]-1, rects[i+3]-1);
        }
        return mra;
    }
    private static native int[] getObscuredRegionImpl(long hwnd,
            int x, int y, int w, int h);
View Full Code Here


    public static MultiRectArea getObscuredRegion(long hwnd, Rectangle part) {
        int rects[] = getObscuredRegionImpl(hwnd, part.x, part.y,
                                            part.width, part.height);
        MultiRectArea mra = new MultiRectArea();
        for (int i=0; i<rects.length; i+=4) {
            mra.addRect(rects[i], rects[i+1], rects[i+2]-1, rects[i+3]-1);
        }
        return mra;
    }
    private static native int[] getObscuredRegionImpl(long hwnd,
            int x, int y, int w, int h);
View Full Code Here

        mra = new MultiRectArea(1, 2, 4, 6);
        checkPathIteratorDouble(
                mra.getPathIterator(null),
                new double[]{1, 2, 4, 2, 4, 6, 1, 6});

        mra.addRect(4, 1, 6, 4);
        checkPathIteratorDouble(
                mra.getPathIterator(null),
                new double[]{
                        1, 2, 4, 2, 4, 6, 1, 6,
                        4, 1, 6, 1, 6, 4, 4, 4});
View Full Code Here

        mra = new MultiRectArea(1, 2, 4, 6);
        checkPathIteratorFloat(
                mra.getPathIterator(null),
                new float[]{1, 2, 4, 2, 4, 6, 1, 6});

        mra.addRect(4, 1, 6, 4);
        checkPathIteratorFloat(
                mra.getPathIterator(null),
                new float[]{
                        1, 2, 4, 2, 4, 6, 1, 6,
                        4, 1, 6, 1, 6, 4, 4, 4});
View Full Code Here

        mra = new MultiRectArea(1, 2, 4, 6);
        checkPathIteratorDouble(
                mra.getPathIterator(null),
                new double[]{1, 2, 4, 2, 4, 6, 1, 6});

        mra.addRect(4, 1, 6, 4);
        checkPathIteratorDouble(
                mra.getPathIterator(null),
                new double[]{
                        1, 2, 4, 2, 4, 6, 1, 6,
                        4, 1, 6, 1, 6, 4, 4, 4});
View Full Code Here

        mra = new MultiRectArea(1, 2, 4, 6);
        checkPathIteratorFloat(
                mra.getPathIterator(null),
                new float[]{1, 2, 4, 2, 4, 6, 1, 6});

        mra.addRect(4, 1, 6, 4);
        checkPathIteratorFloat(
                mra.getPathIterator(null),
                new float[]{
                        1, 2, 4, 2, 4, 6, 1, 6,
                        4, 1, 6, 1, 6, 4, 4, 4});
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.