de.tuebingen.uni.sfs.germanet.relatedness.gui
Class PrefuseTreeStructure
java.lang.Object
de.tuebingen.uni.sfs.germanet.relatedness.gui.PrefuseTreeStructure
public class PrefuseTreeStructure
- extends java.lang.Object
Class for buildung up the graph structure in prefuse
Field Summary |
static java.lang.String |
TYPE
|
Method Summary |
void |
addNode(de.tuebingen.uni.sfs.germanet.api.Synset s)
|
void |
addtoRoot(de.tuebingen.uni.sfs.germanet.api.Synset s)
|
prefuse.data.Tree |
getTree()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TYPE
public static final java.lang.String TYPE
- See Also:
- Constant Field Values
PrefuseTreeStructure
public PrefuseTreeStructure()
- initialising a tree, represented by a table of nodes
addNode
public void addNode(de.tuebingen.uni.sfs.germanet.api.Synset s)
- Parameters:
s
- will be added as a child to the previous node
addtoRoot
public void addtoRoot(de.tuebingen.uni.sfs.germanet.api.Synset s)
- Parameters:
s
- will be added to the rootnode
getTree
public prefuse.data.Tree getTree()
- Returns:
- the tree