public static interface Diagram.Renderer<Canvas,Text,EX extends Exception>
| Modifier and Type | Method and Description |
|---|---|
default org.opencypher.railroad.Size |
diagramSize(org.opencypher.railroad.Size rootSize) |
void |
renderAnyCase(Canvas canvas,
double x,
double y,
Text text) |
void |
renderBranch(Canvas canvas,
double x,
double y,
org.opencypher.railroad.Size size,
Collection<Diagram.Figure> branches,
boolean forward) |
void |
renderBullet(Canvas canvas,
double x,
double y) |
void |
renderCharset(Canvas canvas,
double x,
double y,
Text text,
String set) |
void |
renderDiagram(String name,
Canvas canvas,
Diagram.Figure root) |
void |
renderLine(Canvas canvas,
double x,
double y,
org.opencypher.railroad.Size size,
List<Diagram.Figure> sequence,
boolean forward) |
void |
renderLoop(Canvas canvas,
double x,
double y,
org.opencypher.railroad.Size size,
Diagram.Figure forward,
Diagram.Figure backward,
Text description,
boolean forwardDirection) |
void |
renderNothing(Canvas canvas,
double x,
double y,
boolean forward) |
void |
renderReference(Canvas canvas,
double x,
double y,
String target,
Text name) |
void |
renderText(Canvas canvas,
double x,
double y,
Text text) |
Text |
renderText(String type,
String text) |
org.opencypher.railroad.Size |
sizeOfAnyCase(Text text) |
org.opencypher.railroad.Size |
sizeOfBranch(Collection<Diagram.Figure> branches) |
org.opencypher.railroad.Size |
sizeOfBullet() |
org.opencypher.railroad.Size |
sizeOfCharset(Text text) |
org.opencypher.railroad.Size |
sizeOfLine(Collection<Diagram.Figure> sequence) |
org.opencypher.railroad.Size |
sizeOfLoop(Diagram.Figure forward,
Diagram.Figure backward,
Text description) |
org.opencypher.railroad.Size |
sizeOfNothing() |
org.opencypher.railroad.Size |
sizeOfReference(Text name) |
org.opencypher.railroad.Size |
sizeOfText(Text text) |
default org.opencypher.railroad.Size diagramSize(org.opencypher.railroad.Size rootSize)
void renderDiagram(String name, Canvas canvas, Diagram.Figure root) throws EX extends Exception
org.opencypher.railroad.Size sizeOfBullet()
org.opencypher.railroad.Size sizeOfNothing()
void renderNothing(Canvas canvas, double x, double y, boolean forward) throws EX extends Exception
org.opencypher.railroad.Size sizeOfText(Text text)
void renderText(Canvas canvas, double x, double y, Text text) throws EX extends Exception
org.opencypher.railroad.Size sizeOfAnyCase(Text text)
void renderAnyCase(Canvas canvas, double x, double y, Text text) throws EX extends Exception
org.opencypher.railroad.Size sizeOfReference(Text name)
void renderReference(Canvas canvas, double x, double y, String target, Text name) throws EX extends Exception
org.opencypher.railroad.Size sizeOfCharset(Text text)
void renderCharset(Canvas canvas, double x, double y, Text text, String set) throws EX extends Exception
org.opencypher.railroad.Size sizeOfLine(Collection<Diagram.Figure> sequence)
void renderLine(Canvas canvas, double x, double y, org.opencypher.railroad.Size size, List<Diagram.Figure> sequence, boolean forward) throws EX extends Exception
org.opencypher.railroad.Size sizeOfBranch(Collection<Diagram.Figure> branches)
void renderBranch(Canvas canvas, double x, double y, org.opencypher.railroad.Size size, Collection<Diagram.Figure> branches, boolean forward) throws EX extends Exception
org.opencypher.railroad.Size sizeOfLoop(Diagram.Figure forward, Diagram.Figure backward, Text description)
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
Copyright © 2019. All rights reserved.