软件包 | 描述 |
---|---|
java.awt |
包含创建用户界面和绘制图形和图像的所有类。
|
java.awt.dnd |
拖放是在许多图形用户界面系统中发现的一个直接的操作手势,它提供了一种机制,将两个实体之间的信息的逻辑与在图形用户界面中的表示元素关联。
|
Modifier and Type | Method and Description |
---|---|
<T extends DragGestureRecognizer> |
Toolkit.createDragGestureRecognizer(类<T> abstractRecognizerClass, DragSource ds, Component c, int srcActions, DragGestureListener dgl)
创建一个具体的平台依赖性,要求draggesturerecognizer抽象类的子类,并与DragSource联合,组成和DragGestureListener指定。
|
Modifier and Type | Class and Description |
---|---|
class |
MouseDragGestureRecognizer
这个抽象类定义了一个基于
DragGestureRecognizer 鼠标手势
DragGestureRecognizer 。
|
Modifier and Type | Method and Description |
---|---|
<T extends DragGestureRecognizer> |
DragSource.createDragGestureRecognizer(类<T> recognizerAbstractClass, Component c, int actions, DragGestureListener dgl)
创建一个新的
DragGestureRecognizer 实现指定的抽象类
DragGestureRecognizer ,并将新创建的对象指定的
Component 和
DragGestureListener 。
|
Modifier and Type | Method and Description |
---|---|
DragGestureRecognizer |
DragSource.createDefaultDragGestureRecognizer(Component c, int actions, DragGestureListener dgl)
创建一个新的
DragGestureRecognizer 实现这
DragSource
DragGestureRecognizer 默认的抽象类,并将新创建的对象指定的
Component 和
DragGestureListener 。
|
DragGestureRecognizer |
DragGestureEvent.getSourceAsDragGestureRecognizer()
作为一个
DragGestureRecognizer 收益来源。
|
Constructor and Description |
---|
DragGestureEvent(DragGestureRecognizer dgr, int act, Point ori, List<? extends InputEvent> evs)
构造一个对象的实例
DragGestureEvent
DragGestureRecognizer 射击这一事件,一个
act 参数表示用户偏好的行动,一个
ori 参数指示的阻力的来源,和一个
List 事件,包括手势(
evs 参数)。
|
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.