public interface DragGestureListener extends EventListener
DragGestureRecognizer
关于如何注册监听器接口的详细信息。
当识别拖拽手势的DragGestureRecognizer
调用这个接口的dragGestureRecognized()
方法并传递一个DragGestureEvent
。
DragGestureRecognizer
, DragGestureEvent
, DragSource
Modifier and Type | Method and Description |
---|---|
void |
dragGestureRecognized(DragGestureEvent dge)
DragGestureRecognizer 当
DragGestureRecognizer 检测到与平台相关的拖动启动手势时,此方法被调用。
|
void dragGestureRecognized(DragGestureEvent dge)
DragGestureRecognizer
当DragGestureRecognizer
检测到与平台相关的拖动启动手势时,此方法被调用。
要启动拖放操作,如果适用,必须调用DragGestureEvent上的DragGestureEvent
方法。
dge
-
DragGestureEvent
刚刚发生的手势的
DragGestureEvent
DragGestureRecognizer
,
DragGestureEvent