Component#setCursor
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| private transient Object | |
| public static final int | CROSSHAIR_CURSOR
The crosshair cursor type. |
| private static final String | |
| pack-priv static final String[][] | |
| public static final int | CUSTOM_CURSOR
The type associated with all custom cursors. |
| public static final int | DEFAULT_CURSOR
The default cursor type (gets set if no cursor is defined). |
| pack-priv transient Cursor. | |
| private static final String | |
| private static final String | |
| private static final String | |
| public static final int | E_RESIZE_CURSOR
The east-resize cursor type. |
| public static final int | HAND_CURSOR
The hand cursor type. |
| private static final PlatformLogger | |
| public static final int | MOVE_CURSOR
The move cursor type. |
| public static final int | N_RESIZE_CURSOR
The north-resize cursor type. |
| protected String | name
The user-visible name of the cursor. |
| public static final int | NE_RESIZE_CURSOR
The north-east-resize cursor type. |
| public static final int | NW_RESIZE_CURSOR
The north-west-resize cursor type. |
| private transient long | pData
Hook into native data. |
| protected static Cursor[] | predefined
Deprecated
As of JDK version 1.7, the
getPredefinedCursor(int)
method should be used instead.
|
| private static final Cursor[] | predefinedPrivate
This field is a private replacement for 'predefined' array. |
| private static final String | |
| private static final String | |
| public static final int | S_RESIZE_CURSOR
The south-resize cursor type. |
| public static final int | SE_RESIZE_CURSOR
The south-east-resize cursor type. |
| private static final long | serialVersionUID
Use serialVersionUID from JDK 1.1 for interoperability. |
| public static final int | SW_RESIZE_CURSOR
The south-west-resize cursor type. |
| private static Properties | |
| private static final Hashtable | |
| public static final int | TEXT_CURSOR
The text cursor type. |
| pack-priv int | type
The chosen cursor type initially set to
the |
| public static final int | W_RESIZE_CURSOR
The west-resize cursor type. |
| public static final int | WAIT_CURSOR
The wait cursor type. |
| Access | Constructor and Description |
|---|---|
| public | |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| private static native void | |
| public static Cursor | |
| public String | |
| public static Cursor | Returns: the specified predefined cursorthe type of predefined cursor type)Returns a cursor object with the specified predefined type. |
| public static Cursor | Returns: the system specific custom cursor nameda string describing the desired system-specific custom cursor name)Returns a system-specific custom cursor object matching the specified name. |
| public int | |
| private static native void | |
| private static void | |
| private void | |
| public String | Returns: a string representation of this cursor.Overrides java. Returns a string representation of this cursor. |
| anchor | back to summary |
|---|---|
| private transient Object anchor | |
| CROSSHAIR_CURSOR | back to summary |
|---|---|
| public static final int CROSSHAIR_CURSOR The crosshair cursor type. | |
| CURSOR_DOT_PREFIX | back to summary |
|---|---|
| private static final String CURSOR_DOT_PREFIX | |
| cursorProperties | back to summary |
|---|---|
| pack-priv static final String[][] cursorProperties | |
| CUSTOM_CURSOR | back to summary |
|---|---|
| public static final int CUSTOM_CURSOR The type associated with all custom cursors. | |
| DEFAULT_CURSOR | back to summary |
|---|---|
| public static final int DEFAULT_CURSOR The default cursor type (gets set if no cursor is defined). | |
| disposer | back to summary |
|---|---|
| pack-priv transient Cursor. | |
| DOT_FILE_SUFFIX | back to summary |
|---|---|
| private static final String DOT_FILE_SUFFIX | |
| DOT_HOTSPOT_SUFFIX | back to summary |
|---|---|
| private static final String DOT_HOTSPOT_SUFFIX | |
| DOT_NAME_SUFFIX | back to summary |
|---|---|
| private static final String DOT_NAME_SUFFIX | |
| E_RESIZE_CURSOR | back to summary |
|---|---|
| public static final int E_RESIZE_CURSOR The east-resize cursor type. | |
| HAND_CURSOR | back to summary |
|---|---|
| public static final int HAND_CURSOR The hand cursor type. | |
| log | back to summary |
|---|---|
| private static final PlatformLogger log | |
| MOVE_CURSOR | back to summary |
|---|---|
| public static final int MOVE_CURSOR The move cursor type. | |
| N_RESIZE_CURSOR | back to summary |
|---|---|
| public static final int N_RESIZE_CURSOR The north-resize cursor type. | |
| name | back to summary |
|---|---|
| protected String name The user-visible name of the cursor.
| |
| NE_RESIZE_CURSOR | back to summary |
|---|---|
| public static final int NE_RESIZE_CURSOR The north-east-resize cursor type. | |
| NW_RESIZE_CURSOR | back to summary |
|---|---|
| public static final int NW_RESIZE_CURSOR The north-west-resize cursor type. | |
| pData | back to summary |
|---|---|
| private transient long pData Hook into native data. | |
| predefined | back to summary |
|---|---|
| protected static Cursor[] predefined
Deprecated As of JDK version 1.7, the | |
| predefinedPrivate | back to summary |
|---|---|
| private static final Cursor[] predefinedPrivate This field is a private replacement for 'predefined' array. | |
| PROPERTIES_FILE | back to summary |
|---|---|
| private static final String PROPERTIES_FILE | |
| RESOURCE_PREFIX | back to summary |
|---|---|
| private static final String RESOURCE_PREFIX | |
| S_RESIZE_CURSOR | back to summary |
|---|---|
| public static final int S_RESIZE_CURSOR The south-resize cursor type. | |
| SE_RESIZE_CURSOR | back to summary |
|---|---|
| public static final int SE_RESIZE_CURSOR The south-east-resize cursor type. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Use serialVersionUID from JDK 1.1 for interoperability. | |
| SW_RESIZE_CURSOR | back to summary |
|---|---|
| public static final int SW_RESIZE_CURSOR The south-west-resize cursor type. | |
| systemCustomCursorProperties | back to summary |
|---|---|
| private static Properties systemCustomCursorProperties | |
| systemCustomCursors | back to summary |
|---|---|
| private static final Hashtable<String, Cursor> systemCustomCursors | |
| TEXT_CURSOR | back to summary |
|---|---|
| public static final int TEXT_CURSOR The text cursor type. | |
| type | back to summary |
|---|---|
| pack-priv int type The chosen cursor type initially set to
the
| |
| W_RESIZE_CURSOR | back to summary |
|---|---|
| public static final int W_RESIZE_CURSOR The west-resize cursor type. | |
| WAIT_CURSOR | back to summary |
|---|---|
| public static final int WAIT_CURSOR The wait cursor type. | |
| Cursor | back to summary |
|---|---|
| public Cursor(int type) Creates a new cursor object with the specified type.
| |
| Cursor | back to summary |
|---|---|
| protected Cursor(String name) Creates a new custom cursor object with the specified name. Note this constructor should only be used by AWT implementations as part of their support for custom cursors. Applications should use Toolkit.createCustomCursor().
| |
| finalizeImpl | back to summary |
|---|---|
| private static native void finalizeImpl(long pData) | |
| getDefaultCursor | back to summary |
|---|---|
| public static Cursor getDefaultCursor() Return the system default cursor.
| |
| getName | back to summary |
|---|---|
| public String getName() Returns the name of this cursor.
| |
| getPredefinedCursor | back to summary |
|---|---|
| public static Cursor getPredefinedCursor(int type) Returns a cursor object with the specified predefined type.
| |
| getSystemCustomCursor | back to summary |
|---|---|
| public static Cursor getSystemCustomCursor(final String name) throws AWTException, HeadlessException Returns a system-specific custom cursor object matching the specified name. Cursor names are, for example: "Invalid.16x16"
| |
| getType | back to summary |
|---|---|
| public int getType() Returns the type for this cursor.
| |
| initIDs | back to summary |
|---|---|
| private static native void initIDs() Initialize JNI field and method IDs for fields that may be accessed from C. | |
| loadSystemCustomCursorProperties | back to summary |
|---|---|
| private static void loadSystemCustomCursorProperties() throws AWTException | |
| setPData | back to summary |
|---|---|
| private void setPData(long pData) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Returns a string representation of this cursor.
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv volatile long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void |
| pData | back to summary |
|---|---|
| pack-priv volatile long pData | |
| CursorDisposer | back to summary |
|---|---|
| public CursorDisposer(long pData) | |
| dispose | back to summary |
|---|---|
| public void dispose() Implements sun. | |