public class Shape2Geometry extends Object
Shape2Geometry
provides methods for the conversion
of JavaFX Shape
implementations to IGeometry
implementations.Constructor and Description |
---|
Shape2Geometry() |
Modifier and Type | Method and Description |
---|---|
static Arc |
toArc(Arc arc)
|
static CubicCurve |
toCubicCurve(CubicCurve cubic)
Converts the given JavaFX
CubicCurve to a
CubicCurve . |
static Ellipse |
toEllipse(Circle circle)
|
static Ellipse |
toEllipse(Ellipse ellipse)
|
static IGeometry |
toGeometry(Shape visual)
|
static Line |
toLine(Line line)
|
static Path |
toPath(Path path)
|
static Polygon |
toPolygon(Polygon polygon)
|
static Polyline |
toPolyline(Polyline polyline)
|
static QuadraticCurve |
toQuadraticCurve(QuadCurve quad)
Converts the given JavaFX
QuadCurve to a
QuadraticCurve . |
static Rectangle |
toRectangle(Rectangle rect)
|
static RoundedRectangle |
toRoundedRectangle(Rectangle rect)
Converts the given JavaFX
Rectangle to a
RoundedRectangle . |
public static CubicCurve toCubicCurve(CubicCurve cubic)
CubicCurve
to a
CubicCurve
.cubic
- The JavaFX CubicCurve
to convert.CubicCurve
that
describes the given CubicCurve
.public static QuadraticCurve toQuadraticCurve(QuadCurve quad)
QuadCurve
to a
QuadraticCurve
.quad
- The JavaFX QuadCurve
to convert.QuadraticCurve
that
describes the given QuadCurve
.public static RoundedRectangle toRoundedRectangle(Rectangle rect)
Rectangle
to a
RoundedRectangle
.rect
- The JavaFX Rectangle
to convert.RoundedRectangle
that
describes the given Rectangle
.Copyright (c) 2014, 2016 itemis AG and others. All rights reserved.