public class TreePostScriptGenerator extends Object
Modifier and Type | Class and Description |
---|---|
class |
TreePostScriptGenerator.VariableExtentProvide |
Modifier and Type | Field and Description |
---|---|
protected PostScriptDocument |
doc |
protected double |
gapBetweenLevels |
protected double |
gapBetweenNodes |
protected int |
nodeHeightPaddingAbove |
protected int |
nodeHeightPaddingBelow |
protected int |
nodeWidthPadding |
protected Tree |
root |
protected org.abego.treelayout.TreeLayout<Tree> |
treeLayout |
protected TreeTextProvider |
treeTextProvider |
Constructor and Description |
---|
TreePostScriptGenerator(List<String> ruleNames,
Tree root) |
TreePostScriptGenerator(List<String> ruleNames,
Tree root,
String fontName,
int fontSize) |
Modifier and Type | Method and Description |
---|---|
protected void |
generateEdges(Tree parent) |
protected void |
generateNode(Tree t) |
protected Rectangle2D.Double |
getBoundsOfNode(Tree node) |
protected Iterable<Tree> |
getChildren(Tree parent) |
String |
getPS() |
protected String |
getText(Tree tree) |
protected org.abego.treelayout.TreeForTreeLayout<Tree> |
getTree() |
TreeTextProvider |
getTreeTextProvider() |
void |
setTreeTextProvider(TreeTextProvider treeTextProvider) |
protected double gapBetweenLevels
protected double gapBetweenNodes
protected int nodeWidthPadding
protected int nodeHeightPaddingAbove
protected int nodeHeightPaddingBelow
protected Tree root
protected TreeTextProvider treeTextProvider
protected org.abego.treelayout.TreeLayout<Tree> treeLayout
protected PostScriptDocument doc
public String getPS()
protected void generateEdges(Tree parent)
protected void generateNode(Tree t)
protected org.abego.treelayout.TreeForTreeLayout<Tree> getTree()
protected Rectangle2D.Double getBoundsOfNode(Tree node)
public TreeTextProvider getTreeTextProvider()
public void setTreeTextProvider(TreeTextProvider treeTextProvider)
Copyright © 1992-2013 ANTLR. All Rights Reserved.