infovis.tree.io
Class TreeReaderFactory

java.lang.Object
  extended by infovis.utils.BasicFactory
      extended by infovis.io.AbstractReaderFactory
          extended by infovis.tree.io.TreeReaderFactory

public class TreeReaderFactory
extends AbstractReaderFactory

Factory of tree readers.

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

Nested Class Summary
static class TreeReaderFactory.DefaultCreator
           
 
Nested classes/interfaces inherited from class infovis.io.AbstractReaderFactory
AbstractReaderFactory.AbstractCreator, AbstractReaderFactory.Creator
 
Constructor Summary
TreeReaderFactory()
           
 
Method Summary
static AbstractReader createTreeReader(String name, Tree tree)
          Creates a tree reader from a specified resource name and a tree
static TreeReaderFactory getInstance()
          Returns the shared instance of this TreeReaderFactory
static Tree getTree(Table table)
          Returns a tree from a table.
static boolean readTree(String name, Tree tree)
           
static void setInstance(TreeReaderFactory tree)
           
 
Methods inherited from class infovis.io.AbstractReaderFactory
add, create, create, getCreatorAt, getCreatorNamed, iterator, remove, tryRead
 
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

TreeReaderFactory

public TreeReaderFactory()
Method Detail

getTree

public static Tree getTree(Table table)
Returns a tree from a table.

Parameters:
table - the table.
Returns:
a tree from a table.

getInstance

public static TreeReaderFactory getInstance()
Returns the shared instance of this TreeReaderFactory

Returns:
the shared instance of this TreeReaderFactory

setInstance

public static void setInstance(TreeReaderFactory tree)

createTreeReader

public static AbstractReader createTreeReader(String name,
                                              Tree tree)
Creates a tree reader from a specified resource name and a tree

Parameters:
name - the resource name
tree - the tree
Returns:
a tree reader or null.

readTree

public static boolean readTree(String name,
                               Tree tree)


Copyright © 2005 by Jean-Daniel Fekete and INRIA, France All rights reserved.