Package org.apache.xmlgraphics.java2d.ps

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


           
            //Some text
            g2d.rotate(-0.25);
            g2d.setColor(Color.RED);
            g2d.setFont(new Font("sans-serif", Font.PLAIN, 36));
            g2d.drawString("Hello world!", 140, 140);
            g2d.setColor(Color.RED.darker());
            g2d.setFont(new Font("serif", Font.PLAIN, 36));
            g2d.drawString("Hello world!", 140, 180);
           
            //Cleanup
View Full Code Here


            g2d.setColor(Color.RED);
            g2d.setFont(new Font("sans-serif", Font.PLAIN, 36));
            g2d.drawString("Hello world!", 140, 140);
            g2d.setColor(Color.RED.darker());
            g2d.setFont(new Font("serif", Font.PLAIN, 36));
            g2d.drawString("Hello world!", 140, 180);
           
            //Cleanup
            g2d.finish();
        } finally {
            IOUtils.closeQuietly(out);
View Full Code Here

           
            //Some text
            g2d.rotate(-0.25);
            g2d.setColor(Color.RED);
            g2d.setFont(new Font("sans-serif", Font.PLAIN, 36));
            g2d.drawString("Hello world!", 140, 140);
            g2d.setColor(Color.RED.darker());
            g2d.setFont(new Font("serif", Font.PLAIN, 36));
            g2d.drawString("Hello world!", 140, 180);
           
            //Cleanup
View Full Code Here

            g2d.setColor(Color.RED);
            g2d.setFont(new Font("sans-serif", Font.PLAIN, 36));
            g2d.drawString("Hello world!", 140, 140);
            g2d.setColor(Color.RED.darker());
            g2d.setFont(new Font("serif", Font.PLAIN, 36));
            g2d.drawString("Hello world!", 140, 180);
           
            //Cleanup
            g2d.finish();
        } finally {
            IOUtils.closeQuietly(out);
View Full Code Here

            //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);
            g2d.drawString("CMYK", 60, 84);
            g2d.drawString("(Lab)", 110, 84);
            g2d.drawString("(Named)", 160, 84);
View Full Code Here

            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);
            g2d.drawString("CMYK", 60, 84);
            g2d.drawString("(Lab)", 110, 84);
            g2d.drawString("(Named)", 160, 84);

            //We're creating a few boxes all filled with some variant of the
View Full Code Here

            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);
            g2d.drawString("CMYK", 60, 84);
            g2d.drawString("(Lab)", 110, 84);
            g2d.drawString("(Named)", 160, 84);

            //We're creating a few boxes all filled with some variant of the
            //"Postgelb" (postal yellow) color as used by Swiss Post.
View Full Code Here

            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);
            g2d.drawString("CMYK", 60, 84);
            g2d.drawString("(Lab)", 110, 84);
            g2d.drawString("(Named)", 160, 84);

            //We're creating a few boxes all filled with some variant of the
            //"Postgelb" (postal yellow) color as used by Swiss Post.
View Full Code Here

            g2d.drawString("Color usage example:", 10, 20);
            g2d.setFont(new Font("sans-serif", Font.PLAIN, 12));
            g2d.drawString("RGB", 10, 84);
            g2d.drawString("CMYK", 60, 84);
            g2d.drawString("(Lab)", 110, 84);
            g2d.drawString("(Named)", 160, 84);

            //We're creating a few boxes all filled with some variant of the
            //"Postgelb" (postal yellow) color as used by Swiss Post.

            Color colRGB = new Color(255, 204, 0);
View Full Code Here

            //Some text
            g2d.rotate(-0.25);
            g2d.setColor(Color.RED);
            g2d.setFont(new Font("sans-serif", Font.PLAIN, 36));
            g2d.drawString("Hello world!", 140, 140);
            g2d.setColor(Color.RED.darker());
            g2d.setFont(new Font("serif", Font.PLAIN, 36));
            g2d.drawString("Hello world!", 140, 180);

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