public class Geometry2Shape extends Object
Geometry2Shape provides methods for the conversion
of IGeometry implementations to JavaFX Shape implementations.| Constructor and Description |
|---|
Geometry2Shape() |
| Modifier and Type | Method and Description |
|---|---|
static Arc |
toArc(Arc arc)
|
static CubicCurve |
toCubicCurve(CubicCurve cubic)
Returns a
CubicCurve that visualizes the given
CubicCurve. |
static Ellipse |
toEllipse(Ellipse ellipse)
|
static Line |
toLine(Line line)
|
static Path |
toPath(Path path)
|
static PathElement[] |
toPathElements(Path path)
Converts the given
Path to an array of JavaFX PathElement
s. |
static Polygon |
toPolygon(Polygon polygon)
|
static Polyline |
toPolyline(Polyline polyline)
|
static QuadCurve |
toQuadCurve(QuadraticCurve quadCurve)
Returns a
QuadCurve that visualizes the given
QuadraticCurve. |
static Rectangle |
toRectangle(Rectangle rect)
|
static Rectangle |
toRectangle(RoundedRectangle roundedRect)
Returns a
Rectangle that visualizes the given
RoundedRectangle. |
static Shape |
toShape(IGeometry geometry)
|
public static CubicCurve toCubicCurve(CubicCurve cubic)
CubicCurve that visualizes the given
CubicCurve.cubic - The CubicCurve from which a
CubicCurve is constructed.CubicCurve that
visualizes the given CubicCurve.public static PathElement[] toPathElements(Path path)
Path to an array of JavaFX PathElement
s.path - The Path to convert.PathElements.public static QuadCurve toQuadCurve(QuadraticCurve quadCurve)
QuadCurve that visualizes the given
QuadraticCurve.quadCurve - The QuadraticCurve from which a
QuadCurve is constructed.QuadCurve that
visualizes the given QuadraticCurve.public static Rectangle toRectangle(RoundedRectangle roundedRect)
Rectangle that visualizes the given
RoundedRectangle.roundedRect - The RoundedRectangle from which a
Rectangle is constructed.Rectangle that
visualizes the given RoundedRectangle.Copyright (c) 2014, 2016 itemis AG and others. All rights reserved.