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 Modifier and Type 方法 描述 DragGestureEvent
DragSourceContext. getTrigger()
返回最初触发拖动的DragGestureEvent
。Methods in java.awt.dnd with parameters of type DragGestureEvent Modifier and Type 方法 描述 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 Constructor 描述 DragSourceContext(DragGestureEvent trigger, Cursor dragCursor, Image dragImage, Point offset, Transferable t, DragSourceListener dsl)
从名为DragSource
,该构造函数创建一个新DragSourceContext
给出的DragSourceContextPeer
此拖累,DragGestureEvent
触发该Drag的初始Cursor
使用的拖累,(可选的)Image
,而将正在发生显示的偏移Image
起源于触发事件瞬间的热点,Transferable
主题数据,以及拖放操作期间使用的DragSourceListener
。
-