Package org.codemap.util.geom

Examples of org.codemap.util.geom.Shape


                (n2.getPrevControlPoint() == null) && (n2.getRoutingParent() == null))) {
            displayWidth = computeStraightEdge(edge);
        } else {
            displayWidth = computeEdge(edge);
        }
        Shape shape = edge.getShape();
        gc.setLineWidth((int) displayWidth);
        renderShape(gc, shape);
    }
View Full Code Here


   
    protected double computeStraightEdge(Edge edge) {
        double displayWidth = scale.getDisplayWidth(edge.getWeight());
        Node n1 = edge.getFirstNode();
        Node n2 = edge.getSecondNode();
        Shape shape = edge.getShape();
        if ((shape == null) || !(shape instanceof Line2D)) {
            shape = new Line2D.Double(n1.getLocation(), n2.getLocation());
            edge.setShape(shape);
        } else {
            Line2D line = (Line2D)shape;
View Full Code Here

        fourPoints[0] = grandParent;
        fourPoints[1] = parent;
        fourPoints[2] = child;
        fourPoints[3] = grandChild;

        Shape shape = edge.getShape();
        CubicCurve2D myCurve;
        if (shape == null) {
            myCurve = new CubicCurve2D.Double();
            edge.setShape(myCurve);
        } else {
View Full Code Here

TOP

Related Classes of org.codemap.util.geom.Shape

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.