Enum MouseCursor

    • Enum Constant Detail

      • DEFAULT

        public static final MouseCursor DEFAULT
        Default pointer.
      • OFF

        public static final MouseCursor OFF
        No cursor (invisible).
      • CUSTOM

        public static final MouseCursor CUSTOM
        Custom cursor.
      • CROSSHAIR

        public static final MouseCursor CROSSHAIR
        A crosshair cursor.
      • HAND

        public static final MouseCursor HAND
        A hand-shaped cursor.
      • MOVE

        public static final MouseCursor MOVE
        Four-way arrow cursor.
      • TEXT

        public static final MouseCursor TEXT
        Vertical bar cursor, for text selection.
      • WAIT

        public static final MouseCursor WAIT
        Hourglass cursor.
      • N_RESIZE

        public static final MouseCursor N_RESIZE
        Cursor for resizing an edge northward.
      • S_RESIZE

        public static final MouseCursor S_RESIZE
        Cursor for resizing an edge southward.
      • W_RESIZE

        public static final MouseCursor W_RESIZE
        Cursor for resizing an edge westward.
      • E_RESIZE

        public static final MouseCursor E_RESIZE
        Cursor for resizing an edge eastward.
      • NW_RESIZE

        public static final MouseCursor NW_RESIZE
        Cursor for resizing an edge northwest.
      • NE_RESIZE

        public static final MouseCursor NE_RESIZE
        Cursor for resizing an edge northeast.
      • SW_RESIZE

        public static final MouseCursor SW_RESIZE
        Cursor for resizing an edge southwest.
      • SE_RESIZE

        public static final MouseCursor SE_RESIZE
        Cursor for resizing an edge southeast.
    • Method Detail

      • values

        public static MouseCursor[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (MouseCursor c : MouseCursor.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static MouseCursor 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