| 
 | JavaTM 2 Platform Standard Ed. 5.0 | |||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectjava.awt.dnd.DragGestureRecognizer
java.awt.dnd.MouseDragGestureRecognizer
public abstract class MouseDragGestureRecognizer
DragGestureRecognizer のこの抽象サブクラスは、マウスベースのジェスチャーの DragGestureRecognizer を定義します。
各プラットフォームは、Toolkit.createDragGestureRecognizer() メソッドを介して利用可能なこのクラスの具象サブクラスを独自に実装し、ドラッグ&ドロップ操作を開始するプラットフォーム依存のマウスジェスチャーの認識をカプセル化します。
 
マウスドラッグジェスチャーレコグナイザは DragSource.getDragThreshold() から取得できるドラッグジェスチャーモーションのしきい値を受け取る必要があります。ドラッグジェスチャーは、最後のマウスドラッグイベントの場所と対応するマウスボタン押下イベントの場所の水平または垂直方向の距離がドラッグジェスチャーモーションのしきい値より大きい場合にのみ認識される必要があります。
 
DragSource.createDefaultDragGestureRecognizer(java.awt.Component, int, java.awt.dnd.DragGestureListener) によって作成されるドラッグジェスチャーレコグナイザはこの規則に従います。
DragGestureListener, 
DragGestureEvent, 
DragSource, 
直列化された形式| フィールドの概要 | 
|---|
| クラス java.awt.dnd.DragGestureRecognizer から継承されたフィールド | 
|---|
| component, dragGestureListener, dragSource, events, sourceActions | 
| コンストラクタの概要 | |
|---|---|
| protected  | MouseDragGestureRecognizer(DragSource ds)Componentc のDragSourceを指定して、新しいMouseDragGestureRecognizerを構築します。 | 
| protected  | MouseDragGestureRecognizer(DragSource ds,
                           Component c)Componentc のDragSource、および監視するComponentを指定して、新しいMouseDragGestureRecognizerを構築します。 | 
| protected  | MouseDragGestureRecognizer(DragSource ds,
                           Component c,
                           int act)Componentc のDragSource、監視するComponent、およびこのドラッグ操作に許可されたアクションを指定して、新しいMouseDragGestureRecognizerを構築します。 | 
| protected  | MouseDragGestureRecognizer(DragSource ds,
                           Component c,
                           int act,
                           DragGestureListener dgl)Componentc のDragSource、監視するComponent、このドラッグ操作に許可されたアクション、およびドラッグジェスチャーが検出されたときに通知するDragGestureListenerを指定して、新しいMouseDragGestureRecognizerを構築します。 | 
| メソッドの概要 | |
|---|---|
|  void | mouseClicked(MouseEvent e)コンポーネント上でマウスがクリックされると呼び出されます。 | 
|  void | mouseDragged(MouseEvent e)マウスボタンがコンポーネント上で押されたときに呼び出されます。 | 
|  void | mouseEntered(MouseEvent e)コンポーネントにマウスが入ると呼び出されます。 | 
|  void | mouseExited(MouseEvent e)コンポーネントからマウスが出ると呼び出されます。 | 
|  void | mouseMoved(MouseEvent e)コンポーネント上でマウスが移動される (ボタンは押されない) と呼び出されます。 | 
|  void | mousePressed(MouseEvent e)Component上でマウスボタンが押されているときに呼び出されます。 | 
|  void | mouseReleased(MouseEvent e)コンポーネント上でマウスボタンが離されると呼び出されます。 | 
| protected  void | registerListeners()この DragGestureRecognizer のリスナーを Component に登録します。 | 
| protected  void | unregisterListeners()この DragGestureRecognizer のリスナーを Component から登録解除します。 | 
| クラス java.lang.Object から継承されたメソッド | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| コンストラクタの詳細 | 
|---|
protected MouseDragGestureRecognizer(DragSource ds,
                                     Component c,
                                     int act,
                                     DragGestureListener dgl)
Component c の DragSource、監視する Component、このドラッグ操作に許可されたアクション、およびドラッグジェスチャーが検出されたときに通知する DragGestureListener を指定して、新しい MouseDragGestureRecognizer を構築します。 
ds - Component c の DragSourcec - 監視する Componentact - このドラッグに許可されるアクションdgl - ジェスチャーが検出されたときに通知する DragGestureListener
protected MouseDragGestureRecognizer(DragSource ds,
                                     Component c,
                                     int act)
Component c の DragSource、監視する Component、およびこのドラッグ操作に許可されたアクションを指定して、新しい MouseDragGestureRecognizer を構築します。 
ds - Component c の DragSourcec - 監視する Componentact - このドラッグに許可されるアクション
protected MouseDragGestureRecognizer(DragSource ds,
                                     Component c)
Component c の DragSource、および監視する Component を指定して、新しい MouseDragGestureRecognizer を構築します。 
ds - Component c の DragSourcec - 監視する Componentprotected MouseDragGestureRecognizer(DragSource ds)
Component c の DragSource を指定して、新しい MouseDragGestureRecognizer を構築します。 
ds - Component の DragSource| メソッドの詳細 | 
|---|
protected void registerListeners()
DragGestureRecognizer 内の registerListenersprotected void unregisterListeners()
DragGestureRecognizer 内の unregisterListenerspublic void mouseClicked(MouseEvent e)
MouseListener 内の mouseClickede - MouseEventpublic void mousePressed(MouseEvent e)
Component 上でマウスボタンが押されているときに呼び出されます。 
MouseListener 内の mousePressede - MouseEventpublic void mouseReleased(MouseEvent e)
MouseListener 内の mouseReleasede - MouseEventpublic void mouseEntered(MouseEvent e)
MouseListener 内の mouseEnterede - MouseEventpublic void mouseExited(MouseEvent e)
MouseListener 内の mouseExitede - MouseEventpublic void mouseDragged(MouseEvent e)
MouseMotionListener 内の mouseDraggede - MouseEventpublic void mouseMoved(MouseEvent e)
MouseMotionListener 内の mouseMovede - MouseEvent| 
 | JavaTM 2 Platform Standard Ed. 5.0 | |||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Documentation Redistribution Policy も参照してください。