org.graphstream.graph
Class GraphFactory

java.lang.Object
  extended by org.graphstream.graph.GraphFactory

public class GraphFactory
extends Object

An interface aimed at dynamically creating graph objects based on a class name.

Since:
september 2007

Constructor Summary
GraphFactory()
          Create a new instance of graph.
 
Method Summary
 Graph newInstance(String id, String graphClass)
          Instantiate a new graph from the given class name.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GraphFactory

public GraphFactory()
Create a new instance of graph.

Method Detail

newInstance

public Graph newInstance(String id,
                         String graphClass)
Instantiate a new graph from the given class name.

Returns:
A graph instance or null if the graph class was not found.


Copyright © 2013. All Rights Reserved.