- java.lang.Object
-
- java.awt.event.MouseAdapter
-
- javax.swing.event.MouseInputAdapter
-
- javax.swing.plaf.basic.BasicDesktopIconUI.MouseInputHandler
-
- すべての実装されたインタフェース:
MouseListener
,MouseMotionListener
,MouseWheelListener
,EventListener
,MouseInputListener
- 含まれているクラス:
- BasicDesktopIconUI
public class BasicDesktopIconUI.MouseInputHandler extends MouseInputAdapter
マウスの動きを待機し、その動きに合わせて処理を行います。 このクラスは、「protected」内部クラスとして扱うようにしてください。BasicDesktopIconUI
のサブクラス内でのみインスタンス化してください。
-
-
コンストラクタのサマリー
コンストラクタ コンストラクタ 説明 MouseInputHandler()
-
メソッドのサマリー
すべてのメソッド インスタンス・メソッド 具象メソッド 修飾子と型 メソッド 説明 void
moveAndRepaint(JComponent f, int newX, int newY, int newWidth, int newHeight)
コンポーネントf
を移動および再描画します。-
クラス java.awt.event.MouseAdapterで宣言されたメソッド
mouseDragged, mouseMoved, mouseWheelMoved
-
クラス java.lang.Objectで宣言されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
インタフェース java.awt.event.MouseListenerで宣言されたメソッド
mouseClicked, mouseEntered, mouseExited, mousePressed, mouseReleased
-
インタフェース java.awt.event.MouseMotionListenerで宣言されたメソッド
mouseDragged, mouseMoved
-
-
-
-
メソッドの詳細
-
moveAndRepaint
public void moveAndRepaint(JComponent f, int newX, int newY, int newWidth, int newHeight)
コンポーネントf
を移動および再描画します。- パラメータ:
f
- コンポーネントnewX
- 新しいX座標newY
- 新しいY座標newWidth
- 新しい幅newHeight
- 新しい高さ
-
-