Package org.graphstream.ui.swingViewer

Examples of org.graphstream.ui.swingViewer.DefaultView


   *            It true, the view is placed in a frame, else the view is only
   *            created and you must embed it yourself in your application.
   */
  public ViewPanel addDefaultView(boolean openInAFrame) {
    synchronized (views) {
            DefaultView view = new DefaultView(this, DEFAULT_VIEW_ID,
          newGraphRenderer());
      addView(view);

      if (openInAFrame)
        view.openInAFrame(true);

      return view;
    }
  }
View Full Code Here


   *            a JPanel that can be inserted in a GUI.
   * @return The created view.
   */
  public ViewPanel addView(String id, GraphRenderer renderer, boolean openInAFrame) {
    synchronized (views) {
            DefaultView view = new DefaultView(this, id, renderer);
      addView(view);

      if (openInAFrame)
        view.openInAFrame(true);

      return view;
    }
  }
View Full Code Here

TOP

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

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.