Package com.sun.javafx.scene.input
Class InputEventUtils
java.lang.Object
com.sun.javafx.scene.input.InputEventUtils
Utility class for helper methods needed by input events.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Point2D
recomputeCoordinates
(PickResult result, Object newSource) Recomputes event coordinates for a different node.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.static Point2D
-
Constructor Details
-
InputEventUtils
public InputEventUtils()
-
-
Method Details
-
toSunPoint2D
-
recomputeCoordinates
Recomputes event coordinates for a different node.- Parameters:
result
- Coordinates to recomputenewSource
- Node to whose coordinate system to recompute- Returns:
- the recomputed coordinates
-
safeTransferModes
Makes sure changes to the static arrays specified in TransferMode don't have any effect on the transfer modes used.- Parameters:
modes
- Modes passed in by user- 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.
-