Top Description Constructors Methods
com.sun.javafx.scene

public Class SceneUtils

extends Object
Class Inheritance
Imports
javafx.geometry.Point2D, .Point3D, javafx.scene.Node, .SubScene

Utility class for helper methods needed by scene.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private static Point2D
computeSubSceneCoordinates(double x, double y, SubScene subScene)

Computes subScene local intersection point from the given scene mouse coordinates.

public static Point2D
sceneToSubScenePlane(SubScene subScene, Point2D point)

Translates point from scene coordinates to subScene local coordinates.

public static Point3D
subSceneToScene(SubScene subScene, Point3D point)

Translates point from inner subScene coordinates to scene coordinates.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

SceneUtilsback to summary
public SceneUtils()

Method Detail

computeSubSceneCoordinatesback to summary
private static Point2D computeSubSceneCoordinates(double x, double y, SubScene subScene)

Computes subScene local intersection point from the given scene mouse coordinates. Works recursively over all outer subScenes.

sceneToSubScenePlaneback to summary
public static Point2D sceneToSubScenePlane(SubScene subScene, Point2D point)

Translates point from scene coordinates to subScene local coordinates.

subSceneToSceneback to summary
public static Point3D subSceneToScene(SubScene subScene, Point3D point)

Translates point from inner subScene coordinates to scene coordinates.