CursorNameCursor
DescriptionThe Cursor class represents the mouse pointer. It encapsulates information that used to be in java.awt.Frame in the 1.0.2 release. Class Definition
public class java.awt.Cursor extends java.lang.Object implements java.io.Serializable { // Constants public final static int CROSSHAIR_CURSOR; public final static int DEFAULT_CURSOR; public final static int E_RESIZE_CURSOR; public final static int HAND_CURSOR; public final static int MOVE_CURSOR; public final static int N_RESIZE_CURSOR; public final static int NE_RESIZE_CURSOR; public final static int NW_RESIZE_CURSOR; public final static int S_RESIZE_CURSOR; public final static int SE_RESIZE_CURSOR; public final static int SW_RESIZE_CURSOR; public final static int TEXT_CURSOR; public final static int W_RESIZE_CURSOR; public final static int WAIT_CURSOR; // Class Variables protected static Cursor[] predefined; // Class Methods public static Cursor getDefaultCursor(); public static Cursor getPredefinedCursor (int type); // Constructors public Cursor (int type); // Instance Methods public int getType(); } ConstantsCROSSHAIR_CURSORpublic final static int CROSSHAIR_CURSORConstant representing a cursor that looks like a crosshair. DEFAULT_CURSORpublic final static int DEFAULT_CURSORConstant representing the platform's default cursor. E_RESIZE_CURSORpublic final static int E_RESIZE_CURSORConstant representing the cursor for resizing an object on the left. HAND_CURSORpublic final static int HAND_CURSORConstant representing a cursor that looks like a hand. MOVE_CURSORpublic final static int MOVE_CURSORConstant representing a cursor used to move an object. N_RESIZE_CURSORpublic final static int N_RESIZE_CURSORConstant representing a cursor for resizing an object on the top. NE_RESIZE_CURSORpublic final static int NE_RESIZE_CURSORConstant representing a cursor for resizing an object on the top left corner. NW_RESIZE_CURSORpublic final static int NW_RESIZE_CURSORConstant representing a cursor for resizing an object on the top right corner. S_RESIZE_CURSORpublic final static int S_RESIZE_CURSORConstant representing a cursor for resizing an object on the bottom. SE_RESIZE_CURSORpublic final static int SE_RESIZE_CURSORConstant representing a cursor for resizing an object on the bottom left corner. SW_RESIZE_CURSORpublic final static int SW_RESIZE_CURSORConstant representing a cursor for resizing an object on the bottom right corner. TEXT_CURSORpublic final static int TEXT_CURSORConstant representing a cursor used within text. W_RESIZE_CURSORpublic final static int W_RESIZE_CURSORConstant representing a cursor for resizing an object on the right side. WAIT_CURSORpublic final static int WAIT_CURSORConstant representing a cursor that indicates the program is busy. Class Variablespredefinedprotected static Cursor[] predefinedAn array of cursor instances corresponding to the predefined cursor types. Class MethodsgetDefaultCursorpublic static Cursor getDefaultCursor()
getPredefinedCursorpublic static Cursor getPredefinedCursor (int type)
ConstructorsCursorpublic Cursor (int type)
Instance MethodsgetTypepublic int getType()
See AlsoFrame |
|