Overview
Collection of utilities to convert between Java AWT and JavaFX Geometry objects.
Profile: desktop
Inherited Variables
Script Function Summary
- public pointToJava(point: javafx.geometry.Point2D) : java.awt.geom.Point2D
- public pointToJavaFX(point: java.awt.geom.Point2D) : javafx.geometry.Point2D
- public rectangleToJava(rectangle: javafx.geometry.Rectangle2D) : java.awt.geom.Rectangle2D
- public rectangleToJavaFX(rectangle: java.awt.geom.Rectangle2D) : javafx.geometry.Rectangle2D
- public rotatePathElementsAroundPoint(pathSegment: javafx.scene.shape.PathElement[], theta: Number) : java.lang.Object[]
-
Rotates a set of PathElement primitives around an implied origin of 0,0 by angle theta in *RADIANS* - creating new primitives as copied & rotated versions of the passed-in primitives.
Rotates a set of PathElement primitives around an implied origin of 0,0 by angle theta in *RADIANS* - creating new primitives as copied & rotated versions of the passed-in primitives.
-
Parameters
- pathSegment
- theta
-
Returns
- Object[]
- public rotatePathElementsAroundPointInPlace(pathSegment: javafx.scene.shape.PathElement[], theta: Number) : Void
-
Rotates a set of PathElement primitives around an implied origin of 0,0 by angle theta in *RADIANS* - changing the primitives IN PLACE.
Rotates a set of PathElement primitives around an implied origin of 0,0 by angle theta in *RADIANS* - changing the primitives IN PLACE.
-
Parameters
- pathSegment
- theta
- public translatePathElements(pathSegment: javafx.scene.shape.PathElement[], tx: Number, ty: Number) : java.lang.Object[]
-
Translates a set of PathElements by passed-in values of x & y, returning translated copies of the original PathElements, thus preserving them.
Translates a set of PathElements by passed-in values of x & y, returning translated copies of the original PathElements, thus preserving them.
-
Parameters
- pathSegment
- tx
- ty
-
Returns
- Object[]
- public translatePathElementsInPlace(pathSegment: javafx.scene.shape.PathElement[], tx: Number, ty: Number) : Void