|
JavaTM 2 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 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
版權所有 2008 Sun Microsystems, Inc. 保留所有權利。請遵守GNU General Public License, version 2 only。