Enum Direction

java.lang.Object
java.lang.Enum<Direction>
com.sun.javafx.scene.traversal.Direction
All Implemented Interfaces:
Serializable, Comparable<Direction>

public enum Direction extends Enum<Direction>
Specifies the direction of traversal.
  • Enum Constant Details

    • UP

      public static final Direction UP
    • DOWN

      public static final Direction DOWN
    • LEFT

      public static final Direction LEFT
    • NEXT

      public static final Direction NEXT
    • NEXT_IN_LINE

      public static final Direction NEXT_IN_LINE
    • PREVIOUS

      public static final Direction PREVIOUS
  • Method Details

    • values

      public static Direction[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static Direction valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • isForward

      public boolean isForward()
    • getDirectionForNodeOrientation

      public Direction getDirectionForNodeOrientation(NodeOrientation orientation)
      Returns the direction with respect to the node's orientation. It affect's only arrow keys however, so it's not an error to ignore this call if handling only next/previous traversal.
      Parameters:
      orientation -
      Returns: