JavaTM Platform
Standard Ed. 6

クラス
java.awt.dnd.DragSource の使用

DragSource を使用しているパッケージ
java.awt ユーザーインタフェースの作成およびグラフィックスとイメージのペイント用のすべてのクラスを含みます。 
java.awt.dnd ドラッグ&ドロップ操作は、多くのグラフィカルユーザーインタフェースシステムで見られる直接的な操作ジェスチャーで、GUI の表現要素に論理的に関連した 2 つのエンティティー間で情報を変換する機構を提供します。 
 

java.awt での DragSource の使用
 

DragSource 型のパラメータを持つ java.awt のメソッド
<T extends DragGestureRecognizer>
T
Toolkit.createDragGestureRecognizer(Class<T> abstractRecognizerClass, DragSource ds, Component c, int srcActions, DragGestureListener dgl)
          要求された abstract クラス DragGestureRecognizer の、プラットフォームに依存する具象サブクラスを作成し、指定された DragSource、Component、および DragGestureListener に関連付けます。
 

java.awt.dnd での DragSource の使用
 

DragSource として宣言されている java.awt.dnd のフィールド
protected  DragSource DragGestureRecognizer.dragSource
          DragGestureRecognizer に関連した DragSource です。
 

DragSource を返す java.awt.dnd のメソッド
static DragSource DragSource.getDefaultDragSource()
          基本となるプラットフォームに関連した DragSource オブジェクトを取得します。
 DragSource DragSourceContext.getDragSource()
          この DragSourceContext のインスタンスを生成した DragSource を返します。
 DragSource DragGestureRecognizer.getDragSource()
          このメソッドは、この DragGestureRecognizer が、ドラッグ&ドロップ操作を処理するために使用する DragSource を返します。
 DragSource DragGestureEvent.getDragSource()
          DragSource を返します。
 

DragSource 型のパラメータを持つ java.awt.dnd のコンストラクタ
DragGestureRecognizer(DragSource ds)
          このドラッグ&ドロップ操作に使用する DragSource を指定して新しい DragGestureRecognizer を構築します。
DragGestureRecognizer(DragSource ds, Component c)
          このドラッグ&ドロップ操作に使用する DragSource、この DragGestureRecognizer がドラッグ開始ジェスチャーを「監視」できる Component を指定して新しい DragGestureRecognizer を構築します。
DragGestureRecognizer(DragSource ds, Component c, int sa)
          このドラッグ&ドロップ操作に使用する DragSource、この DragGestureRecognizer がドラッグ開始ジェスチャーを「監視」できる Component、このドラッグ&ドロップ操作をサポートするアクションを指定して新しい DragGestureRecognizer を構築します。
DragGestureRecognizer(DragSource ds, Component c, int sa, DragGestureListener dgl)
          このドラッグ&ドロップ操作に使用する DragSource、この DragGestureRecognizer がドラッグ開始ジェスチャーを「監視」できる Component、このドラッグ&ドロップ操作をサポートするアクション、および DragGestureListener を指定して新しい DragGestureRecognizer を構築して、ドラッグ開始ジェスチャーを検出したことを一度通知します。
MouseDragGestureRecognizer(DragSource ds)
          Component c の DragSource を指定して、新しい MouseDragGestureRecognizer を構築します。
MouseDragGestureRecognizer(DragSource ds, Component c)
          Component c の DragSource、および監視する Component を指定して、新しい MouseDragGestureRecognizer を構築します。
MouseDragGestureRecognizer(DragSource ds, Component c, int act)
          Component c の DragSource、監視する Component、およびこのドラッグ操作に許可されたアクションを指定して、新しい MouseDragGestureRecognizer を構築します。
MouseDragGestureRecognizer(DragSource ds, Component c, int act, DragGestureListener dgl)
          Component c の DragSource、監視する Component、このドラッグ操作に許可されたアクション、およびドラッグジェスチャーが検出されたときに通知する DragGestureListener を指定して、新しい MouseDragGestureRecognizer を構築します。
 


JavaTM Platform
Standard Ed. 6

バグの報告と機能のリクエスト
さらに詳しい API リファレンスおよび開発者ドキュメントについては、Java SE 開発者用ドキュメントを参照してください。開発者向けの詳細な解説、概念の概要、用語の定義、バグの回避策、およびコード実例が含まれています。

Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Documentation Redistribution Policy も参照してください。