Uses of Class
java.awt.dnd.DragSourceContext
-
Packages that use DragSourceContext 软件包 描述 java.awt.dnd 拖放是在许多图形用户界面系统中发现的直接操纵手势,其提供了在GUI中与表示元素逻辑相关联的两个实体之间传递信息的机制。 -
-
Uses of DragSourceContext in java.awt.dnd
Methods in java.awt.dnd that return DragSourceContext 变量和类型 方法 描述 protected DragSourceContext
DragSource. createDragSourceContext(DragGestureEvent dgl, Cursor dragCursor, Image dragImage, Point imageOffset, Transferable t, DragSourceListener dsl)
创建DragSourceContext
以处理当前拖动操作。DragSourceContext
DragSourceEvent. getDragSourceContext()
此方法返回发起事件的DragSourceContext
。Constructors in java.awt.dnd with parameters of type DragSourceContext 构造器 描述 DragSourceDragEvent(DragSourceContext dsc, int dropAction, int action, int modifiers)
构造一个DragSourceDragEvent
。DragSourceDragEvent(DragSourceContext dsc, int dropAction, int action, int modifiers, int x, int y)
根据指定的DragSourceContext
,用户放置操作,目标放下操作,修改器和坐标构造DragSourceDragEvent
。DragSourceDropEvent(DragSourceContext dsc)
为不会导致掉落的拖动构造DragSourceDropEvent
。DragSourceDropEvent(DragSourceContext dsc, int action, boolean success)
构建一个DragSourceDropEvent
的下降,考虑到DragSourceContext
,下降动作,和boolean
指示放置是否成功。DragSourceDropEvent(DragSourceContext dsc, int action, boolean success, int x, int y)
根据DragSourceContext
,下拉动作,boolean
指示下降是否成功,以及坐标,构建一个DragSourceDropEvent
。DragSourceEvent(DragSourceContext dsc)
构建一个DragSourceEvent
给予指定DragSourceContext
。DragSourceEvent(DragSourceContext dsc, int x, int y)
构建一个DragSourceEvent
给予指定DragSourceContext
,光标位置的坐标。
-