Java プラットフォーム 1.2

javax.swing.plaf.basic
クラス BasicSplitPaneUI

java.lang.Object
  |
  +--javax.swing.plaf.ComponentUI
        |
        +--javax.swing.plaf.SplitPaneUI
              |
              +--javax.swing.plaf.basic.BasicSplitPaneUI
直接の既知のサブクラス:
MetalSplitPaneUI

public class BasicSplitPaneUI
extends SplitPaneUI

SplitPaneUI の Basic 仕様 Look & Feel による実装です。


内部クラスの概要
 class BasicSplitPaneUI.BasicHorizontalLayoutManager
          HORIZONTAL_SPLIT 方向の JSplitPane の LayoutManager です。
 class BasicSplitPaneUI.BasicVerticalLayoutManager
          VERTICAL_SPLIT 方向の JSplitPane に使われる LayoutManager です。
 class BasicSplitPaneUI.FocusHandler
          JSplitPane UI が使う FocusListener の実装です。
 class BasicSplitPaneUI.KeyboardDownRightHandler
          JSplitPane UI が特定のキーの押下を処理するために使う ActionListener の実装です。
 class BasicSplitPaneUI.KeyboardEndHandler
          JSplitPane UI が特定のキーの押下を処理するために使う ActionListener の実装です。
 class BasicSplitPaneUI.KeyboardHomeHandler
          JSplitPane UI が特定のキーの押下を処理するために使う ActionListener の実装です。
 class BasicSplitPaneUI.KeyboardResizeToggleHandler
          JSplitPane UI が特定のキーの押下を処理するために使う ActionListener の実装です。
 class BasicSplitPaneUI.KeyboardUpLeftHandler
          JSplitPane UI が特定のキーの押下を処理するために使う ActionListener の実装です。
 class BasicSplitPaneUI.PropertyHandler
          JSplitPane UI が使う PropertyChangeListener の実装です。
 
フィールドの概要
protected  int beginDragDividerLocation
          ドラッグセッションが開始されたときのディバイダの位置です。
protected  BasicSplitPaneDivider divider
          この JSplitPane のディバイダのインスタンスです。
protected  KeyStroke dividerResizeToggleKey
           
protected  int dividerSize
          ドラッグセッションが有効なときのディバイダのサイズです。
protected  KeyStroke downKey
           
protected  boolean draggingHW
          子 (nonContinuousLayoutDivider を除く) のどれかが重量コンポーネントである場合に startDragging で true に設定されます。
protected  KeyStroke endKey
           
protected  FocusListener focusListener
          この JSplitPane の FocusListener のインスタンスです。
protected  KeyStroke homeKey
           
protected static int KEYBOARD_DIVIDER_MOVE_OFFSET
          キーボードのカーソルキーで移動するときにディバイダが移動する相対的な距離です。
protected  ActionListener keyboardDownRightListener
           
protected  ActionListener keyboardEndListener
           
protected  ActionListener keyboardHomeListener
           
protected  ActionListener keyboardResizeToggleListener
           
protected  ActionListener keyboardUpLeftListener
          キーボードナビゲーションのキーストロークを処理しているハンドラです。
protected  BasicSplitPaneUI.BasicHorizontalLayoutManager layoutManager
          分割区画に作成および配置される LayoutManager です。
protected  KeyStroke leftKey
           
protected static String NON_CONTINUOUS_DIVIDER
          非連続レイアウトに使われるディバイダが、このオブジェクトを持つ分割区画に追加されます。
protected  Component nonContinuousLayoutDivider
          非連続レイアウトが使われているときのディバイダの陰影のインスタンスです。
protected  PropertyChangeListener propertyChangeListener
          この JSplitPane の PropertyChangeListener のインスタンスです。
protected  KeyStroke rightKey
           
protected  JSplitPane splitPane
          このインスタンスが Look & Feel を提供している JSplitPane のインスタンスです。
protected  KeyStroke upKey
          JSplitPane が処理するキーストロークです。
 
コンストラクタの概要
BasicSplitPaneUI()
           
 
メソッドの概要
 BasicSplitPaneDivider createDefaultDivider()
          デフォルトのディバイダを作成します。
protected  Component createDefaultNonContinuousLayoutDivider()
          デフォルトの非連続レイアウトのディバイダを返します。
protected  FocusListener createFocusListener()
          JSplitPane UI の FocusListener を作成します。
protected  ActionListener createKeyboardDownRightListener()
          特定のキーの押下を待機する JSplitPane UI の ActionListener を作成します。
protected  ActionListener createKeyboardEndListener()
          特定のキーの押下を待機する JSplitPane UI の ActionListener を作成します。
protected  ActionListener createKeyboardHomeListener()
          特定のキーの押下を待機する JSplitPane UI の ActionListener を作成します。
protected  ActionListener createKeyboardResizeToggleListener()
          特定のキーの押下を待機する JSplitPane UI の ActionListener を作成します。
protected  ActionListener createKeyboardUpLeftListener()
          特定のキーの押下を待機する JSplitPane UI の ActionListener を作成します。
protected  PropertyChangeListener createPropertyChangeListener()
          JSplitPane UI の PropertyChangeListener を作成します。
static ComponentUI createUI(JComponent x)
          BasicSplitPaneUI の新しいインスタンスを生成します。
protected  void dragDividerTo(int location)
          ディバイダを渡された位置に移動するためにドラッグセッションの間にメッセージとして送られます。
protected  void finishDraggingTo(int location)
          ドラッグセッションを終了するためにメッセージとして送られます。
 void finishedPaintingChildren(JSplitPane jc, Graphics g)
          レシーバによって Look & Feel が提供されている JSplitPane がその子をペイントしたあとにメッセージとして送られます。
 BasicSplitPaneDivider getDivider()
          最上部の Component の間のディバイダを返します。
protected  int getDividerBorderSize()
          ディバイダのボーダの 1 辺の幅を返します。
 int getDividerLocation(JSplitPane jc)
          ディバイダの位置を返します。
 Insets getInsets(JComponent jc)
          インセットを返します。
 int getLastDragLocation()
          JSplitPane の最後のドラッグ位置を返します。
 int getMaximumDividerLocation(JSplitPane jc)
          ディバイダの最大位置を取得します。
 Dimension getMaximumSize(JComponent jc)
          渡されたコンポーネントの最大サイズを返します。
 int getMinimumDividerLocation(JSplitPane jc)
          ディバイダの最小位置を取得します。
 Dimension getMinimumSize(JComponent jc)
          渡されたコンポーネントの最小サイズを返します。
 Component getNonContinuousLayoutDivider()
          分割区画が非連続レイアウトに設定されているときに使われるディバイダを返します。
 int getOrientation()
          JSplitPane の方向を返します。
 Dimension getPreferredSize(JComponent jc)
          渡されたコンポーネントの適切なサイズを返します。
 JSplitPane getSplitPane()
          このインスタンスが現在格納されている分割区画を返します。
protected  void installDefaults()
          UI のデフォルトをインストールします。
protected  void installKeyboardActions()
          UI のキーボードアクションをインストールします。
protected  void installListeners()
          UI のイベントリスナーをインストールします。
 void installUI(JComponent c)
          UI をインストールします。
 boolean isContinuousLayout()
          JSplitPane が連続レイアウトを使うように設定されているかどうかを判定します。
 void paint(Graphics g, JComponent jc)
          Look & Feel をペイントするためにメッセージとして送られます。
protected  void resetLayoutManager()
          方向に基づいてレイアウトマネージャをリセットし、適切な Component を格納するために invalidateLayout を使ってメッセージとして送ります。
 void resetToPreferredSizes(JSplitPane jc)
          適切なサイズをリセットするためにメッセージとして送られます。
 void setContinuousLayout(boolean b)
          連続レイアウトのオンとオフを切り替えます。
 void setDividerLocation(JSplitPane jc, int location)
          ディバイダの位置を location に設定します。
 void setLastDragLocation(int l)
          JSplitPane の最後のドラッグ位置を設定します。
protected  void setNonContinuousLayoutDivider(Component newDivider)
          分割区画が非連続レイアウトに設定されているときに使われるディバイダを設定します。
protected  void setNonContinuousLayoutDivider(Component newDivider, boolean rememberSizes)
          使用されるディバイダを設定します。
 void setOrientation(int orientation)
          JSplitPane の方向を設定します。
protected  void startDragging()
          ドラッグセッションが始まる前にメッセージとして送ります。
protected  void uninstallDefaults()
          UI のデフォルトをアンインストールします。
protected  void uninstallKeyboardActions()
          UI のキーボードアクションをアンインストールします。
protected  void uninstallListeners()
          UI のイベントリスナーをアンインストールします。
 void uninstallUI(JComponent c)
          UI をアンインストールします。
 
クラス javax.swing.plaf.ComponentUI から継承したメソッド
contains, getAccessibleChild, getAccessibleChildrenCount, update
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

NON_CONTINUOUS_DIVIDER

protected static final String NON_CONTINUOUS_DIVIDER
非連続レイアウトに使われるディバイダが、このオブジェクトを持つ分割区画に追加されます。

KEYBOARD_DIVIDER_MOVE_OFFSET

protected static int KEYBOARD_DIVIDER_MOVE_OFFSET
キーボードのカーソルキーで移動するときにディバイダが移動する相対的な距離です。

splitPane

protected JSplitPane splitPane
このインスタンスが Look & Feel を提供している JSplitPane のインスタンスです。

layoutManager

protected BasicSplitPaneUI.BasicHorizontalLayoutManager layoutManager
分割区画に作成および配置される LayoutManager です。

divider

protected BasicSplitPaneDivider divider
この JSplitPane のディバイダのインスタンスです。

propertyChangeListener

protected PropertyChangeListener propertyChangeListener
この JSplitPane の PropertyChangeListener のインスタンスです。

focusListener

protected FocusListener focusListener
この JSplitPane の FocusListener のインスタンスです。

dividerSize

protected int dividerSize
ドラッグセッションが有効なときのディバイダのサイズです。

nonContinuousLayoutDivider

protected Component nonContinuousLayoutDivider
非連続レイアウトが使われているときのディバイダの陰影のインスタンスです。

draggingHW

protected boolean draggingHW
子 (nonContinuousLayoutDivider を除く) のどれかが重量コンポーネントである場合に startDragging で true に設定されます。

beginDragDividerLocation

protected int beginDragDividerLocation
ドラッグセッションが開始されたときのディバイダの位置です。

upKey

protected KeyStroke upKey
JSplitPane が処理するキーストロークです。

downKey

protected KeyStroke downKey

leftKey

protected KeyStroke leftKey

rightKey

protected KeyStroke rightKey

homeKey

protected KeyStroke homeKey

endKey

protected KeyStroke endKey

dividerResizeToggleKey

protected KeyStroke dividerResizeToggleKey

keyboardUpLeftListener

protected ActionListener keyboardUpLeftListener
キーボードナビゲーションのキーストロークを処理しているハンドラです。

keyboardDownRightListener

protected ActionListener keyboardDownRightListener

keyboardHomeListener

protected ActionListener keyboardHomeListener

keyboardEndListener

protected ActionListener keyboardEndListener

keyboardResizeToggleListener

protected ActionListener keyboardResizeToggleListener
コンストラクタの詳細

BasicSplitPaneUI

public BasicSplitPaneUI()
メソッドの詳細

createUI

public static ComponentUI createUI(JComponent x)
BasicSplitPaneUI の新しいインスタンスを生成します。

installUI

public void installUI(JComponent c)
UI をインストールします。
オーバーライド:
クラス ComponentUI 内の installUI

installDefaults

protected void installDefaults()
UI のデフォルトをインストールします。

installListeners

protected void installListeners()
UI のイベントリスナーをインストールします。

installKeyboardActions

protected void installKeyboardActions()
UI のキーボードアクションをインストールします。

uninstallUI

public void uninstallUI(JComponent c)
UI をアンインストールします。
オーバーライド:
クラス ComponentUI 内の uninstallUI

uninstallDefaults

protected void uninstallDefaults()
UI のデフォルトをアンインストールします。

uninstallListeners

protected void uninstallListeners()
UI のイベントリスナーをアンインストールします。

uninstallKeyboardActions

protected void uninstallKeyboardActions()
UI のキーボードアクションをアンインストールします。

createPropertyChangeListener

protected PropertyChangeListener createPropertyChangeListener()
JSplitPane UI の PropertyChangeListener を作成します。

createFocusListener

protected FocusListener createFocusListener()
JSplitPane UI の FocusListener を作成します。

createKeyboardUpLeftListener

protected ActionListener createKeyboardUpLeftListener()
特定のキーの押下を待機する JSplitPane UI の ActionListener を作成します。

createKeyboardDownRightListener

protected ActionListener createKeyboardDownRightListener()
特定のキーの押下を待機する JSplitPane UI の ActionListener を作成します。

createKeyboardHomeListener

protected ActionListener createKeyboardHomeListener()
特定のキーの押下を待機する JSplitPane UI の ActionListener を作成します。

createKeyboardEndListener

protected ActionListener createKeyboardEndListener()
特定のキーの押下を待機する JSplitPane UI の ActionListener を作成します。

createKeyboardResizeToggleListener

protected ActionListener createKeyboardResizeToggleListener()
特定のキーの押下を待機する JSplitPane UI の ActionListener を作成します。

getOrientation

public int getOrientation()
JSplitPane の方向を返します。

setOrientation

public void setOrientation(int orientation)
JSplitPane の方向を設定します。

isContinuousLayout

public boolean isContinuousLayout()
JSplitPane が連続レイアウトを使うように設定されているかどうかを判定します。

setContinuousLayout

public void setContinuousLayout(boolean b)
連続レイアウトのオンとオフを切り替えます。

getLastDragLocation

public int getLastDragLocation()
JSplitPane の最後のドラッグ位置を返します。

setLastDragLocation

public void setLastDragLocation(int l)
JSplitPane の最後のドラッグ位置を設定します。

getDivider

public BasicSplitPaneDivider getDivider()
最上部の Component の間のディバイダを返します。

createDefaultNonContinuousLayoutDivider

protected Component createDefaultNonContinuousLayoutDivider()
デフォルトの非連続レイアウトのディバイダを返します。これは、バックグラウンドをダークグレーで塗りつぶす Canvas のインスタンスです。

setNonContinuousLayoutDivider

protected void setNonContinuousLayoutDivider(Component newDivider)
分割区画が非連続レイアウトに設定されているときに使われるディバイダを設定します。このディバイダは、ドラッグセッションの間だけ使われます。重量コンポーネントを渡すようにしてください。

setNonContinuousLayoutDivider

protected void setNonContinuousLayoutDivider(Component newDivider,
                                             boolean rememberSizes)
使用されるディバイダを設定します。

getNonContinuousLayoutDivider

public Component getNonContinuousLayoutDivider()
分割区画が非連続レイアウトに設定されているときに使われるディバイダを返します。このディバイダは、ドラッグセッションの間だけ使われます。

getSplitPane

public JSplitPane getSplitPane()
このインスタンスが現在格納されている分割区画を返します。

createDefaultDivider

public BasicSplitPaneDivider createDefaultDivider()
デフォルトのディバイダを作成します。

resetToPreferredSizes

public void resetToPreferredSizes(JSplitPane jc)
適切なサイズをリセットするためにメッセージとして送られます。
オーバーライド:
クラス SplitPaneUI 内の resetToPreferredSizes

setDividerLocation

public void setDividerLocation(JSplitPane jc,
                               int location)
ディバイダの位置を location に設定します。
オーバーライド:
クラス SplitPaneUI 内の setDividerLocation

getDividerLocation

public int getDividerLocation(JSplitPane jc)
ディバイダの位置を返します。
オーバーライド:
クラス SplitPaneUI 内の getDividerLocation

getMinimumDividerLocation

public int getMinimumDividerLocation(JSplitPane jc)
ディバイダの最小位置を取得します。
オーバーライド:
クラス SplitPaneUI 内の getMinimumDividerLocation

getMaximumDividerLocation

public int getMaximumDividerLocation(JSplitPane jc)
ディバイダの最大位置を取得します。
オーバーライド:
クラス SplitPaneUI 内の getMaximumDividerLocation

finishedPaintingChildren

public void finishedPaintingChildren(JSplitPane jc,
                                     Graphics g)
レシーバによって Look & Feel が提供されている JSplitPane がその子をペイントしたあとにメッセージとして送られます。
オーバーライド:
クラス SplitPaneUI 内の finishedPaintingChildren

paint

public void paint(Graphics g,
                  JComponent jc)
Look & Feel をペイントするためにメッセージとして送られます。
オーバーライド:
クラス ComponentUI 内の paint

getPreferredSize

public Dimension getPreferredSize(JComponent jc)
渡されたコンポーネントの適切なサイズを返します。これは、現在のレイアウトマネージャに送られます。
オーバーライド:
クラス ComponentUI 内の getPreferredSize

getMinimumSize

public Dimension getMinimumSize(JComponent jc)
渡されたコンポーネントの最小サイズを返します。これは、現在のレイアウトマネージャに送られます。
オーバーライド:
クラス ComponentUI 内の getMinimumSize

getMaximumSize

public Dimension getMaximumSize(JComponent jc)
渡されたコンポーネントの最大サイズを返します。これは、現在のレイアウトマネージャに送られます。
オーバーライド:
クラス ComponentUI 内の getMaximumSize

getInsets

public Insets getInsets(JComponent jc)
インセットを返します。インセットは、現在のボーダのボーダインセットから返されます。

resetLayoutManager

protected void resetLayoutManager()
方向に基づいてレイアウトマネージャをリセットし、適切な Component を格納するために invalidateLayout を使ってメッセージとして送ります。

startDragging

protected void startDragging()
ドラッグセッションが始まる前にメッセージとして送ります。lastDragLocation および dividerSize をリセットします。

dragDividerTo

protected void dragDividerTo(int location)
ディバイダを渡された位置に移動するためにドラッグセッションの間にメッセージとして送られます。continuousLayout が true の場合、位置がリセットされ、splitPane が有効になります。

finishDraggingTo

protected void finishDraggingTo(int location)
ドラッグセッションを終了するためにメッセージとして送られます。連続表示でない場合は、ディバイダの位置がリセットされます。

getDividerBorderSize

protected int getDividerBorderSize()
ディバイダのボーダの 1 辺の幅を返します。

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.