|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object infovis.utils.BasicFactory infovis.tree.visualization.nodelink.TreeLayoutFactory
public class TreeLayoutFactory
Factory of Tree Layout objects.
Nested Class Summary | |
---|---|
static class |
TreeLayoutFactory.AbstractCreator
Class abstract class implementing the Creator interface. |
static interface |
TreeLayoutFactory.Creator
Creator for NodeLinkTreeLayout objects. |
static class |
TreeLayoutFactory.DefaultCreator
Default implementation of the Creator interface. |
Constructor Summary | |
---|---|
TreeLayoutFactory()
Constructor. |
Method Summary | |
---|---|
void |
add(String name,
Class c)
Register a new creator with a specified name and a specified class. |
void |
add(String name,
String className,
String data)
|
void |
add(String name,
TreeLayoutFactory.Creator c)
Registers a new creator with a specified name. |
void |
add(TreeLayoutFactory.Creator c)
Registers a new creator. |
static void |
addLayout(String name,
Class c)
Register a new layout class. |
NodeLinkTreeLayout |
create(String name,
NodeLinkTreeVisualization vis)
Returns a Creator for the specified layout name and visualization. |
static NodeLinkTreeLayout |
createLayout(String name,
NodeLinkTreeVisualization visualization)
Returns a NodeLinkTreeLayout given its name and a NodeLinkTreeVisualization. |
TreeLayoutFactory.Creator |
getCreator(String name)
Returns a Creator for a specified layout name. |
static TreeLayoutFactory |
getInstance()
Returns the instance of this factory. |
Iterator |
iterator()
Returns an iterator over the names of layouts. |
static Iterator |
layoutNamesIterator()
Returns an iterator over the names of layouts. |
void |
remove(String name)
Removes a creator given its name. |
static void |
setInstance(TreeLayoutFactory inst)
Sets the instance of TreeLayoutFactory. |
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 |
---|
public TreeLayoutFactory()
Method Detail |
---|
public static TreeLayoutFactory getInstance()
public static void setInstance(TreeLayoutFactory inst)
inst
- the new instance.public static NodeLinkTreeLayout createLayout(String name, NodeLinkTreeVisualization visualization)
name
- the namevisualization
- the visualization
public static void addLayout(String name, Class c)
name
- the class namec
- the classpublic static Iterator layoutNamesIterator()
public TreeLayoutFactory.Creator getCreator(String name)
name
- the name
public NodeLinkTreeLayout create(String name, NodeLinkTreeVisualization vis)
name
- the namevis
- the visualization
public Iterator iterator()
public void add(String name, String className, String data)
public void add(String name, TreeLayoutFactory.Creator c)
name
- the layout namec
- the creatorpublic void add(TreeLayoutFactory.Creator c)
c
- the creator.public void add(String name, Class c)
name
- the namec
- the classpublic void remove(String name)
name
- the name
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |