Java プラットフォーム 1.2

javax.swing.plaf.basic
クラス BasicSplitPaneDivider.DragController

java.lang.Object
  |
  +--javax.swing.plaf.basic.BasicSplitPaneDivider.DragController
直接の既知のサブクラス:
BasicSplitPaneDivider.VerticalDragController

protected class BasicSplitPaneDivider.DragController
extends Object

HORIZONTAL_SPLIT 方向の分割区画でドラッグセッション時のイベントを処理します。連続的に dragDividerTo をメッセージとして送り、ドラッグが終了すると finishDraggingTo をメッセージとして送ります。インスタンスを生成したら、ドラッグが可能になるように isValid() を使ってメッセージを送る必要があります。2 つのビューがサイズ変更できない場合、ドラッグは許可されません。

警告: このクラスの直列化されたオブジェクトは、今後の Swing リリースと互換ではなくなる予定です。現在の直列化のサポートは、短期間の運用や、同じバージョンの Swing を実行するアプリケーション間の RMI に適しています。今後の Swing リリースでは、長期間の持続性をサポートする予定です


コンストラクタの概要
protected BasicSplitPaneDivider.DragController(MouseEvent e)
           
 
メソッドの概要
protected  void completeDrag(int x, int y)
           
protected  void completeDrag(MouseEvent e)
          マウスイベントの新しい位置で finishDraggingTo をメッセージとして送ります。
protected  void continueDrag(int newX, int newY)
           
protected  void continueDrag(MouseEvent e)
          マウスイベントの新しい位置で dragDividerTo をメッセージとして送ります。
protected  int getNeededLocation(int x, int y)
          x 引数を返します。
protected  boolean isValid()
          ドラッグセッションが有効な場合は true を返します。
protected  int positionForMouseEvent(MouseEvent e)
          渡された MouseEvent に基づいてディバイダを配置する新しい位置を返します。
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

BasicSplitPaneDivider.DragController

protected BasicSplitPaneDivider.DragController(MouseEvent e)
メソッドの詳細

isValid

protected boolean isValid()
ドラッグセッションが有効な場合は true を返します。

positionForMouseEvent

protected int positionForMouseEvent(MouseEvent e)
渡された MouseEvent に基づいてディバイダを配置する新しい位置を返します。

getNeededLocation

protected int getNeededLocation(int x,
                                int y)
x 引数を返します。これは水平分割で使用されます。

continueDrag

protected void continueDrag(int newX,
                            int newY)

continueDrag

protected void continueDrag(MouseEvent e)
マウスイベントの新しい位置で dragDividerTo をメッセージとして送ります。

completeDrag

protected void completeDrag(int x,
                            int y)

completeDrag

protected void completeDrag(MouseEvent e)
マウスイベントの新しい位置で finishDraggingTo をメッセージとして送ります。

Java プラットフォーム 1.2

バグや機能要求の報告
新しい javadoc の表示についてのコメントやご提案
Java は、米国およびその他の国における米国 Sun Microsystems, Inc. の商標もしくは登録商標です。
Copyright 1993-1998 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.