Package nl.nanoworks.nanograph.drawing.background

Examples of nl.nanoworks.nanograph.drawing.background.GridBackGround


    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);
   
    JFrame f = new JFrame();
View Full Code Here


   
    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 nl.nanoworks.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.