| 
 | JavaTM Platform Standard Ed. 6 | |||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectjava.awt.Cursor
public class Cursor
封装鼠标光标的位图表示形式的类。
Component.setCursor(java.awt.Cursor), 
序列化表格| 字段摘要 | |
|---|---|
| static int | CROSSHAIR_CURSOR十字光标类型。 | 
| static int | CUSTOM_CURSOR与所有定制光标有关的类型。 | 
| static int | DEFAULT_CURSOR默认光标类型(如果没有定义光标,则获取该设置)。 | 
| static int | E_RESIZE_CURSOR调整窗口右边框大小的光标类型。 | 
| static int | HAND_CURSOR手状光标类型。 | 
| static int | MOVE_CURSOR移动光标类型。 | 
| static int | N_RESIZE_CURSOR调整窗口上边框大小的光标类型。 | 
| protected  String | name光标的用户可视名称。 | 
| static int | NE_RESIZE_CURSOR调整窗口右上角大小的光标类型。 | 
| static int | NW_RESIZE_CURSOR调整窗口左上角大小的光标类型。 | 
| protected static Cursor[] | predefined | 
| static int | S_RESIZE_CURSOR调整窗口下边框大小的光标类型。 | 
| static int | SE_RESIZE_CURSOR调整窗口右下角大小的光标类型。 | 
| static int | SW_RESIZE_CURSOR调整窗口左下角大小的光标类型。 | 
| static int | TEXT_CURSOR文字光标类型。 | 
| static int | W_RESIZE_CURSOR调整窗口左边框大小的光标类型。 | 
| static int | WAIT_CURSOR等待光标类型。 | 
| 构造方法摘要 | |
|---|---|
|   | Cursor(int type)用指定类型创建一个新的光标对象。 | 
| protected  | Cursor(String name)用指定名称创建一个新的定制光标对象。 | 
| 方法摘要 | |
|---|---|
| static Cursor | getDefaultCursor()返回系统默认光标。 | 
|  String | getName()返回此光标的名称。 | 
| static Cursor | getPredefinedCursor(int type)返回一个具有指定预定义类型的光标对象。 | 
| static Cursor | getSystemCustomCursor(String name)返回与指定名称匹配的特定于系统的定制光标对象。 | 
|  int | getType()返回此光标的类型。 | 
|  String | toString()返回此光标的字符串表示形式。 | 
| 从类 java.lang.Object 继承的方法 | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| 字段详细信息 | 
|---|
public static final int DEFAULT_CURSOR
public static final int CROSSHAIR_CURSOR
public static final int TEXT_CURSOR
public static final int WAIT_CURSOR
public static final int SW_RESIZE_CURSOR
public static final int SE_RESIZE_CURSOR
public static final int NW_RESIZE_CURSOR
public static final int NE_RESIZE_CURSOR
public static final int N_RESIZE_CURSOR
public static final int S_RESIZE_CURSOR
public static final int W_RESIZE_CURSOR
public static final int E_RESIZE_CURSOR
public static final int HAND_CURSOR
public static final int MOVE_CURSOR
protected static Cursor[] predefined
public static final int CUSTOM_CURSOR
protected String name
getName()| 构造方法详细信息 | 
|---|
public Cursor(int type)
type - 光标的类型
IllegalArgumentException - 如果指定的光标类型无效protected Cursor(String name)
注:此构造方法应该只由 AWT 实现使用,用作它们支持定制光标的一部分。应用程序应该使用 Toolkit.createCustomCursor()。
name - 光标的用户可视名称。Toolkit.createCustomCursor(java.awt.Image, java.awt.Point, java.lang.String)| 方法详细信息 | 
|---|
public static Cursor getPredefinedCursor(int type)
type - 指定光标的类型
IllegalArgumentException - 如果指定的光标类型无效
public static Cursor getSystemCustomCursor(String name)
                                    throws AWTException,
                                           HeadlessException
name - 描述所需的特定于系统的定制光标的字符串
HeadlessException - 如果 GraphicsEnvironment.isHeadless 返回 true
AWTExceptionpublic static Cursor getDefaultCursor()
public int getType()
public String getName()
public String toString()
Object 中的 toString| 
 | JavaTM Platform Standard Ed. 6 | |||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策。