Package org.graphstream.ui.swingViewer.basicRenderer

Examples of org.graphstream.ui.swingViewer.basicRenderer.SwingBasicGraphRenderer


    } catch (AccessControlException e) {
      rendererClassName = null;
    }

    if (rendererClassName == null)
      return new SwingBasicGraphRenderer();

    try {
      Class<?> c = Class.forName(rendererClassName);
      Object object = c.newInstance();

      if (object instanceof GraphRenderer) {
        return (GraphRenderer) object;
      } else {
        logger.warning(String.format("Class '%s' is not a 'GraphRenderer'.", object));
      }
    } catch (Exception e) {
            logger.log(Level.WARNING, "Cannot create graph renderer.", e);
    }

    return new SwingBasicGraphRenderer();
  }
View Full Code Here

TOP

Related Classes of org.graphstream.ui.swingViewer.basicRenderer.SwingBasicGraphRenderer

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.