Package org.nanograph.drawing.noderenderer

Examples of org.nanograph.drawing.noderenderer.NodeRenderer


   
    public void createSVG(File f) {
      try {
      NanoGraphImage image = new NanoGraphImage(1000,1000);
      image.setModel(g);
          NodeRenderer nodeRenderer = new ImageNodeRenderer("/icons/mandarijn.png");
          EdgeRenderer edgeRenderer = new ArrowEdgeRenderer();
          edgeRenderer.setNormalColor("olivedrab");
          image.getNanograph().setDefaultNodeRenderer(nodeRenderer);
          image.getNanograph().setDefaultEdgeRenderer(edgeRenderer);
      FileOutputStream fout = new FileOutputStream(f);
View Full Code Here


   
    public void createJPEG(File f) {
      try {
      NanoGraphImage image = new NanoGraphImage(1000,1000);
      image.setModel(g);
          NodeRenderer nodeRenderer = new ImageNodeRenderer("/icons/mandarijn.png");
          EdgeRenderer edgeRenderer = new ArrowEdgeRenderer();
          edgeRenderer.setNormalColor("olivedrab");
          image.getNanograph().setDefaultNodeRenderer(nodeRenderer);
          image.getNanograph().setDefaultEdgeRenderer(edgeRenderer);
      FileOutputStream fout = new FileOutputStream(f);
View Full Code Here

TOP

Related Classes of org.nanograph.drawing.noderenderer.NodeRenderer

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.