Package org.joshy.gfx.stage.swing

Examples of org.joshy.gfx.stage.swing.SwingGFX.fillRect()


            //fill in the background
            SwingGFX gfx = new SwingGFX(g);
            org.joshy.gfx.draw.Paint fill = page.getDocument().getBackgroundFill();
            if(fill != null) {
                gfx.setPaint(fill);
                gfx.fillRect(0,0,(int)page.getDocument().getWidth(), (int) page.getDocument().getHeight());
            }

            //draw everything on the page
            ExportProcessor.processFragment(new SavePNGAction.PNGExporter(), g, page.getNodes());
        }
View Full Code Here


            g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
            SwingGFX gfx = new SwingGFX(g2);
            Paint fill = doc.getBackgroundFill();
            if(fill != null && useDocBg) {
                gfx.setPaint(fill);
                gfx.fillRect(0,0,(int)doc.getWidth(), (int) doc.getHeight());
            }
        }

        public void pageStart(Graphics2D out, SketchDocument.SketchPage page) {
            //To change body of implemented methods use File | Settings | File Templates.
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.