Class InputEventUtils

java.lang.Object
com.sun.javafx.scene.input.InputEventUtils

public class InputEventUtils extends Object
Utility class for helper methods needed by input events.
  • Constructor Details

    • InputEventUtils

      public InputEventUtils()
  • Method Details

    • toSunPoint2D

      public static Point2D toSunPoint2D(Point2D p)
    • recomputeCoordinates

      public static Point2D recomputeCoordinates(PickResult result, Object newSource)
      Recomputes event coordinates for a different node.
      Parameters:
      result - Coordinates to recompute
      newSource - Node to whose coordinate system to recompute
      Returns:
      the recomputed coordinates
    • safeTransferModes

      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 - 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.