infovis.graph.io
Class GraphWriterFactory
java.lang.Object
infovis.utils.BasicFactory
infovis.io.AbstractWriterFactory
infovis.graph.io.GraphWriterFactory
public class GraphWriterFactory
- extends AbstractWriterFactory
Class GraphWriterFactory
- Version:
- $Revision: 1.7 $
- Author:
- Jean-Daniel Fekete
GraphWriterFactory
public GraphWriterFactory()
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 GraphWriterFactory getInstance()
- Returns the shared instance of this
GraphReaderFactory
- Returns:
- the shared instance of this
GraphReaderFactory
setInstance
public static void setInstance(GraphWriterFactory graph)
createGraphWriter
public static AbstractWriter createGraphWriter(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
.
writeGraph
public static boolean writeGraph(String name,
Graph graph)
Copyright © 2005 by Jean-Daniel Fekete and INRIA, France All rights reserved.