infovis.graph.io
Class GraphWriterFactory

java.lang.Object
  extended by infovis.utils.BasicFactory
      extended by infovis.io.AbstractWriterFactory
          extended by infovis.graph.io.GraphWriterFactory

public class GraphWriterFactory
extends AbstractWriterFactory

Class GraphWriterFactory

Version:
$Revision: 1.7 $
Author:
Jean-Daniel Fekete

Nested Class Summary
static class GraphWriterFactory.DefaultCreator
           
 
Nested classes/interfaces inherited from class infovis.io.AbstractWriterFactory
AbstractWriterFactory.AbstractCreator, AbstractWriterFactory.Creator
 
Constructor Summary
GraphWriterFactory()
           
 
Method Summary
static AbstractWriter createGraphWriter(String name, Graph graph)
          Creates a graph reader from a specified resource name and a graph
static Graph getGraph(Table table)
          Returns a Graph from a specified table.
static GraphWriterFactory getInstance()
          Returns the shared instance of this GraphReaderFactory
static void setInstance(GraphWriterFactory graph)
           
static boolean writeGraph(String name, Graph graph)
           
 
Methods inherited from class infovis.io.AbstractWriterFactory
add, create, getCreatorAt, getCreatorNamed, iterator, remove, tryWrite
 
Methods inherited from class infovis.utils.BasicFactory
loadProperties
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GraphWriterFactory

public GraphWriterFactory()
Method Detail

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 name
graph - 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.