org.eclipse.xtext.util.formallang
Class NfaGraphFormatter.Node
java.lang.Object
org.eclipse.xtext.util.formallang.NfaGraphFormatter.Node
- Enclosing class:
- NfaGraphFormatter
protected static class NfaGraphFormatter.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<NfaGraphFormatter.Node> children
NfaGraphFormatter.Node
public NfaGraphFormatter.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(NfaGraphFormatter.Canvas canvas,
int fromLine,
int fromCol,
int fromWidth,
int toCol,
int toWidth)
draw
public void draw(NfaGraphFormatter.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)