APIdia Launch Partner
Top Description Fields Constructors Methods
com.sun.javafx.scene.input

public Class InputEventUtils

extends Object
Class Inheritance
Imports
com.sun.javafx.scene.CameraHelper, .NodeHelper, .SceneHelper, .SceneUtils, .SubSceneHelper, java.util.Arrays, .List, javafx.geometry.Point2D, .Point3D, javafx.scene.Node, .SubScene, javafx.scene.input.PickResult, .TransferMode

Utility class for helper methods needed by input events.

Field Summary

Modifier and TypeField and Description
private static final List<TransferMode>
private static final List<TransferMode>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static Point3D

Returns:

the recomputed coordinates
recomputeCoordinates
(PickResult result, Object
Node to whose coordinate system to recompute
newSource
)

Recomputes event coordinates for a different node.

public static List<TransferMode>

Returns:

list containing the passed modes. If one of the static arrays is passed, the expected modes are returned regardless of the values in those arrays.
safeTransferModes
(TransferMode[]
Modes passed in by user
modes
)

Makes sure changes to the static arrays specified in TransferMode don't have any effect on the transfer modes used.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

TM_ANYback to summary
private static final List<TransferMode> TM_ANY
TM_COPY_OR_MOVEback to summary
private static final List<TransferMode> TM_COPY_OR_MOVE

Constructor Detail

InputEventUtilsback to summary
public InputEventUtils()

Method Detail

recomputeCoordinatesback to summary
public static Point3D recomputeCoordinates(PickResult result, Object newSource)

Recomputes event coordinates for a different node.

Parameters
newSource:Object

Node to whose coordinate system to recompute

Returns:Point3D

the recomputed coordinates

safeTransferModesback to summary
public static List<TransferMode> safeTransferModes(TransferMode[] modes)

Makes sure changes to the static arrays specified in TransferMode don't have any effect on the transfer modes used.

Parameters
modes:TransferMode[]

Modes passed in by user

Returns:List<TransferMode>

list containing the passed modes. If one of the static arrays is passed, the expected modes are returned regardless of the values in those arrays.