org.eclipse.xtext.util.formallang
Class NfaFormatter.Node
java.lang.Object
org.eclipse.xtext.util.formallang.NfaFormatter.Node
- Enclosing class:
- NfaFormatter
protected static class NfaFormatter.Node
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
name
protected java.lang.String name
alias
protected boolean alias
children
protected java.util.List<NfaFormatter.Node> children
NfaFormatter.Node
public NfaFormatter.Node(java.lang.String name,
boolean alias)
getMinChildrenWidth
public int getMinChildrenWidth()
getMinWidth
public int getMinWidth()
getNameLine
public java.lang.String getNameLine()
getNamePos
protected int getNamePos(int column,
int width)
drawEdge
protected void drawEdge(NfaFormatter.Canvas canvas,
int fromLine,
int fromCol,
int fromWidth,
int toCol,
int toWidth)
draw
public void draw(NfaFormatter.Canvas canvas,
int line,
int column,
int width)
getBranchLine
public java.lang.String getBranchLine()
getTopAnchor
public int getTopAnchor()
ws
protected java.lang.String ws(int count)