Class Geometry2FX
- java.lang.Object
-
- org.eclipse.gef.geometry.convert.fx.Geometry2FX
-
public class Geometry2FX extends java.lang.Object
Utility class to support conversions between GEF's geometry API and corresponding JavaFX classes.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static javafx.scene.transform.Affine
toFXAffine(AffineTransform transform)
Converts the givenAffineTransform
to a JavaFXAffine
.static javafx.geometry.Bounds
toFXBounds(Rectangle r)
Converts the givenRectangle
to a JavaFXBounds
.static javafx.geometry.Point2D
toFXPoint(Point p)
Converts the givenPoint
to a JavaFXPoint2D
.
-
-
-
Method Detail
-
toFXBounds
public static final javafx.geometry.Bounds toFXBounds(Rectangle r)
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
public static final javafx.scene.transform.Affine toFXAffine(AffineTransform transform)
Converts the givenAffineTransform
to a JavaFXAffine
.- Parameters:
transform
- TheAffineTransform
to convert.- Returns:
- The new
Affine
.
-
-