JavaTM Platform
Standard Ed. 6

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

java.lang.Object
  上位を拡張 javax.swing.plaf.basic.BasicSplitPaneDivider.DragController
直系の既知のサブクラス:
BasicSplitPaneDivider.VerticalDragController
含まれているクラス:
BasicSplitPaneDivider

protected class BasicSplitPaneDivider.DragController
extends Object

HORIZONTAL_SPLIT 方向の分割区画のために、ドラッグセッション中のイベントを処理します。連続して dragDividerTo メッセージを送り、終了時に finishDraggingTo メッセージを送ります。インスタンスが作成されるとき、isValid によるメッセージを受けて、ドラッグを実行できることを確認する必要があります。 2 つの画面の大きさを変更できない場合、ドラッグはできません。

警告: このクラスの直列化されたオブジェクトは、今後の Swing リリースと互換ではなくなる予定です。現在の直列化のサポートは、短期間の運用や、同じバージョンの Swing を実行するアプリケーション間の RMI に適しています。JDK Version 1.4 以降、すべての JavaBeans の長期間の運用サポートは、java.beans パッケージに追加されています。詳細は、XMLEncoder を参照してください。


コンストラクタの概要
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 に、マウスイベントの新しい位置についてのメッセージを送ります。


JavaTM Platform
Standard Ed. 6

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

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