infovis.tree.io
Class TreeReaderFactory
java.lang.Object
infovis.utils.BasicFactory
infovis.io.AbstractReaderFactory
infovis.tree.io.TreeReaderFactory
public class TreeReaderFactory
- extends AbstractReaderFactory
Factory of tree readers.
- Version:
- $Revision: 1.19 $
- Author:
- Jean-Daniel Fekete
TreeReaderFactory
public TreeReaderFactory()
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 nametree
- 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.