Package org.opencypher.railroad
Interface Diagram.Renderer<Canvas,Text,EX extends Exception>
-
- All Known Implementing Classes:
AsciiArtRenderer,ShapeRenderer
- Enclosing class:
- Diagram
public static interface Diagram.Renderer<Canvas,Text,EX extends Exception>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default org.opencypher.railroad.SizediagramSize(org.opencypher.railroad.Size rootSize)voidrenderAnyCase(Canvas canvas, double x, double y, Text text)voidrenderBranch(Canvas canvas, double x, double y, org.opencypher.railroad.Size size, Collection<Diagram.Figure> branches, boolean forward)voidrenderBullet(Canvas canvas, double x, double y)voidrenderCharset(Canvas canvas, double x, double y, Text text, String set)voidrenderDiagram(String name, Canvas canvas, Diagram.Figure root)voidrenderLine(Canvas canvas, double x, double y, org.opencypher.railroad.Size size, List<Diagram.Figure> sequence, boolean forward)voidrenderLoop(Canvas canvas, double x, double y, org.opencypher.railroad.Size size, Diagram.Figure forward, Diagram.Figure backward, Text description, boolean forwardDirection)voidrenderNothing(Canvas canvas, double x, double y, boolean forward)voidrenderReference(Canvas canvas, double x, double y, String target, Text name)voidrenderText(Canvas canvas, double x, double y, Text text)TextrenderText(String type, String text)org.opencypher.railroad.SizesizeOfAnyCase(Text text)org.opencypher.railroad.SizesizeOfBranch(Collection<Diagram.Figure> branches)org.opencypher.railroad.SizesizeOfBullet()org.opencypher.railroad.SizesizeOfCharset(Text text)org.opencypher.railroad.SizesizeOfLine(Collection<Diagram.Figure> sequence)org.opencypher.railroad.SizesizeOfLoop(Diagram.Figure forward, Diagram.Figure backward, Text description)org.opencypher.railroad.SizesizeOfNothing()org.opencypher.railroad.SizesizeOfReference(Text name)org.opencypher.railroad.SizesizeOfText(Text text)
-
-
-
Method Detail
-
diagramSize
default org.opencypher.railroad.Size diagramSize(org.opencypher.railroad.Size rootSize)
-
renderDiagram
void renderDiagram(String name, Canvas canvas, Diagram.Figure root) throws EX extends Exception
-
sizeOfBullet
org.opencypher.railroad.Size sizeOfBullet()
-
sizeOfNothing
org.opencypher.railroad.Size sizeOfNothing()
-
renderNothing
void renderNothing(Canvas canvas, double x, double y, boolean forward) throws EX extends Exception
-
sizeOfText
org.opencypher.railroad.Size sizeOfText(Text text)
-
renderText
void renderText(Canvas canvas, double x, double y, Text text) throws EX extends Exception
-
sizeOfAnyCase
org.opencypher.railroad.Size sizeOfAnyCase(Text text)
-
renderAnyCase
void renderAnyCase(Canvas canvas, double x, double y, Text text) throws EX extends Exception
-
sizeOfReference
org.opencypher.railroad.Size sizeOfReference(Text name)
-
renderReference
void renderReference(Canvas canvas, double x, double y, String target, Text name) throws EX extends Exception
-
sizeOfCharset
org.opencypher.railroad.Size sizeOfCharset(Text text)
-
renderCharset
void renderCharset(Canvas canvas, double x, double y, Text text, String set) throws EX extends Exception
-
sizeOfLine
org.opencypher.railroad.Size sizeOfLine(Collection<Diagram.Figure> sequence)
-
renderLine
void renderLine(Canvas canvas, double x, double y, org.opencypher.railroad.Size size, List<Diagram.Figure> sequence, boolean forward) throws EX extends Exception
-
sizeOfBranch
org.opencypher.railroad.Size sizeOfBranch(Collection<Diagram.Figure> branches)
-
renderBranch
void renderBranch(Canvas canvas, double x, double y, org.opencypher.railroad.Size size, Collection<Diagram.Figure> branches, boolean forward) throws EX extends Exception
-
sizeOfLoop
org.opencypher.railroad.Size sizeOfLoop(Diagram.Figure forward, Diagram.Figure backward, Text description)
-
renderLoop
void renderLoop(Canvas canvas, double x, double y, org.opencypher.railroad.Size size, Diagram.Figure forward, Diagram.Figure backward, Text description, boolean forwardDirection) throws EX extends Exception
-
-