Package org.eclipse.gef.fx.utils
Class Shape2Geometry
java.lang.Object
org.eclipse.gef.fx.utils.Shape2Geometry
The utility class
Shape2Geometry provides methods for the conversion
of JavaFX Shape implementations to IGeometry implementations.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Arcstatic CubicCurvetoCubicCurve(CubicCurve cubic) Converts the given JavaFXCubicCurveto aCubicCurve.static Ellipsestatic Ellipsestatic IGeometrytoGeometry(Shape visual) static Linestatic final Pathstatic Polygonstatic PolylinetoPolyline(Polyline polyline) static QuadraticCurvetoQuadraticCurve(QuadCurve quad) Converts the given JavaFXQuadCurveto aQuadraticCurve.static RectangletoRectangle(Rectangle rect) static RoundedRectangletoRoundedRectangle(Rectangle rect) Converts the given JavaFXRectangleto aRoundedRectangle.
-
Constructor Details
-
Shape2Geometry
public Shape2Geometry()
-
-
Method Details
-
toArc
-
toCubicCurve
Converts the given JavaFXCubicCurveto aCubicCurve.- Parameters:
cubic- The JavaFXCubicCurveto convert.- Returns:
- The newly created
CubicCurvethat describes the givenCubicCurve.
-
toEllipse
-
toEllipse
-
toGeometry
-
toLine
-
toPath
-
toPolygon
-
toPolyline
-
toQuadraticCurve
Converts the given JavaFXQuadCurveto aQuadraticCurve.- Parameters:
quad- The JavaFXQuadCurveto convert.- Returns:
- The newly created
QuadraticCurvethat describes the givenQuadCurve.
-
toRectangle
-
toRoundedRectangle
Converts the given JavaFXRectangleto aRoundedRectangle.- Parameters:
rect- The JavaFXRectangleto convert.- Returns:
- The newly created
RoundedRectanglethat describes the givenRectangle.
-