Package org.gephi.io.exporter.preview.util

Examples of org.gephi.io.exporter.preview.util.SupportSize


     * @param file         the output SVG file
     * @param supportSize  the support size of the exported image
     * @throws Exception
     */
    private void exportData(GraphSheet graphSheet) throws Exception {
        SupportSize supportSize = new SupportSize(595, 841, LengthUnit.PIXELS);
        Progress.start(progress);
        Graph graph = graphSheet.getGraph();

        // calculates progress units count
        int max = 0;
View Full Code Here


        //Dimension
        int width = graphSheet.getWidth().intValue();
        int height = graphSheet.getHeight().intValue();
        if (width > height) {
            supportSize = new SupportSize(width * supportSize.getHeightInt() / height, supportSize.getHeightInt(), LengthUnit.PIXELS);
        } else if (height > width) {
            supportSize = new SupportSize(supportSize.getWidthInt(), height * supportSize.getWidthInt() / width, LengthUnit.PIXELS);
        }

        // root element
        svgRoot = doc.getDocumentElement();
        svgRoot.setAttributeNS(null, "width", supportSize.getWidth());
View Full Code Here

TOP

Related Classes of org.gephi.io.exporter.preview.util.SupportSize

Copyright © 2018 www.massapicom. 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.