Serializable
A class to encapsulate the bitmap representation of the mouse cursor.
Fields
static final int
The crosshair cursor type.
static final int
The type associated with all custom cursors.
static final int
The default cursor type (gets set if no cursor is defined).
static final int
The east-resize cursor type.
static final int
static final int
static final int
The north-resize cursor type.
The user-visible name of the cursor.
static final int
The north-east-resize cursor type.
static final int
The north-west-resize cursor type.
static final int
The south-resize cursor type.
static final int
The south-east-resize cursor type.
static final int
The south-west-resize cursor type.
static final int
static final int
The west-resize cursor type.
static final int
Constructors
Creates a new cursor object with the specified type.
protected
Creates a new custom cursor object with the specified name.
Return the system default cursor.
Returns the name of this cursor.
Returns a cursor object with the specified predefined type.
Returns a system-specific custom cursor object matching the specified name.
int
Returns the type for this cursor.
Returns a string representation of this cursor.
public static final int DEFAULT_CURSOR
The default cursor type (gets set if no cursor is defined).
public static final int CROSSHAIR_CURSOR
The crosshair cursor type.
public static final int TEXT_CURSOR
The text cursor type.
public static final int WAIT_CURSOR
The wait cursor type.
public static final int SW_RESIZE_CURSOR
The south-west-resize cursor type.
public static final int SE_RESIZE_CURSOR
The south-east-resize cursor type.
public static final int NW_RESIZE_CURSOR
The north-west-resize cursor type.
public static final int NE_RESIZE_CURSOR
The north-east-resize cursor type.
public static final int N_RESIZE_CURSOR
The north-resize cursor type.
public static final int S_RESIZE_CURSOR
The south-resize cursor type.
public static final int W_RESIZE_CURSOR
The west-resize cursor type.
public static final int E_RESIZE_CURSOR
The east-resize cursor type.
public static final int HAND_CURSOR
The hand cursor type.
public static final int MOVE_CURSOR
The move cursor type.
public static final int CUSTOM_CURSOR
The type associated with all custom cursors.
The user-visible name of the cursor.
Creates a new cursor object with the specified type.
type
- the type of cursor
IllegalArgumentException
- if the specified cursor type is invalid
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().
name
- the user-visible name of the cursor.
Returns a cursor object with the specified predefined type.
type
- the type of predefined cursor
IllegalArgumentException
- if the specified cursor type is invalid
Returns a system-specific custom cursor object matching the specified name. Cursor names are, for example: "Invalid.16x16"
name
- a string describing the desired system-specific custom cursor
HeadlessException
- if GraphicsEnvironment.isHeadless
returns true
AWTException
- in case of erroneous retrieving of the cursor
()
Return the system default cursor.
public int getType()
Returns the type for this cursor.
Returns the name of this cursor.
Returns a string representation of this cursor.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4