infovis.graph.io
Class GraphReaderFactory
java.lang.Object
infovis.utils.BasicFactory
infovis.io.AbstractReaderFactory
infovis.graph.io.GraphReaderFactory
public class GraphReaderFactory
- extends AbstractReaderFactory
Reader Factory for Graphs.
- Version:
- $Revision: 1.18 $
- Author:
- Jean-Daniel Fekete
GraphReaderFactory
public GraphReaderFactory()
getGraph
public static Graph getGraph(Table table)
- Returns a Graph from a specified table.
- Parameters:
table
- the table.
- Returns:
- a Graph from a specified table.
getInstance
public static GraphReaderFactory getInstance()
- Returns the shared instance of this
GraphReaderFactory
- Returns:
- the shared instance of this
GraphReaderFactory
setInstance
public static void setInstance(GraphReaderFactory graph)
createGraphReader
public static AbstractReader createGraphReader(String name,
Graph graph)
- Creates a graph reader from a specified resource name and a graph
- Parameters:
name
- the resource namegraph
- the graph
- Returns:
- a graph reader or
null
.
createGraphReader
public static AbstractReader createGraphReader(InputStream in,
String name,
Graph graph)
readGraph
public static boolean readGraph(String name,
Graph graph)
Copyright © 2005 by Jean-Daniel Fekete and INRIA, France All rights reserved.