Examples of enableAutoLayout()


Examples of org.graphstream.ui.view.Viewer.enableAutoLayout()

    graph2.addAttribute("ui.stylesheet", styleSheet2);
    //View view1 =
    viewer1.addDefaultView(true);
    viewer2.addDefaultView(true);
    viewer1.enableAutoLayout();
    viewer2.enableAutoLayout();

    //view1.setBackLayerRenderer(view2);

    FileSourceDGS dgs = new FileSourceDGS();
View Full Code Here

Examples of org.graphstream.ui.view.Viewer.enableAutoLayout()

        Viewer.ThreadingModel.GRAPH_IN_ANOTHER_THREAD);
    GraphRenderer renderer = Viewer.newGraphRenderer();
    viewer.addView(Viewer.DEFAULT_VIEW_ID, renderer);
    if (autoLayout) {
      Layout layout = Layouts.newLayoutAlgorithm();
      viewer.enableAutoLayout(layout);
    }
    return viewer;
  }

  public void read(FileSource input, String filename) throws IOException,
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.