Package org.opencypher.railroad
Class AwtShapes
- java.lang.Object
-
- org.opencypher.railroad.AwtShapes
-
- All Implemented Interfaces:
ShapeRenderer.Shapes<RuntimeException>
public final class AwtShapes extends Object implements ShapeRenderer.Shapes<RuntimeException>
-
-
Nested Class Summary
-
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 Diagram.CanvasProvider<AwtShapes,RuntimeException>AWT
-
Method Summary
All 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)doublegetHeight()StringgetName()doublegetWidth()voidline(ShapeRenderer.Shapes.Style style, double x1, double y1, double x2, double y2)ShapeRenderer.Shapes.Path<RuntimeException>path(ShapeRenderer.Shapes.Style style)voidpolygon(ShapeRenderer.Shapes.Style style, ShapeRenderer.Shapes.Point... points)voidrect(ShapeRenderer.Shapes.Style style, double x, double y, double width, double height)voidrender(Graphics2D target)voidroundRect(ShapeRenderer.Shapes.Style style, double x, double y, double width, double height, double diameter)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
begin, end, group
-
-
-
-
Field Detail
-
AWT
public static final Diagram.CanvasProvider<AwtShapes,RuntimeException> AWT
-
-
Method Detail
-
getName
public String getName()
-
getWidth
public double getWidth()
-
getHeight
public double getHeight()
-
render
public void render(Graphics2D target)
-
roundRect
public void roundRect(ShapeRenderer.Shapes.Style style, double x, double y, double width, double height, double diameter)
- Specified by:
roundRectin interfaceShapeRenderer.Shapes<RuntimeException>
-
rect
public void rect(ShapeRenderer.Shapes.Style style, double x, double y, double width, double height)
- Specified by:
rectin interfaceShapeRenderer.Shapes<RuntimeException>
-
arc
public void arc(ShapeRenderer.Shapes.Style style, double cx, double cy, double radius, double start, double extent)
- Specified by:
arcin interfaceShapeRenderer.Shapes<RuntimeException>
-
line
public void line(ShapeRenderer.Shapes.Style style, double x1, double y1, double x2, double y2)
- Specified by:
linein interfaceShapeRenderer.Shapes<RuntimeException>
-
polygon
public void polygon(ShapeRenderer.Shapes.Style style, ShapeRenderer.Shapes.Point... points)
- Specified by:
polygonin interfaceShapeRenderer.Shapes<RuntimeException>
-
text
public void text(TextGlyphs text, double x, double y)
- Specified by:
textin interfaceShapeRenderer.Shapes<RuntimeException>
-
path
public ShapeRenderer.Shapes.Path<RuntimeException> path(ShapeRenderer.Shapes.Style style)
- Specified by:
pathin interfaceShapeRenderer.Shapes<RuntimeException>
-
-