Class Geometry2FX
java.lang.Object
org.eclipse.gef.geometry.convert.fx.Geometry2FX
Utility class to support conversions between GEF's geometry API and
corresponding JavaFX classes.
-
Method Summary
Modifier and TypeMethodDescriptionstatic final javafx.scene.transform.Affine
toFXAffine
(AffineTransform transform) Converts the givenAffineTransform
to a JavaFXAffine
.static final javafx.geometry.Bounds
Converts the givenRectangle
to a JavaFXBounds
.static final javafx.geometry.Point2D
Converts the givenPoint
to a JavaFXPoint2D
.
-
Method Details
-
toFXBounds
Converts the givenRectangle
to a JavaFXBounds
. The newBounds
'smin-x
andmin-y
values are set to theRectangle
's x- and y-coordinates and theBounds
'swidth
andheight
values are set to theRectangle
's width and height, respectively.- Parameters:
r
- TheRectangle
to convert.- Returns:
- The new
Bounds
.
-
toFXAffine
Converts the givenAffineTransform
to a JavaFXAffine
.- Parameters:
transform
- TheAffineTransform
to convert.- Returns:
- The new
Affine
.
-
toFXPoint
Converts the givenPoint
to a JavaFXPoint2D
.- Parameters:
p
- ThePoint
to convert.- Returns:
- The new
Point2D
.
-