Class FX2Geometry
java.lang.Object
org.eclipse.gef.geometry.convert.fx.FX2Geometry
Utility class to support the conversion between JavaFX objects and
corresponding classes of the GEF geometry API.
-
Method Summary
Modifier and TypeMethodDescriptionstatic final AffineTransform
toAffineTransform
(javafx.scene.transform.Transform t) Converts the given JavaFXTransform
to anAffineTransform
.static final Point
toPoint
(javafx.geometry.Point2D point) Converts the given JavaFXPoint2D
to aPoint
.static final Rectangle
toRectangle
(javafx.geometry.Bounds b) Converts the given JavaFXBounds
to aRectangle
.
-
Method Details
-
toAffineTransform
Converts the given JavaFXTransform
to anAffineTransform
.- Parameters:
t
- The JavaFXTransform
to convert.- Returns:
- The new
AffineTransform
.
-
toRectangle
Converts the given JavaFXBounds
to aRectangle
.- Parameters:
b
- The JavaFXBounds
to convert.- Returns:
- The new
Rectangle
.
-
toPoint
Converts the given JavaFXPoint2D
to aPoint
.- Parameters:
point
- ThePoint2D
to convert.- Returns:
- The new
Point
.
-