API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.awt. Cursor View Source
Author(s)
Amy Fowler
Since
Version
1.45, 11/17/05
Serial
Hierarchy
 Object
      Cursor
Implements
 Serializable
Subclasses
Description
public class Cursor
  A class to encapsulate the bitmap representation of the mouse cursor.
Constructors
public Cursor (int type)
  Creates a new cursor object with the specified type.
protected Cursor (String name)
  Creates a new custom cursor object with the specified name.
Methods
Hide/Show inherited methods
publicstatic Cursor getDefaultCursor ()
Return the system default cursor.
public String getName ()
  Returns the name of this cursor.
publicstatic Cursor getPredefinedCursor (int type)
  Returns a cursor object with the specified predefined type.
publicstatic Cursor getSystemCustomCursor (String name) throws AWTException HeadlessException
  Returns a system-specific custom cursor object matching the specified name.
public int getType ()
Returns the type for this cursor.
public String toString ()
  Returns a string representation of this cursor.
Fields
Hide/Show inherited fields
publicfinalstatic int CROSSHAIR_CURSOR = "1"
The crosshair cursor type.
pack-privatefinalstatic String cursorProperties
publicfinalstatic int CUSTOM_CURSOR = "-1"
The type associated with all custom cursors.
publicfinalstatic int DEFAULT_CURSOR = "0"
The default cursor type (gets set if no cursor is defined).
pack-privatetransient CursorDisposer disposer
publicfinalstatic int E_RESIZE_CURSOR = "11"
The east-resize cursor type.
publicfinalstatic int HAND_CURSOR = "12"
The hand cursor type.
publicfinalstatic int MOVE_CURSOR = "13"
The move cursor type.
publicfinalstatic int N_RESIZE_CURSOR = "8"
The north-resize cursor type.
protected String name
  The user-visible name of the cursor.
publicfinalstatic int NE_RESIZE_CURSOR = "7"
The north-east-resize cursor type.
publicfinalstatic int NW_RESIZE_CURSOR = "6"
The north-west-resize cursor type.
protectedstatic Cursor predefined
publicfinalstatic int S_RESIZE_CURSOR = "9"
The south-resize cursor type.
publicfinalstatic int SE_RESIZE_CURSOR = "5"
The south-east-resize cursor type.
publicfinalstatic int SW_RESIZE_CURSOR = "4"
The south-west-resize cursor type.
publicfinalstatic int TEXT_CURSOR = "2"
The text cursor type.
pack-private int type
  The chosen cursor type initially set to the DEFAULT_CURSOR.
publicfinalstatic int W_RESIZE_CURSOR = "10"
The west-resize cursor type.
publicfinalstatic int WAIT_CURSOR = "3"
The wait cursor type.
Nested Classes
  Cursor.CursorDisposer
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar