Package org.gephi.preview.api

Examples of org.gephi.preview.api.Node


            originalTopLeft = new PointImpl(0f, 0f);
            originalBottomRight = new PointImpl(0f, 0f);
            return;
        }

        Node node = it.next();
        Vector topLeftVector = new Vector(node.getTopLeftPosition());
        Vector bottomRightVector = new Vector(node.getBottomRightPosition());

        while (it.hasNext()) {
            node = it.next();

            if (node.getTopLeftPosition().getX() < topLeftVector.x) {
                topLeftVector.x = node.getTopLeftPosition().getX();
            }
            if (node.getTopLeftPosition().getY() < topLeftVector.y) {
                topLeftVector.y = node.getTopLeftPosition().getY();
            }
            if (node.getBottomRightPosition().getX() > bottomRightVector.x) {
                bottomRightVector.x = node.getBottomRightPosition().getX();
            }
            if (node.getBottomRightPosition().getY() > bottomRightVector.y) {
                bottomRightVector.y = node.getBottomRightPosition().getY();
            }
        }

        originalTopLeft = new PointImpl(topLeftVector);
        originalBottomRight = new PointImpl(bottomRightVector);
View Full Code Here

TOP

Related Classes of org.gephi.preview.api.Node

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.