Package org.apache.fop.svg

Examples of org.apache.fop.svg.PDFDocumentGraphics2D.translate()


            //Set up the document size
            Dimension pageSize = new Dimension(
                    (int)Math.ceil(UnitConv.mm2pt(210)),
                    (int)Math.ceil(UnitConv.mm2pt(297))); //page size A4 (in pt)
            g2d.setupDocument(out, pageSize.width, pageSize.height);
            g2d.translate(144, 72); //Establish some page borders

            //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.