Package nl.nanoworks.nanograph.layout

Examples of nl.nanoworks.nanograph.layout.CircularLayoutAlgorithm


      g.addEdge("is a", "C++", "Programming Language");
      g.addEdge("is a", "Perl", "Programming Language");
      g.addEdge("is a", "Python", "Programming Language");
    }
   
    p.setLayout(new CircularLayoutAlgorithm(200));
    //p.setLayout(new ForceDirectedLayoutAlgorithm(p));
   
    this.getContentPane().add(p);
  }
View Full Code Here


   
    DebugGraphListener dgl = new DebugGraphListener(new OutputStreamWriter(System.out));
    gp.getSelectionManager().addSelectionListener(dgl);
   
    gp.setGraph(g);
    gp.setLayout(new CircularLayoutAlgorithm(200));
   
    JFrame f = new JFrame();
    f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
   
    f.getContentPane().add(gp);
View Full Code Here

TOP

Related Classes of nl.nanoworks.nanograph.layout.CircularLayoutAlgorithm

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.