Package edu.uci.ics.jung.algorithms.layout

Examples of edu.uci.ics.jung.algorithms.layout.FRLayout2


  @Override
  public boolean evaluate(Graph<RectangleWithRef<?,?>, ?> graph)
  {
   

     Layout<RectangleWithRef<?,?>, Object> layout = new FRLayout2(graph);
     layout.setSize(new Dimension(500, 500));
     layout.initialize();


     for (RectangleWithRef<?,?> vertex : graph.getVertices())
     {
        Point2D point = layout.transform(vertex);
        vertex.setCenter(point.getX(), point.getY());
     }
    

    return true;
View Full Code Here

TOP

Related Classes of edu.uci.ics.jung.algorithms.layout.FRLayout2

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.