Package org.nanograph.drawing.background

Examples of org.nanograph.drawing.background.GridBackGround


   
    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());
   
    this.getContentPane().add(p);
  }
View Full Code Here

TOP

Related Classes of org.nanograph.drawing.background.GridBackGround

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.