クラスjava.awt.dnd.DragGestureRecognizer
の使用
-
DragGestureRecognizerを使用するパッケージ パッケージ 説明 java.awt ユーザー・インタフェースの作成およびグラフィックスとイメージのペイント用のすべてのクラスを含みます。java.awt.dnd ドラッグ&ドロップ操作は、多くのグラフィカル・ユーザー・インタフェース・システムで見られる直接的な操作ジェスチャで、GUIの表現要素に論理的に関連付けられた2つのエンティティ間で情報を変換するメカニズムを提供します。 -
-
java.awtでのDragGestureRecognizerの使用
DragGestureRecognizer型の型パラメータを持つjava.awtのメソッド 修飾子と型 メソッド 説明 <T extends DragGestureRecognizer>
TToolkit. createDragGestureRecognizer(Class<T> abstractRecognizerClass, DragSource ds, Component c, int srcActions, DragGestureListener dgl)
要求された抽象クラスDragGestureRecognizerの、プラットフォームに依存する具象サブクラスを作成し、指定されたDragSource、Component、およびDragGestureListenerに関連付けます。 -
java.awt.dndでのDragGestureRecognizerの使用
java.awt.dndでのDragGestureRecognizerのサブクラス 修飾子と型 クラス 説明 class
MouseDragGestureRecognizer
DragGestureRecognizer
のこの抽象サブクラスは、マウス・ベースのジェスチャのDragGestureRecognizer
を定義します。DragGestureRecognizer型の型パラメータを持つjava.awt.dndのメソッド 修飾子と型 メソッド 説明 <T extends DragGestureRecognizer>
TDragSource. createDragGestureRecognizer(Class<T> recognizerAbstractClass, Component c, int actions, DragGestureListener dgl)
DragGestureRecognizer
の指定された抽象サブクラスを実装する新しいDragGestureRecognizer
を作成し、指定されたComponent
とDragGestureListener
を新しく作成されたオブジェクト上に設定します。DragGestureRecognizerを返すjava.awt.dndのメソッド 修飾子と型 メソッド 説明 DragGestureRecognizer
DragSource. createDefaultDragGestureRecognizer(Component c, int actions, DragGestureListener dgl)
このDragSource
にDragGestureRecognizer
のデフォルト抽象サブクラスを実装する新しいDragGestureRecognizer
を作成し、指定されたComponent
とDragGestureListener
を新しく作成されたオブジェクト上に設定します。DragGestureRecognizer
DragGestureEvent. getSourceAsDragGestureRecognizer()
ソースをDragGestureRecognizer
として返します。DragGestureRecognizer型のパラメータを持つjava.awt.dndのコンストラクタ コンストラクタ 説明 DragGestureEvent(DragGestureRecognizer dgr, int act, Point ori, List<? extends InputEvent> evs)
このイベントをトリガーするDragGestureRecognizer
インスタンス、ユーザーの希望するアクションを表すact
パラメータ、ドラッグの起点を示すori
パラメータ、およびジェスチャを構成するイベントのList
(evs
パラメータ)を使用して、DragGestureEvent
オブジェクトを構築します。
-