所有类


java.awt
类 Cursor

java.lang.Object
  继承者 java.awt.Cursor
所有已实现的接口:
Serializable

public class Cursor
   
   
   
   
   
extends Object
implements Serializable

封装鼠标光标的位图表示形式的类。

另请参见:
Component.setCursor(java.awt.Cursor), 序列化表格

字段摘要
static intCROSSHAIR_CURSOR
          十字光标类型。
static intCUSTOM_CURSOR
          与所有定制光标有关的类型。
static intDEFAULT_CURSOR
          默认光标类型(如果没有定义光标,则获得该设置)。
static intE_RESIZE_CURSOR
          调整窗口右边框位置的光标类型。
static intHAND_CURSOR
          手状光标类型。
static intMOVE_CURSOR
          移动光标类型。
static intN_RESIZE_CURSOR
          调整窗口上边框位置的光标类型。
protected  Stringname
          光标的用户可视名称。
static intNE_RESIZE_CURSOR
          调整窗口右上角位置的光标类型。
static intNW_RESIZE_CURSOR
          调整窗口左上角位置的光标类型。
protected static Cursor[]predefined
           
static intS_RESIZE_CURSOR
          调整窗口下边框位置的光标类型。
static intSE_RESIZE_CURSOR
          调整窗口右下角位置的光标类型。
static intSW_RESIZE_CURSOR
          调整窗口左下角位置的光标类型。
static intTEXT_CURSOR
          文字光标类型。
static intW_RESIZE_CURSOR
          调整窗口左边框位置的光标类型。
static intWAIT_CURSOR
          等待光标类型。
 
构造方法摘要
 Cursor(int type)
          用指定类型创建一个新的光标对象。
protected Cursor(String name)
          用指定名称创建一个新的定制光标对象。
 
方法摘要
protected  voidfinalize()
          当垃圾回收器确定不存在对该对象的更多引用时,由对象的垃圾回收器调用此方法。
static CursorgetDefaultCursor()
          返回系统默认光标。
 StringgetName()
          返回此光标的名称。
static CursorgetPredefinedCursor(int type)
          返回一个具有指定预定义类型的光标对象。
static CursorgetSystemCustomCursor(String name)
          返回与指定名称匹配的特定于系统的定制光标对象。
 intgetType()
          返回此光标的类型。
 StringtoString()
          返回此光标的字符串表示形式。
 
从类 java.lang.Object 继承的方法
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

字段详细信息

DEFAULT_CURSOR

public static final int DEFAULT_CURSOR
默认光标类型(如果没有定义光标,则获得该设置)。

另请参见:
常量字段值

CROSSHAIR_CURSOR

public static final int CROSSHAIR_CURSOR
十字光标类型。

另请参见:
常量字段值

TEXT_CURSOR

public static final int TEXT_CURSOR
文字光标类型。

另请参见:
常量字段值

WAIT_CURSOR

public static final int WAIT_CURSOR
等待光标类型。

另请参见:
常量字段值

SW_RESIZE_CURSOR

public static final int SW_RESIZE_CURSOR
调整窗口左下角位置的光标类型。

另请参见:
常量字段值

SE_RESIZE_CURSOR

public static final int SE_RESIZE_CURSOR
调整窗口右下角位置的光标类型。

另请参见:
常量字段值

NW_RESIZE_CURSOR

public static final int NW_RESIZE_CURSOR
调整窗口左上角位置的光标类型。

另请参见:
常量字段值