Package org.opencypher.railroad
Class ShapeRenderer<EX extends Exception>
- java.lang.Object
-
- org.opencypher.railroad.ShapeRenderer<EX>
-
- All Implemented Interfaces:
Diagram.Renderer<ShapeRenderer.Shapes<? extends EX>,TextGlyphs,EX>
public final class ShapeRenderer<EX extends Exception> extends Object implements Diagram.Renderer<ShapeRenderer.Shapes<? extends EX>,TextGlyphs,EX>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceShapeRenderer.Linkerstatic interfaceShapeRenderer.Optionsstatic interfaceShapeRenderer.Shapes<EX extends Exception>
-
Constructor Summary
Constructors Constructor Description ShapeRenderer(ShapeRenderer.Linker linker, FontRenderContext frc, ShapeRenderer.Options options)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.opencypher.railroad.SizediagramSize(org.opencypher.railroad.Size root)voidrenderAnyCase(ShapeRenderer.Shapes<? extends EX> shapes, double x, double y, TextGlyphs textGlyphs)voidrenderBranch(ShapeRenderer.Shapes<? extends EX> shapes, double x, double y, org.opencypher.railroad.Size size, Collection<Diagram.Figure> branches, boolean forward)voidrenderBullet(ShapeRenderer.Shapes<? extends EX> shapes, double x, double y)voidrenderCharset(ShapeRenderer.Shapes<? extends EX> shapes, double x, double y, TextGlyphs text, String set)voidrenderDiagram(String name, ShapeRenderer.Shapes<? extends EX> shapes, Diagram.Figure root)voidrenderLine(ShapeRenderer.Shapes<? extends EX> shapes, double x, double y, org.opencypher.railroad.Size size, List<Diagram.Figure> sequence, boolean forward)voidrenderLoop(ShapeRenderer.Shapes<? extends EX> shapes, double x, double y, org.opencypher.railroad.Size size, Diagram.Figure forward, Diagram.Figure backward, TextGlyphs description, boolean fwd)voidrenderNothing(ShapeRenderer.Shapes<? extends EX> shapes, double x, double y, boolean forward)voidrenderReference(ShapeRenderer.Shapes<? extends EX> shapes, double x, double y, String target, TextGlyphs name)TextGlyphsrenderText(String type, String text)voidrenderText(ShapeRenderer.Shapes<? extends EX> shapes, double x, double y, TextGlyphs text)org.opencypher.railroad.SizesizeOfAnyCase(TextGlyphs textGlyphs)org.opencypher.railroad.SizesizeOfBranch(Collection<Diagram.Figure> branches)org.opencypher.railroad.SizesizeOfBullet()org.opencypher.railroad.SizesizeOfCharset(TextGlyphs textGlyphs)org.opencypher.railroad.SizesizeOfLine(Collection<Diagram.Figure> sequence)org.opencypher.railroad.SizesizeOfLoop(Diagram.Figure forward, Diagram.Figure backward, TextGlyphs description)org.opencypher.railroad.SizesizeOfNothing()org.opencypher.railroad.SizesizeOfReference(TextGlyphs name)org.opencypher.railroad.SizesizeOfText(TextGlyphs text)
-
-
-
Constructor Detail
-
ShapeRenderer
public ShapeRenderer(ShapeRenderer.Linker linker, FontRenderContext frc, ShapeRenderer.Options options)
-
-
Method Detail
-
diagramSize
public org.opencypher.railroad.Size diagramSize(org.opencypher.railroad.Size root)
- Specified by:
diagramSizein interfaceDiagram.Renderer<ShapeRenderer.Shapes<? extends EX extends Exception>,TextGlyphs,EX extends Exception>
-
renderDiagram
public void renderDiagram(String name, ShapeRenderer.Shapes<? extends EX> shapes, Diagram.Figure root) throws EX extends Exception
- Specified by:
renderDiagramin interfaceDiagram.Renderer<ShapeRenderer.Shapes<? extends EX extends Exception>,TextGlyphs,EX extends Exception>- Throws:
EX extends Exception
-
renderText
public TextGlyphs renderText(String type, String text)
- Specified by:
renderTextin interfaceDiagram.Renderer<ShapeRenderer.Shapes<? extends EX extends Exception>,TextGlyphs,EX extends Exception>
-
sizeOfBullet
public org.opencypher.railroad.Size sizeOfBullet()
- Specified by:
sizeOfBulletin interfaceDiagram.Renderer<ShapeRenderer.Shapes<? extends EX extends Exception>,TextGlyphs,EX extends Exception>
-
renderBullet
public void renderBullet(ShapeRenderer.Shapes<? extends EX> shapes, double x, double y) throws EX extends Exception
- Specified by:
renderBulletin interfaceDiagram.Renderer<ShapeRenderer.Shapes<? extends EX extends Exception>,TextGlyphs,EX extends Exception>- Throws:
EX extends Exception
-
sizeOfNothing
public org.opencypher.railroad.Size sizeOfNothing()
- Specified by:
sizeOfNothingin interfaceDiagram.Renderer<ShapeRenderer.Shapes<? extends EX extends Exception>,TextGlyphs,EX extends Exception>
-
renderNothing
public void renderNothing(ShapeRenderer.Shapes<? extends EX> shapes, double x, double y, boolean forward) throws EX extends Exception
- Specified by:
renderNothingin interfaceDiagram.Renderer<ShapeRenderer.Shapes<? extends EX extends Exception>,TextGlyphs,EX extends Exception>- Throws:
EX extends Exception
-
sizeOfText
public org.opencypher.railroad.Size sizeOfText(TextGlyphs text)
- Specified by:
sizeOfTextin interfaceDiagram.Renderer<ShapeRenderer.Shapes<? extends EX extends Exception>,TextGlyphs,EX extends Exception>
-
renderText
public void renderText(ShapeRenderer.Shapes<? extends EX> shapes, double x, double y, TextGlyphs text) throws EX extends Exception
- Specified by:
renderTextin interfaceDiagram.Renderer<ShapeRenderer.Shapes<? extends EX extends Exception>,TextGlyphs,EX extends Exception>- Throws:
EX extends Exception
-
sizeOfAnyCase
public org.opencypher.railroad.Size sizeOfAnyCase(TextGlyphs textGlyphs)
- Specified by:
sizeOfAnyCasein interfaceDiagram.Renderer<ShapeRenderer.Shapes<? extends EX extends Exception>,TextGlyphs,EX extends Exception>
-
renderAnyCase
public void renderAnyCase(ShapeRenderer.Shapes<? extends EX> shapes, double x, double y, TextGlyphs textGlyphs) throws EX extends Exception
- Specified by:
renderAnyCasein interfaceDiagram.Renderer<ShapeRenderer.Shapes<? extends EX extends Exception>,TextGlyphs,EX extends Exception>- Throws:
EX extends Exception
-
sizeOfReference
public org.opencypher.railroad.Size sizeOfReference(TextGlyphs name)
- Specified by:
sizeOfReferencein interfaceDiagram.Renderer<ShapeRenderer.Shapes<? extends EX extends Exception>,TextGlyphs,EX extends Exception>
-
renderReference
public void renderReference(ShapeRenderer.Shapes<? extends EX> shapes, double x, double y, String target, TextGlyphs name) throws EX extends Exception
- Specified by:
renderReferencein interfaceDiagram.Renderer<ShapeRenderer.Shapes<? extends EX extends Exception>,TextGlyphs,EX extends Exception>- Throws:
EX extends Exception
-
sizeOfCharset
public org.opencypher.railroad.Size sizeOfCharset(TextGlyphs textGlyphs)
- Specified by:
sizeOfCharsetin interfaceDiagram.Renderer<ShapeRenderer.Shapes<? extends EX extends Exception>,TextGlyphs,EX extends Exception>
-
renderCharset
public void renderCharset(ShapeRenderer.Shapes<? extends EX> shapes, double x, double y, TextGlyphs text, String set) throws EX extends Exception
- Specified by:
renderCharsetin interfaceDiagram.Renderer<ShapeRenderer.Shapes<? extends EX extends Exception>,TextGlyphs,EX extends Exception>- Throws:
EX extends Exception
-
sizeOfLine
public org.opencypher.railroad.Size sizeOfLine(Collection<Diagram.Figure> sequence)
- Specified by:
sizeOfLinein interfaceDiagram.Renderer<ShapeRenderer.Shapes<? extends EX extends Exception>,TextGlyphs,EX extends Exception>
-
renderLine
public void renderLine(ShapeRenderer.Shapes<? extends EX> shapes, double x, double y, org.opencypher.railroad.Size size, List<Diagram.Figure> sequence, boolean forward) throws EX extends Exception
- Specified by:
renderLinein interfaceDiagram.Renderer<ShapeRenderer.Shapes<? extends EX extends Exception>,TextGlyphs,EX extends Exception>- Throws:
EX extends Exception
-
sizeOfBranch
public org.opencypher.railroad.Size sizeOfBranch(Collection<Diagram.Figure> branches)
- Specified by:
sizeOfBranchin interfaceDiagram.Renderer<ShapeRenderer.Shapes<? extends EX extends Exception>,TextGlyphs,EX extends Exception>
-
renderBranch
public void renderBranch(ShapeRenderer.Shapes<? extends EX> shapes, double x, double y, org.opencypher.railroad.Size size, Collection<Diagram.Figure> branches, boolean forward) throws EX extends Exception
- Specified by:
renderBranchin interfaceDiagram.Renderer<ShapeRenderer.Shapes<? extends EX extends Exception>,TextGlyphs,EX extends Exception>- Throws:
EX extends Exception
-
sizeOfLoop
public org.opencypher.railroad.Size sizeOfLoop(Diagram.Figure forward, Diagram.Figure backward, TextGlyphs description)
- Specified by:
sizeOfLoopin interfaceDiagram.Renderer<ShapeRenderer.Shapes<? extends EX extends Exception>,TextGlyphs,EX extends Exception>
-
renderLoop
public void renderLoop(ShapeRenderer.Shapes<? extends EX> shapes, double x, double y, org.opencypher.railroad.Size size, Diagram.Figure forward, Diagram.Figure backward, TextGlyphs description, boolean fwd) throws EX extends Exception
- Specified by:
renderLoopin interfaceDiagram.Renderer<ShapeRenderer.Shapes<? extends EX extends Exception>,TextGlyphs,EX extends Exception>- Throws:
EX extends Exception
-
-