org.scijava.input
Enum MouseCursor

java.lang.Object
  extended by java.lang.Enum<MouseCursor>
      extended by org.scijava.input.MouseCursor
All Implemented Interfaces:
Serializable, Comparable<MouseCursor>

public enum MouseCursor
extends Enum<MouseCursor>

A UI-independent enumeration of mouse cursors.

Author:
Grant Harris, Curtis Rueden

Enum Constant Summary
CROSSHAIR
          A crosshair cursor.
CUSTOM
          Custom cursor.
DEFAULT
          Default pointer.
E_RESIZE
          Cursor for resizing an edge eastward.
HAND
          A hand-shaped cursor.
MOVE
          Four-way arrow cursor.
N_RESIZE
          Cursor for resizing an edge northward.
NE_RESIZE
          Cursor for resizing an edge northeast.
NW_RESIZE
          Cursor for resizing an edge northwest.
OFF
          No cursor (invisible).
S_RESIZE
          Cursor for resizing an edge southward.
SE_RESIZE
          Cursor for resizing an edge southeast.
SW_RESIZE
          Cursor for resizing an edge southwest.
TEXT
          Vertical bar cursor, for text selection.
W_RESIZE
          Cursor for resizing an edge westward.
WAIT
          Hourglass cursor.
 
Method Summary
static MouseCursor valueOf(String name)
          Returns the enum constant of this type with the specified name.
static MouseCursor[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

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


Copyright © 2009–2015 SciJava. All rights reserved.