Uses of Class
java.awt.dnd.DragGestureEvent
-
Packages that use DragGestureEvent 软件包 描述 java.awt.dnd 拖放是在许多图形用户界面系统中发现的直接操纵手势,其提供了在GUI中与表示元素逻辑相关联的两个实体之间传递信息的机制。 -
-
Uses of DragGestureEvent in java.awt.dnd
Methods in java.awt.dnd that return DragGestureEvent 变量和类型 方法 描述 DragGestureEvent
DragSourceContext. getTrigger()
返回最初触发拖动的DragGestureEvent
。Methods in java.awt.dnd with parameters of type DragGestureEvent 变量和类型 方法 描述 protected DragSourceContext
DragSource. createDragSourceContext(DragGestureEvent dgl, Cursor dragCursor, Image dragImage, Point imageOffset, Transferable t, DragSourceListener dsl)
创建DragSourceContext
以处理当前拖动操作。void
DragGestureListener. dragGestureRecognized(DragGestureEvent dge)
此方法由被调用的DragGestureRecognizer
当DragGestureRecognizer
检测到依赖于平台的拖动启动动作。void
DragSource. startDrag(DragGestureEvent trigger, Cursor dragCursor, Transferable transferable, DragSourceListener dsl)
开始一拖,考虑到DragGestureEvent
启动拖动,初步Cursor
用,Transferable
拖动的目标数据和DragSourceListener
。void
DragSource. startDrag(DragGestureEvent trigger, Cursor dragCursor, Transferable transferable, DragSourceListener dsl, FlavorMap flavorMap)
开始一拖,考虑到DragGestureEvent
启动拖动,初步Cursor
用,Transferable
拖动的目标数据,该DragSourceListener
和FlavorMap
。void
DragSource. startDrag(DragGestureEvent trigger, Cursor dragCursor, Image dragImage, Point dragOffset, Transferable transferable, DragSourceListener dsl)
开始一拖,考虑到DragGestureEvent
启动拖动,初步Cursor
用,Image
拖动时,该偏移Image
从的热点起源Cursor
在触发,拖动的目标数据的瞬间,和DragSourceListener
。void
DragSource. startDrag(DragGestureEvent trigger, Cursor dragCursor, Image dragImage, Point imageOffset, Transferable transferable, DragSourceListener dsl, FlavorMap flavorMap)
开始一拖,考虑到DragGestureEvent
启动拖动,初步Cursor
用,Image
拖动,偏移量的Image
从的热点起源Cursor
在扳机的瞬间,Transferable
拖动的目标数据,DragSourceListener
和FlavorMap
。Constructors in java.awt.dnd with parameters of type DragGestureEvent 构造器 描述 DragSourceContext(DragGestureEvent trigger, Cursor dragCursor, Image dragImage, Point offset, Transferable t, DragSourceListener dsl)
从名为DragSource
,该构造函数创建一个新DragSourceContext
给出的DragSourceContextPeer
这个拖累,DragGestureEvent
触发该Drag的初始Cursor
以用于拖动,(可选的)Image
当拖动正在发生显示的偏移Image
来自触发事件瞬间的热点,Transferable
主题数据,以及DragSourceListener
在拖放操作期间使用。
-