クラスBasicSplitPaneDivider.VerticalDragController

java.lang.Object
javax.swing.plaf.basic.BasicSplitPaneDivider.DragController
javax.swing.plaf.basic.BasicSplitPaneDivider.VerticalDragController
含まれているクラス:
BasicSplitPaneDivider

protected class BasicSplitPaneDivider.VerticalDragController extends BasicSplitPaneDivider.DragController
ドラッグ・セッション中の、VERTICAL_SPLIT方向分割ペインのイベントを処理します。 断続的にdragDividerToメッセージを送り、終了時にfinishDraggingToメッセージを送ります。 インスタンスが作成されるとき、ドラッグが確実に発生できるようにisValidメッセージを受け取るようにしてください(2つのビューがサイズ変更できない場合、ドラッグが許可されません)。
  • コンストラクタのサマリー

    コンストラクタ
    修飾子
    コンストラクタ
    説明
    protected
    VerticalDragControllerの新しいインスタンスを構築します。
  • メソッドのサマリー

    修飾子と型
    メソッド
    説明
    protected int
    getNeededLocation(int x, int y)
    y引数を返します(垂直分割に使用される)。
    protected int
    渡されるMouseEventに基づいてディバイダを置く新しい位置を返します。

    クラスで宣言されたメソッド BasicSplitPaneDivider.DragController

    completeDrag, completeDrag, continueDrag, continueDrag, isValid
    修飾子と型
    メソッド
    説明
    protected void
    completeDrag(int x, int y)
    マウス・イベントの新しい位置を含むfinishDraggingToメッセージを送ります。
    protected void
    マウス・イベントの新しい位置を含むfinishDraggingToメッセージを送ります。
    protected void
    continueDrag(int newX, int newY)
    マウス・イベントの新しい位置を含むdragDividerToメッセージを送ります。
    protected void
    マウス・イベントの新しい位置を含むdragDividerToメッセージを送ります。
    protected boolean
    ドラッグ・セッションが有効な場合は、trueを返します。

    クラスオブジェクトで宣言されたメソッド

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    修飾子と型
    メソッド
    説明
    protected Object
    このオブジェクトのコピーを作成して、返します。
    boolean
    このオブジェクトと他のオブジェクトが等しいかどうかを示します。
    protected void
    削除予定のため非推奨: このAPI要素は、将来のバージョンで削除される可能性があります。
    最終決定は非推奨であり、将来のリリースで削除される可能性があります。
    final Class<?>
    このObjectの実行時クラスを返します。
    int
    このオブジェクトに対するハッシュ・コード値を返します。
    final void
    このオブジェクトのモニターで待機中のスレッドを1つ再開します。
    final void
    このオブジェクトのモニターで待機中のすべてのスレッドを再開します。
    オブジェクトの文字列表現を返します。
    final void
    現在のスレッドが目覚めるまで待機します。通常、notifiedまたはinterruptedです。
    final void
    wait(long timeoutMillis)
    現在のスレッドは、通常、notifiedまたはinterruptedであるか、一定のリアルタイムが経過するまで、目覚めるまで待機します。
    final void
    wait(long timeoutMillis, int nanos)
    現在のスレッドは、通常、notifiedまたはinterruptedであるか、一定のリアルタイムが経過するまで、目覚めるまで待機します。
  • コンストラクタの詳細

    • VerticalDragController

      protected VerticalDragController(MouseEvent e)
      VerticalDragControllerの新しいインスタンスを構築します。
      パラメータ:
      e - マウス・イベント
  • メソッドの詳細

    • getNeededLocation

      protected int getNeededLocation(int x, int y)
      y引数を返します(垂直分割に使用される)。
      オーバーライド:
      getNeededLocation、クラスBasicSplitPaneDivider.DragController
      パラメータ:
      x - X座標
      y - Y座標
      戻り値:
      Xの引数
    • positionForMouseEvent

      protected int positionForMouseEvent(MouseEvent e)
      渡されるMouseEventに基づいてディバイダを置く新しい位置を返します。
      オーバーライド:
      positionForMouseEvent、クラスBasicSplitPaneDivider.DragController
      パラメータ:
      e - マウス・イベント
      戻り値:
      新しい位置