-
-
|
Modifier and Type |
Field and Description |
|
CROSSHAIR_CURSOR |
static int CROSSHAIR_CURSOR
The crosshair cursor type.
|
|
CUSTOM_CURSOR |
static int CUSTOM_CURSOR
The type associated with all custom cursors.
public static final int CUSTOM_CURSOR
-
The type associated with all custom cursors.
- See Also:
- Constant Field Values
|
|
DEFAULT_CURSOR |
static int DEFAULT_CURSOR
The default cursor type (gets set if no cursor is defined).
public static final int DEFAULT_CURSOR
-
The default cursor type (gets set if no cursor is defined).
- See Also:
- Constant Field Values
|
|
E_RESIZE_CURSOR |
static int E_RESIZE_CURSOR
The east-resize cursor type.
|
|
HAND_CURSOR |
static int HAND_CURSOR
The hand cursor type.
|
|
MOVE_CURSOR |
static int MOVE_CURSOR
The move cursor type.
|
|
N_RESIZE_CURSOR |
static int N_RESIZE_CURSOR
The north-resize cursor type.
|
|
name |
protected java.lang.String name
The user-visible name of the cursor.
protected java.lang.String name
-
The user-visible name of the cursor.
- See Also:
getName()
|
|
NE_RESIZE_CURSOR |
static int NE_RESIZE_CURSOR
The north-east-resize cursor type.
public static final int NE_RESIZE_CURSOR
-
The north-east-resize cursor type.
- See Also:
- Constant Field Values
|
|
NW_RESIZE_CURSOR |
static int NW_RESIZE_CURSOR
The north-west-resize cursor type.
public static final int NW_RESIZE_CURSOR
-
The north-west-resize cursor type.
- See Also:
- Constant Field Values
|
|
predefined |
protected static Cursor[] predefined
|
|
S_RESIZE_CURSOR |
static int S_RESIZE_CURSOR
The south-resize cursor type.
|
|
SE_RESIZE_CURSOR |
static int SE_RESIZE_CURSOR
The south-east-resize cursor type.
public static final int SE_RESIZE_CURSOR
-
The south-east-resize cursor type.
- See Also:
- Constant Field Values
|
|
SW_RESIZE_CURSOR |
static int SW_RESIZE_CURSOR
The south-west-resize cursor type.
public static final int SW_RESIZE_CURSOR
-
The south-west-resize cursor type.
- See Also:
- Constant Field Values
|
|
TEXT_CURSOR |
static int TEXT_CURSOR
The text cursor type.
|
|
W_RESIZE_CURSOR |
static int W_RESIZE_CURSOR
The west-resize cursor type.
|
|
WAIT_CURSOR |
static int WAIT_CURSOR
The wait cursor type.
|
-
|
Modifier and Type |
Static Method and Description |
|
getDefaultCursor |
static Cursor getDefaultCursor()
Return the system default cursor.
public static Cursor getDefaultCursor()
-
Return the system default cursor.
|
|
getPredefinedCursor |
static Cursor getPredefinedCursor(int type)
Returns a cursor object with the specified predefined type.
public static Cursor getPredefinedCursor(int type)
-
Returns a cursor object with the specified predefined type.
- Parameters:
type - the type of predefined cursor
- Returns:
- the specified predefined cursor
- Throws:
java.lang.IllegalArgumentException - if the specified cursor type is
invalid
|
|
getSystemCustomCursor |
static Cursor getSystemCustomCursor(java.lang.String name)
Returns a system-specific custom cursor object matching the
specified name.
-
Returns a system-specific custom cursor object matching the
specified name. Cursor names are, for example: "Invalid.16x16"
- Parameters:
name - a string describing the desired system-specific custom cursor
- Returns:
- the system specific custom cursor named
- Throws:
HeadlessException - if
GraphicsEnvironment.isHeadless returns true
AWTException
|
-
|
Modifier |
Constructor and Description |
|
Cursor |
Cursor(int type)
Creates a new cursor object with the specified type.
@ConstructorProperties(value="type")
public Cursor(int type)
-
Creates a new cursor object with the specified type.
- Parameters:
type - the type of cursor
- Throws:
java.lang.IllegalArgumentException - if the specified cursor type
is invalid
|
|
Cursor |
protected Cursor(java.lang.String name)
Creates a new custom cursor object with the specified name.
protected Cursor(java.lang.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().
- Parameters:
name - the user-visible name of the cursor.- See Also:
Toolkit.createCustomCursor(java.awt.Image, java.awt.Point, java.lang.String)
|
-
|
Modifier and Type |
Method and Description |
|
getName |
java.lang.String getName()
Returns the name of this cursor.
public java.lang.String getName()
-
Returns the name of this cursor.
- Returns:
- a localized description of this cursor.
- Since:
- 1.2
|
|
getType |
int getType()
Returns the type for this cursor.
public int getType()
-
Returns the type for this cursor.
|
|
toString |
java.lang.String toString()
Returns a string representation of this cursor.
public java.lang.String toString()
-
Returns a string representation of this cursor.
- Overrides:
toString in class java.lang.Object
- Returns:
- a string representation of this cursor.
- Since:
- 1.2
|
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
This document was created by
Dulcet from the OpenJDK sources.
Copyright © 1993, 2012 Oracle and/or its affiliates. All rights reserved.