JavaTM 2 Platform
Std. Ed. v1.3

javax.swing.plaf.basic
クラス BasicTreeUI.ComponentHandler

java.lang.Object
  |
  +--java.awt.event.ComponentAdapter
        |
        +--javax.swing.plaf.basic.BasicTreeUI.ComponentHandler
すべての実装インタフェース:
ActionListener, ComponentListener, EventListener
含まれているクラス:
BasicTreeUI

public class BasicTreeUI.ComponentHandler
extends ComponentAdapter
implements ActionListener

スクロール時に必要に応じて、適切なサイズを更新します。


フィールドの概要
protected  JScrollBar scrollBar
          調整中のスクロールバーです。
protected  Timer timer
          スクロール区画内で、スクロールバーの調整中に使われるタイマーです。
 
コンストラクタの概要
BasicTreeUI.ComponentHandler()
           
 
メソッドの概要
 void actionPerformed(ActionEvent ae)
          Timer の結果を公開します。
 void componentMoved(ComponentEvent e)
          コンポーネントの位置が変わると呼び出されます。
protected  JScrollPane getScrollPane()
          JTree が格納されている JScrollPane を返します。
protected  void startTimer()
          境界のサイズを変更する必要があるかどうかを調べるために、必要に応じてタイマーを作成および開始します。
 
クラス java.awt.event.ComponentAdapter から継承したメソッド
componentHidden, componentResized, componentShown
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

timer

protected Timer timer
スクロール区画内で、スクロールバーの調整中に使われるタイマーです。

scrollBar

protected JScrollBar scrollBar
調整中のスクロールバーです。
コンストラクタの詳細

BasicTreeUI.ComponentHandler

public BasicTreeUI.ComponentHandler()
メソッドの詳細

componentMoved

public void componentMoved(ComponentEvent e)
クラス ComponentAdapter の記述:
コンポーネントの位置が変わると呼び出されます。
オーバーライド:
クラス ComponentAdapter 内の componentMoved

startTimer

protected void startTimer()
境界のサイズを変更する必要があるかどうかを調べるために、必要に応じてタイマーを作成および開始します。

getScrollPane

protected JScrollPane getScrollPane()
JTree が格納されている JScrollPane を返します。見つからない場合は null を返します。

actionPerformed

public void actionPerformed(ActionEvent ae)
Timer の結果を公開します。scrollBar が null の場合、または調整中でない場合は、タイマーを停止し、サイズ変更を更新します。
定義:
インタフェース ActionListener 内の actionPerformed

JavaTM 2 Platform
Std. Ed. v1.3

バグや機能要求の報告
さらに詳しい API リファレンスおよび開発者ドキュメントについては、 Java 2 SDK SE Developer Documentation を参照してください。このドキュメントには、概念、用語の定義、回避策、 実用的なコード例など、開発者を対象にした詳細な解説が掲載されています。

Java、Java 2D、JDBC は、米国およびその他の国における米国 Sun Microsystems, Inc. の商標もしくは登録商標です。
Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.