Package org.graphstream.ui.swingViewer

Examples of org.graphstream.ui.swingViewer.GraphRenderer


  public void setRenderer(RendererType rendererType) {
    try {
      Class<? extends GraphRenderer> clazz = (Class<? extends GraphRenderer>) Class
          .forName(rendererType.classname);

      GraphRenderer obj = clazz.newInstance();

      if (this.renderer != null)
        this.renderer.close();

      this.renderer = obj;
View Full Code Here


  }

  public Viewer display(boolean autoLayout) {
    Viewer viewer = new Viewer(this,
        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);
    }
View Full Code Here

TOP

Related Classes of org.graphstream.ui.swingViewer.GraphRenderer

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.