|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個 下一個 | 框架 無框架 | |||||||||
| 使用 DragGestureRecognizer 的軟體套件 | |
|---|---|
| java.awt | 包含用於創建使用者介面和繪製圖形圖像的全部類別。 |
| java.awt.dnd | Drag 和 Drop 是一種直接操作動作,在許多圖形使用者介面系統中都會遇到它,它提供了一種機制,能夠在兩個與 GUI 中顯示元素邏輯相關的實體之間傳輸資訊。 |
| java.awt 中 DragGestureRecognizer 的使用 |
|---|
| 型別參數型別為 DragGestureRecognizer 的 java.awt 中的方法 | ||
|---|---|---|
|
Toolkit.createDragGestureRecognizer(Class<T> abstractRecognizerClass,
DragSource ds,
Component c,
int srcActions,
DragGestureListener dgl)
創建所請求的抽象 DragGestureRecognizer 類別的具體的、與平臺有關的子類別,並將它與指定的 DragSource、Component 和 DragGestureListener 關聯。 |
|
| java.awt.dnd 中 DragGestureRecognizer 的使用 |
|---|
| java.awt.dnd 中 DragGestureRecognizer 的子類別 | |
|---|---|
class |
MouseDragGestureRecognizer
DragGestureRecognizer 的抽象子類別,它定義了一個基於鼠標動作的 DragGestureRecognizer。 |
| 型別參數型別為 DragGestureRecognizer 的 java.awt.dnd 中的方法 | ||
|---|---|---|
|
DragSource.createDragGestureRecognizer(Class<T> recognizerAbstractClass,
Component c,
int actions,
DragGestureListener dgl)
創建一個新的 DragGestureRecognizer,實作 DragGestureRecognizer 的指定抽象子類別並在新創建的物件上設置指定的 Component 和 DragGestureListener。 |
|
| 返回 DragGestureRecognizer 的 java.awt.dnd 中的方法 | |
|---|---|
DragGestureRecognizer |
DragSource.createDefaultDragGestureRecognizer(Component c,
int actions,
DragGestureListener dgl)
創建一個新的 DragGestureRecognizer,為此 DragSource 實作 DragGestureRecognizer 的預設抽象子類別並在新創建的物件上設置指定的 Component 和 DragGestureListener。 |
DragGestureRecognizer |
DragGestureEvent.getSourceAsDragGestureRecognizer()
以 DragGestureRecognizer 的形式返回源。 |
| 參數型別為 DragGestureRecognizer 的 java.awt.dnd 中的建構子 | |
|---|---|
DragGestureEvent(DragGestureRecognizer dgr,
int act,
Point ori,
List<? extends InputEvent> evs)
在給定觸發此事件的 DragGestureRecognizer、表示使用者首選操作的 int、指示拖動原點的 Point,以及組成動作的事件 List 的情況下,建構一個 DragGestureEvent。 |
|
|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個 下一個 | 框架 無框架 | |||||||||
版權所有 2008 Sun Microsystems, Inc. 保留所有權利。請遵守GNU General Public License, version 2 only。