Home » openjdk-7 » java » awt » [javadoc | source]
java.awt
public class: Cursor [javadoc | source]
java.lang.Object
   java.awt.Cursor

All Implemented Interfaces:
    java$io$Serializable

Direct Known Subclasses:
    BasicCursor

A class to encapsulate the bitmap representation of the mouse cursor.
Nested Class Summary:
static class  Cursor.CursorDisposer   
Field Summary
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. 
protected static  Cursor[] predefined   
     
    static final  String[][] cursorProperties     
     int type    The chosen cursor type initially set to the DEFAULT_CURSOR. 
    public static final  int CUSTOM_CURSOR    The type associated with all custom cursors. 
    transient  CursorDisposer disposer     
    protected  String name    The user-visible name of the cursor. 
    Constructor:
     public Cursor(int type) 
     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().

      Parameters:
      name - the user-visible name of the cursor.
      Also see:
      java.awt.Toolkit#createCustomCursor
    Method from java.awt.Cursor Summary:
    getDefaultCursor,   getName,   getPredefinedCursor,   getSystemCustomCursor,   getType,   toString
    Methods from java.lang.Object:
    clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
    Method from java.awt.Cursor Detail:
     public static Cursor getDefaultCursor() 
      Return the system default cursor.
     public String getName() 
      Returns the name of this cursor.
     public static Cursor getPredefinedCursor(int type) 
      Returns a cursor object with the specified predefined type.
     public static Cursor getSystemCustomCursor(String name) throws AWTException, HeadlessException 
      Returns a system-specific custom cursor object matching the specified name. Cursor names are, for example: "Invalid.16x16"
     public int getType() 
      Returns the type for this cursor.
     public String toString() 
      Returns a string representation of this cursor.