Package nl.nanoworks.nanograph.drawing.layout

Examples of nl.nanoworks.nanograph.drawing.layout.CircularLayoutAlgorithm


   
    DebugGraphListener dgl = new DebugGraphListener(new OutputStreamWriter(System.out));
    gp.getInteractionManager().addSelectionListener(dgl);
   
    gp.setModel(g);
    gp.getNanoGraph().setLayout(new CircularLayoutAlgorithm(200));
    gp.getNanoGraph().setBackground(new GridBackGround());
    DefaultNodeRenderer r = new DefaultNodeRenderer();
    r.setBodyColor(new GradientPaint(0,0,Color.YELLOW, 600, 600,Color.RED));
    gp.getNanoGraph().registerNodeRenderer(String.class, r);
   
View Full Code Here


      g.addEdge("is a", "C++", "Programming Language");
      g.addEdge("is a", "Perl", "Programming Language");
      g.addEdge("is a", "Python", "Programming Language");
    }
   
    p.getNanoGraph().setLayout(new CircularLayoutAlgorithm(200));
    DefaultNodeRenderer r = new DefaultNodeRenderer();
    r.setBodyColor(new GradientPaint(0,0,Color.YELLOW, 600, 600, Color.RED));
    p.getNanoGraph().registerNodeRenderer(String.class, r);
    p.getNanoGraph().setBackground(new GridBackGround());
   
View Full Code Here

TOP

Related Classes of nl.nanoworks.nanograph.drawing.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.