public class Geometry2FX
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static javafx.scene.transform.Affine |
toFXAffine(AffineTransform transform)
Converts the given
AffineTransform to a JavaFX Affine . |
static javafx.geometry.Bounds |
toFXBounds(Rectangle r)
Converts the given
Rectangle to a JavaFX Bounds . |
static javafx.geometry.Point2D |
toFXPoint(Point p)
Converts the given
Point to a JavaFX Point2D . |
public static final javafx.geometry.Bounds toFXBounds(Rectangle r)
Rectangle
to a JavaFX Bounds
. The new
Bounds
's min-x
and min-y
values are set
to the Rectangle
's x- and y-coordinates and the Bounds
's
width
and height
values are set to the
Rectangle
's width and height, respectively.r
- The Rectangle
to convert.Bounds
.public static final javafx.scene.transform.Affine toFXAffine(AffineTransform transform)
AffineTransform
to a JavaFX Affine
.transform
- The AffineTransform
to convert.Affine
.Copyright (c) 2014 itemis AG, and others. All rights reserved.