Package org.jgraph

Examples of org.jgraph.JGraph.paint()


            if(dimension.width < MAX_WIDTH && dimension.height < MAX_HEIGHT)
            {
              image = new BufferedImage(dimension.width, dimension.height, BufferedImage.TYPE_INT_RGB);
              Graphics2D graphics = image.createGraphics();
                graphics.translate(-rectangle.getX(), -rectangle.getY());
                graph.paint(graphics);

                graph.setGridVisible(ConfigurationManager.getConfiguration().isShowGrid());  
            }
            else
            {
View Full Code Here


                double yScaleFactor = pageHeight / g2dHeight;
              image = new BufferedImage(MAX_WIDTH, MAX_HEIGHT, BufferedImage.TYPE_INT_RGB);
                Graphics2D graphics = image.createGraphics();
                graphics.translate(-rectangle.getX(), -rectangle.getY());
                graphics.scale(xScaleFactor, yScaleFactor);
                graph.paint(graphics);

                graph.setGridVisible(ConfigurationManager.getConfiguration().isShowGrid());
            }
                    
        }
View Full Code Here

            // Create a Buffered Image
            Dimension dimension = rectangle.getBounds().getSize();
            image = new BufferedImage(dimension.width, dimension.height, BufferedImage.TYPE_INT_RGB);
            Graphics2D graphics = image.createGraphics();
            graphics.translate(-rectangle.getX(), -rectangle.getY());
            graph.paint(graphics);

            graph.setGridVisible(ConfigurationManager.getConfiguration().isShowGrid()
              && !editor.isTokenGameEnabled());           
        }
       
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.