All Packages Class Hierarchy This Package Previous Next Index
Class lib.GDLVisualizer
java.lang.Object
|
+----lib.GDLVisualizer
- public class GDLVisualizer
- extends Object
Using this class, one can create a GDL-file for a sytax tree. The class
GDLVisualizer creates a header, writes all the nodes and the
outgoing edges to file and closes it then.
By default, decl-edges are not written. They can be enabled by
setWriteDecls.
-
GDLVisualizer()
-
-
createFile(String, Node)
- To create a GDL-file, on has to call this function, which does everything
needed.
-
setWriteDecls(boolean)
- If
writeDecls is set to true via this method,
decl-edges are also written.
GDLVisualizer
public GDLVisualizer()
createFile
public static void createFile(String filename,
Node root)
- To create a GDL-file, on has to call this function, which does everything
needed.
- Parameters:
- filename - the name of the file that will be created
- root - reference to the root of the tree
setWriteDecls
public static void setWriteDecls(boolean onOff)
- If
writeDecls is set to true via this method,
decl-edges are also written.
- Parameters:
- onOff - enable/disable
decl-edges
All Packages Class Hierarchy This Package Previous Next Index