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

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


     */
    @SuppressWarnings("unchecked")
  public static void main(String[] args) {
     
      Jung2DViewer sgv = new Jung2DViewer();
      Layout<String, String> layout = new CircleLayout(sgv.graph);
    layout.setSize(new Dimension(300,300)); // sets the initial size of the space
    // The BasicVisualizationServer<V,E> is parameterized by the edge types
    VisualizationViewer<String,String> vv = new VisualizationViewer<String,String>(layout);
    vv.setPreferredSize(new Dimension(350,350)); //Sets the viewing area size
   
    // Setup up a new vertex to paint transformer...
View Full Code Here


        return Long.parseLong(numero);
    }

    public static void convertGraphToImage(Graph grap) {
        try {
            Layout layout = new CircleLayout(grap);

            Dimension dime = new Dimension(grap.getEdgeCount() * 100, grap.getEdgeCount() * 100);

            VisualizationImageServer vv = new VisualizationImageServer(layout, dime);

View Full Code Here

TOP

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

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.