Class Geometry2FX
- java.lang.Object
-
- org.eclipse.gef.geometry.convert.fx.Geometry2FX
-
public class Geometry2FX extends java.lang.ObjectUtility 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.AffinetoFXAffine(AffineTransform transform)Converts the givenAffineTransformto a JavaFXAffine.static javafx.geometry.BoundstoFXBounds(Rectangle r)Converts the givenRectangleto a JavaFXBounds.static javafx.geometry.Point2DtoFXPoint(Point p)Converts the givenPointto a JavaFXPoint2D.
-
-
-
Method Detail
-
toFXBounds
public static final javafx.geometry.Bounds toFXBounds(Rectangle r)
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
public static final javafx.scene.transform.Affine toFXAffine(AffineTransform transform)
Converts the givenAffineTransformto a JavaFXAffine.- Parameters:
transform- TheAffineTransformto convert.- Returns:
- The new
Affine.
-
-