Package org.apache.xmlgraphics.java2d.ps

Examples of org.apache.xmlgraphics.java2d.ps.EPSDocumentGraphics2D.drawRect()


           
            //Set up the document size
            g2d.setupDocument(out, 400, 200); //400pt x 200pt
           
            //Paint a bounding box
            g2d.drawRect(0, 0, 400, 200);
           
            //A few rectangles rotated and with different color
            Graphics2D copy = (Graphics2D)g2d.create();
            int c = 12;
            for (int i = 0; i < c; i++) {
View Full Code Here


           
            //Set up the document size
            g2d.setupDocument(out, 400, 200); //400pt x 200pt
           
            //Paint a bounding box
            g2d.drawRect(0, 0, 400, 200);
           
            //A few rectangles rotated and with different color
            Graphics2D copy = (Graphics2D)g2d.create();
            int c = 12;
            for (int i = 0; i < c; i++) {
View Full Code Here

            //Set up the document size
            g2d.setupDocument(out, 400, 200); //400pt x 200pt

            //Paint a bounding box
            g2d.drawRect(0, 0, 400, 200);

            g2d.setFont(new Font("sans-serif", Font.BOLD, 14));
            g2d.drawString("Color usage example:", 10, 20);
            g2d.setFont(new Font("sans-serif", Font.PLAIN, 12));
            g2d.drawString("RGB", 10, 84);
View Full Code Here

            //Set up the document size
            g2d.setupDocument(out, 400, 200); //400pt x 200pt

            //Paint a bounding box
            g2d.drawRect(0, 0, 400, 200);

            //A few rectangles rotated and with different color
            Graphics2D copy = (Graphics2D)g2d.create();
            int c = 12;
            for (int i = 0; i < c; i++) {
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.