Package java.awt

Examples of java.awt.Graphics2D.drawLine()


        testG.draw(iter.toShape());
        exampleG.drawLine(400, 20, 400, 50);
        exampleG.drawLine(400, 50, 400, 70);
        exampleG.drawLine(400, 70, 300, 70);
        exampleG.drawLine(300, 70, 200, 70);
        exampleG.drawLine(200, 70, 100, 70);
        exampleG.drawLine(100, 70, 100, 20);
        update();
        assertImagesEqual();
View Full Code Here


        testG.draw(iter.toShape());
        exampleG.drawLine(400, 20, 400, 50);
        exampleG.drawLine(400, 50, 400, 70);
        exampleG.drawLine(400, 70, 300, 70);
        exampleG.drawLine(300, 70, 200, 70);
        exampleG.drawLine(200, 70, 100, 70);
        exampleG.drawLine(100, 70, 100, 20);
        update();
        assertImagesEqual();

        hole = geom.newHole();
View Full Code Here

        exampleG.drawLine(400, 20, 400, 50);
        exampleG.drawLine(400, 50, 400, 70);
        exampleG.drawLine(400, 70, 300, 70);
        exampleG.drawLine(300, 70, 200, 70);
        exampleG.drawLine(200, 70, 100, 70);
        exampleG.drawLine(100, 70, 100, 20);
        update();
        assertImagesEqual();

        hole = geom.newHole();
        map.addPoint(20, 20, hole);
View Full Code Here

        map.addPoint(40, 50, hole);
        map.addPoint(40, 70, hole);
        map.addPoint(20, 20, hole);

        testG.draw(iter.toShape());
        exampleG.drawLine(20, 20, 40, 20);
        exampleG.drawLine(40, 20, 40, 50);
        exampleG.drawLine(40, 50, 40, 70);
        exampleG.drawLine(40, 70, 20, 20);
        update();
        assertImagesEqual();
View Full Code Here

        map.addPoint(40, 70, hole);
        map.addPoint(20, 20, hole);

        testG.draw(iter.toShape());
        exampleG.drawLine(20, 20, 40, 20);
        exampleG.drawLine(40, 20, 40, 50);
        exampleG.drawLine(40, 50, 40, 70);
        exampleG.drawLine(40, 70, 20, 20);
        update();
        assertImagesEqual();
View Full Code Here

        map.addPoint(20, 20, hole);

        testG.draw(iter.toShape());
        exampleG.drawLine(20, 20, 40, 20);
        exampleG.drawLine(40, 20, 40, 50);
        exampleG.drawLine(40, 50, 40, 70);
        exampleG.drawLine(40, 70, 20, 20);
        update();
        assertImagesEqual();

        exampleG.dispose();
View Full Code Here

        testG.draw(iter.toShape());
        exampleG.drawLine(20, 20, 40, 20);
        exampleG.drawLine(40, 20, 40, 50);
        exampleG.drawLine(40, 50, 40, 70);
        exampleG.drawLine(40, 70, 20, 20);
        update();
        assertImagesEqual();

        exampleG.dispose();
        testG.dispose();
View Full Code Here

        map.addPoint(450, 10, geom.getShell());

        GeneralPath path=new GeneralPath();
        path.append(PrimitiveShapeIterator.getPathIterator(geom.getShell()), false);
        testG.draw(path);
        exampleG.drawLine(10, 10, 450, 10);
        update();
        assertImagesEqual();

        map.addPoint(450, 100, geom.getShell());
        path=new GeneralPath();
View Full Code Here

        map.addPoint(450, 100, geom.getShell());
        path=new GeneralPath();
        path.append(PrimitiveShapeIterator.getPathIterator(geom.getShell()), false);
        testG.draw(path);
        exampleG.drawLine(450, 10, 450, 100);
        update();
        assertImagesEqual();

        map.addPoint(50, 100, geom.getShell());
        path=new GeneralPath();
View Full Code Here

        map.addPoint(50, 100, geom.getShell());
        path=new GeneralPath();
        path.append(PrimitiveShapeIterator.getPathIterator(geom.getShell()), false);
        testG.draw(path);
        exampleG.drawLine(450, 100, 50, 100);
        update();
        assertImagesEqual();

        map.addPoint(10, 10, geom.getShell());
        path=new GeneralPath();
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.