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.AffinetoFXAffine(AffineTransform transform) Converts the givenAffineTransformto a JavaFXAffine.static final javafx.geometry.BoundsConverts the givenRectangleto a JavaFXBounds.static final javafx.geometry.Point2DConverts the givenPointto a JavaFXPoint2D.
-
Method Details
-
toFXBounds
Converts the givenRectangleto a JavaFXBounds. The newBounds'smin-xandmin-yvalues are set to theRectangle's x- and y-coordinates and theBounds'swidthandheightvalues are set to theRectangle's width and height, respectively.- Parameters:
r- TheRectangleto convert.- Returns:
- The new
Bounds.
-
toFXAffine
Converts the givenAffineTransformto a JavaFXAffine.- Parameters:
transform- TheAffineTransformto convert.- Returns:
- The new
Affine.
-
toFXPoint
Converts the givenPointto a JavaFXPoint2D.- Parameters:
p- ThePointto convert.- Returns:
- The new
Point2D.
-