クラスjava.awt.dnd.DragGestureEvent
の使用
-
DragGestureEventを使用するパッケージ パッケージ 説明 java.awt.dnd ドラッグ&ドロップ操作は、多くのグラフィカル・ユーザー・インタフェース・システムで見られる直接的な操作ジェスチャで、GUIの表現要素に論理的に関連付けられた2つのエンティティ間で情報を変換するメカニズムを提供します。 -
-
java.awt.dndでのDragGestureEventの使用
DragGestureEventを返すjava.awt.dndのメソッド 修飾子と型 メソッド 説明 DragGestureEvent
DragSourceContext. getTrigger()
ドラッグを最初にトリガーしたDragGestureEvent
を返します。DragGestureEvent型のパラメータを持つjava.awt.dndのメソッド 修飾子と型 メソッド 説明 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
、トリガーの瞬間におけるCursor
のホット・スポットからのImage
原点のオフセット、ドラッグの対象データ、およびDragSourceListener
で、ドラッグを開始します。void
DragSource. startDrag(DragGestureEvent trigger, Cursor dragCursor, Image dragImage, Point imageOffset, Transferable transferable, DragSourceListener dsl, FlavorMap flavorMap)
ドラッグを開始したDragGestureEvent
、使用する初期のCursor
、ドラッグするImage
、トリガーの瞬間におけるCursor
のホット・スポットからのImage
原点のオフセット、ドラッグのTransferable
対象データ、DragSourceListener
、およびFlavorMap
で、ドラッグを開始します。DragGestureEvent型のパラメータを持つjava.awt.dndのコンストラクタ コンストラクタ 説明 DragSourceContext(DragGestureEvent trigger, Cursor dragCursor, Image dragImage, Point offset, Transferable t, DragSourceListener dsl)
このコンストラクタは、DragSource
から呼び出され、このドラッグのDragSourceContextPeer
、ドラッグをトリガーしたDragGestureEvent
、ドラッグに使用する初期のCursor
、ドラッグの実行中に表示する(オプションの)Image
、トリガー・イベントの瞬間におけるホット・スポットからのImage
原点のオフセット、Transferable
対象データ、およびドラッグ&ドロップ操作中に使用するDragSourceListener
を使用して、新しいDragSourceContext
を作成します。
-