Examples of toScreen()


Examples of org.enhydra.jawe.components.graph.Graph.toScreen()

                Object[] cells = graph.getRoots();

                if (cells.length > 0) {
                    graph.setSize(graph.getPreferredSize());
                    Rectangle bounds = graph.getCellBounds(cells).getBounds();// HM, JGraph3.4.1
                    graph.toScreen(bounds);

                    // Create a Buffered Image
                    Dimension d = bounds.getSize();
                    img = new BufferedImage(d.width, d.height, BufferedImage.TYPE_INT_RGB);
                    Graphics2D graphics = img.createGraphics();
View Full Code Here

Examples of org.jgraph.JGraph.toScreen()

       
        if (cells.length > 0) {
            Rectangle2D rectangle = graph.getCellBounds(cells);

            graph.setGridVisible(false);
            graph.toScreen(rectangle);

            Dimension dimension = rectangle.getBounds().getSize();
            // Check Dimension, if max size reached, let user know about this and resize graph
            if(dimension.width < MAX_WIDTH && dimension.height < MAX_HEIGHT)
            {
View Full Code Here

Examples of org.jgraph.JGraph.toScreen()

       
        if (cells.length > 0) {
            Rectangle2D rectangle = graph.getCellBounds(cells);

            graph.setGridVisible(false);
            graph.toScreen(rectangle);

            // Create a Buffered Image
            Dimension dimension = rectangle.getBounds().getSize();
            image = new BufferedImage(dimension.width, dimension.height, BufferedImage.TYPE_INT_RGB);
            Graphics2D graphics = image.createGraphics();
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.