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
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanaliasprotected java.util.List<NfaGraphFormatter.Node>childrenprotected java.lang.Stringname
-
Constructor Summary
Constructors Constructor Description Node(java.lang.String name, boolean alias)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddraw(NfaGraphFormatter.Canvas canvas, int line, int column, int width)protected voiddrawEdge(NfaGraphFormatter.Canvas canvas, int fromLine, int fromCol, int fromWidth, int toCol, int toWidth)java.lang.StringgetBranchLine()intgetMinChildrenWidth()intgetMinWidth()java.lang.StringgetNameLine()protected intgetNamePos(int column, int width)intgetTopAnchor()protected java.lang.Stringws(int count)
-
-
-
Field Detail
-
name
protected java.lang.String name
-
alias
protected boolean alias
-
children
protected java.util.List<NfaGraphFormatter.Node> children
-
-
Method Detail
-
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)
-
-