Package com.google.devtools.depan.eclipse.visualization.layout

Examples of com.google.devtools.depan.eclipse.visualization.layout.LayoutScaler


    return result;
  }

  public static void translatePos(Rectangle2D into, Collection<GraphNode> nodes, Map<GraphNode, Point2D> result) {
    // Translate node locations to region
    LayoutScaler scaler = new LayoutScaler(nodes, result);
    Translater intoRegion = scaler.intoRegion(into);
 
    translatePos(nodes, result, intoRegion);
  }
View Full Code Here


      }
      return result;
    }

    // Scale all the nodes to fit within the indicated region
    LayoutScaler scaler = new LayoutScaler(layoutNodes, locations);
    double scaleView = scaleWithMargin(scaler, viewport);
    Point2dUtils.Translater translater =
            Point2dUtils.newScaleTranslater(scaleView, scaleView);
    return Point2dUtils.translateNodes(layoutNodes, locations, translater);
  }
View Full Code Here

TOP

Related Classes of com.google.devtools.depan.eclipse.visualization.layout.LayoutScaler

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.