JavaFX: Bringing Rich Experiences To All the Screens Of Your Life

Profile: desktop, common

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

Converts a JavaFX Geometry Point2D to a Java AWT Point2D.

Converts a JavaFX Geometry Point2D to a Java AWT Point2D.

Parameters
point
Returns
Point2D
 
public pointToJavaFX(point: java.awt.geom.Point2D) : javafx.geometry.Point2D

Converts a Java AWT Point2D to a JavaFX Geometry Point2D.

Converts a Java AWT Point2D to a JavaFX Geometry Point2D.

Parameters
point
Returns
Point2D
 
public rectangleToJava(rectangle: javafx.geometry.Rectangle2D) : java.awt.geom.Rectangle2D

Converts a JavaFX Geometry Rectangle2D to a Java AWT Rectangle2D.

Converts a JavaFX Geometry Rectangle2D to a Java AWT Rectangle2D.

Parameters
rectangle
Returns
Rectangle2D
 
public rectangleToJavaFX(rectangle: java.awt.geom.Rectangle2D) : javafx.geometry.Rectangle2D

Converts a Java AWT Rectangle2D to a JavaFX Geometry Rectangle2D.

Converts a Java AWT Rectangle2D to a JavaFX Geometry Rectangle2D.

Parameters
rectangle
Returns
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

Translates a set of PathElements by passed-in values of x & y, operating on the existing PathElements in-place.

Translates a set of PathElements by passed-in values of x & y, operating on the existing PathElements in-place.

Parameters
pathSegment
tx
ty
 

Inherited Functions