Package org.opencypher.railroad
Class SVGShapes
- java.lang.Object
-
- org.opencypher.railroad.SVGShapes
-
- All Implemented Interfaces:
ShapeRenderer.Shapes<XMLStreamException>
public class SVGShapes extends Object implements ShapeRenderer.Shapes<XMLStreamException>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSVGShapes.DOMFactory-
Nested classes/interfaces inherited from interface org.opencypher.railroad.ShapeRenderer.Shapes
ShapeRenderer.Shapes.Group<EX extends Exception>, ShapeRenderer.Shapes.Path<EX extends Exception>, ShapeRenderer.Shapes.Point, ShapeRenderer.Shapes.Style
-
-
Field Summary
Fields Modifier and Type Field Description static SVGShapes.DOMFactorySVG_DOM
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidarc(ShapeRenderer.Shapes.Style style, double cx, double cy, double radius, double start, double extent)voidbegin()voidend()ShapeRenderer.Shapes.Group<XMLStreamException>group(String link)voidline(ShapeRenderer.Shapes.Style style, double x1, double y1, double x2, double y2)org.opencypher.railroad.SVGShapes.SVGPathpath(ShapeRenderer.Shapes.Style style)voidrect(ShapeRenderer.Shapes.Style style, double x, double y, double width, double height)voidroundRect(ShapeRenderer.Shapes.Style style, double x, double y, double width, double height, double diameter)static Diagram.CanvasProvider<SVGShapes,XMLStreamException>svgFile(Function<String,Output> output)voidtext(TextGlyphs text, double x, double y)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opencypher.railroad.ShapeRenderer.Shapes
polygon
-
-
-
-
Field Detail
-
SVG_DOM
public static final SVGShapes.DOMFactory SVG_DOM
-
-
Method Detail
-
svgFile
public static Diagram.CanvasProvider<SVGShapes,XMLStreamException> svgFile(Function<String,Output> output)
-
begin
public void begin() throws XMLStreamException- Specified by:
beginin interfaceShapeRenderer.Shapes<XMLStreamException>- Throws:
XMLStreamException
-
roundRect
public void roundRect(ShapeRenderer.Shapes.Style style, double x, double y, double width, double height, double diameter) throws XMLStreamException
- Specified by:
roundRectin interfaceShapeRenderer.Shapes<XMLStreamException>- Throws:
XMLStreamException
-
rect
public void rect(ShapeRenderer.Shapes.Style style, double x, double y, double width, double height) throws XMLStreamException
- Specified by:
rectin interfaceShapeRenderer.Shapes<XMLStreamException>- Throws:
XMLStreamException
-
arc
public void arc(ShapeRenderer.Shapes.Style style, double cx, double cy, double radius, double start, double extent) throws XMLStreamException
- Specified by:
arcin interfaceShapeRenderer.Shapes<XMLStreamException>- Throws:
XMLStreamException
-
line
public void line(ShapeRenderer.Shapes.Style style, double x1, double y1, double x2, double y2) throws XMLStreamException
- Specified by:
linein interfaceShapeRenderer.Shapes<XMLStreamException>- Throws:
XMLStreamException
-
text
public void text(TextGlyphs text, double x, double y) throws XMLStreamException
- Specified by:
textin interfaceShapeRenderer.Shapes<XMLStreamException>- Throws:
XMLStreamException
-
path
public org.opencypher.railroad.SVGShapes.SVGPath path(ShapeRenderer.Shapes.Style style)
- Specified by:
pathin interfaceShapeRenderer.Shapes<XMLStreamException>
-
end
public void end() throws XMLStreamException- Specified by:
endin interfaceShapeRenderer.Shapes<XMLStreamException>- Throws:
XMLStreamException
-
group
public ShapeRenderer.Shapes.Group<XMLStreamException> group(String link) throws XMLStreamException
- Specified by:
groupin interfaceShapeRenderer.Shapes<XMLStreamException>- Throws:
XMLStreamException
-
-