|
JavaTM 2 Platform Std. Ed. v1.3 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Object
|
+--javax.swing.plaf.ComponentUI
|
+--javax.swing.plaf.ScrollBarUI
|
+--javax.swing.plaf.basic.BasicScrollBarUI
基本 Look & Feel のための、ScrollBarUI の実装です。
| 内部クラスの概要 | |
protected class |
BasicScrollBarUI.ArrowButtonListener
カーソルキーのリスナーです。 |
protected class |
BasicScrollBarUI.ModelListener
モデルの変更を待機するリスナーです。 |
class |
BasicScrollBarUI.PropertyChangeHandler
|
protected class |
BasicScrollBarUI.ScrollListener
ScrollPane で発生したイベントをスクロールするためのリスナーです。 |
protected class |
BasicScrollBarUI.TrackListener
マウスのドラッグを追跡します。 |
| フィールドの概要 | |
protected BasicScrollBarUI.ArrowButtonListener |
buttonListener
|
protected JButton |
decrButton
|
protected static int |
DECREASE_HIGHLIGHT
|
protected JButton |
incrButton
|
protected static int |
INCREASE_HIGHLIGHT
|
protected boolean |
isDragging
|
protected Dimension |
maximumThumbSize
|
protected Dimension |
minimumThumbSize
|
protected BasicScrollBarUI.ModelListener |
modelListener
|
protected static int |
NO_HIGHLIGHT
|
protected PropertyChangeListener |
propertyChangeListener
|
protected JScrollBar |
scrollbar
|
protected BasicScrollBarUI.ScrollListener |
scrollListener
|
protected Timer |
scrollTimer
|
protected Color |
thumbColor
|
protected Color |
thumbDarkShadowColor
|
protected Color |
thumbHighlightColor
|
protected Color |
thumbLightShadowColor
|
protected Rectangle |
thumbRect
|
protected Color |
trackColor
|
protected int |
trackHighlight
|
protected Color |
trackHighlightColor
|
protected BasicScrollBarUI.TrackListener |
trackListener
|
protected Rectangle |
trackRect
|
| インタフェース javax.swing.SwingConstants から継承したフィールド |
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NORTH, NORTH_EAST, NORTH_WEST, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
| コンストラクタの概要 | |
BasicScrollBarUI()
|
|
| メソッドの概要 | |
void |
addLayoutComponent(String name,
Component child)
指定された名前で、指定されたコンポーネントをレイアウトに追加します。 |
protected void |
configureScrollBarColors()
|
protected BasicScrollBarUI.ArrowButtonListener |
createArrowButtonListener()
|
protected JButton |
createDecreaseButton(int orientation)
|
protected JButton |
createIncreaseButton(int orientation)
|
protected BasicScrollBarUI.ModelListener |
createModelListener()
|
protected PropertyChangeListener |
createPropertyChangeListener()
|
protected BasicScrollBarUI.ScrollListener |
createScrollListener()
|
protected BasicScrollBarUI.TrackListener |
createTrackListener()
|
static ComponentUI |
createUI(JComponent c)
|
Dimension |
getMaximumSize(JComponent c)
|
protected Dimension |
getMaximumThumbSize()
サムに許容される最大のサイズを返します。 |
Dimension |
getMinimumSize(JComponent c)
垂直スクロールバーの最小幅は、増分ボタンおよび減分ボタンの最小幅 (null 以外) の最大値、およびサムの最小幅です。 |
protected Dimension |
getMinimumThumbSize()
サムに許容される最小のサイズを返します。 |
Dimension |
getPreferredSize(JComponent c)
垂直スクロールバーの適切な幅は、増分ボタンおよび減分ボタンの適切な幅 (null 以外) の最大値、およびサムの最小幅です。 |
protected Rectangle |
getThumbBounds()
サムの現在のサイズおよび位置を返します。 |
protected Rectangle |
getTrackBounds()
トラックの現在の境界を返します。 |
protected void |
installComponents()
|
protected void |
installDefaults()
|
protected void |
installKeyboardActions()
|
protected void |
installListeners()
|
void |
installUI(JComponent c)
|
void |
layoutContainer(Container scrollbarContainer)
指定されたパネルにコンテナを配置します。 |
protected void |
layoutHScrollbar(JScrollBar sb)
|
protected void |
layoutVScrollbar(JScrollBar sb)
|
Dimension |
minimumLayoutSize(Container scrollbarContainer)
指定された親コンテナにコンポーネントを配置した時のパネルの最小サイズを計算します。 |
void |
paint(Graphics g,
JComponent c)
|
protected void |
paintDecreaseHighlight(Graphics g)
|
protected void |
paintIncreaseHighlight(Graphics g)
|
protected void |
paintThumb(Graphics g,
JComponent c,
Rectangle thumbBounds)
|
protected void |
paintTrack(Graphics g,
JComponent c,
Rectangle trackBounds)
|
Dimension |
preferredLayoutSize(Container scrollbarContainer)
指定された親コンテナにコンポーネントを配置した時のパネルの推奨サイズを計算します。 |
void |
removeLayoutComponent(Component child)
指定されたコンポーネントをレイアウトから削除します。 |
protected void |
scrollByBlock(int direction)
|
protected void |
scrollByUnit(int direction)
|
protected void |
setThumbBounds(int x,
int y,
int width,
int height)
サムの境界を設定し、古いサムの境界と新しいサムの境界を含む、再ペイントを強制します。 |
protected void |
uninstallComponents()
|
protected void |
uninstallDefaults()
|
protected void |
uninstallKeyboardActions()
|
protected void |
uninstallListeners()
|
void |
uninstallUI(JComponent c)
|
| クラス javax.swing.plaf.ComponentUI から継承したメソッド |
contains, getAccessibleChild, getAccessibleChildrenCount, update |
| クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| フィールドの詳細 |
protected Dimension minimumThumbSize
protected Dimension maximumThumbSize
protected Color thumbHighlightColor
protected Color thumbLightShadowColor
protected Color thumbDarkShadowColor
protected Color thumbColor
protected Color trackColor
protected Color trackHighlightColor
protected JScrollBar scrollbar
protected JButton incrButton
protected JButton decrButton
protected boolean isDragging
protected BasicScrollBarUI.TrackListener trackListener
protected BasicScrollBarUI.ArrowButtonListener buttonListener
protected BasicScrollBarUI.ModelListener modelListener
protected Rectangle thumbRect
protected Rectangle trackRect
protected int trackHighlight
protected static final int NO_HIGHLIGHT
protected static final int DECREASE_HIGHLIGHT
protected static final int INCREASE_HIGHLIGHT
protected BasicScrollBarUI.ScrollListener scrollListener
protected PropertyChangeListener propertyChangeListener
protected Timer scrollTimer
| コンストラクタの詳細 |
public BasicScrollBarUI()
| メソッドの詳細 |
public static ComponentUI createUI(JComponent c)
protected void configureScrollBarColors()
public void installUI(JComponent c)
ComponentUI 内の installUIpublic void uninstallUI(JComponent c)
ComponentUI 内の uninstallUIprotected void installDefaults()
protected void installComponents()
protected void uninstallComponents()
protected void installListeners()
protected void installKeyboardActions()
protected void uninstallKeyboardActions()
protected void uninstallListeners()
protected void uninstallDefaults()
protected BasicScrollBarUI.TrackListener createTrackListener()
protected BasicScrollBarUI.ArrowButtonListener createArrowButtonListener()
protected BasicScrollBarUI.ModelListener createModelListener()
protected BasicScrollBarUI.ScrollListener createScrollListener()
protected PropertyChangeListener createPropertyChangeListener()
public void paint(Graphics g,
JComponent c)
ComponentUI 内の paintpublic Dimension getPreferredSize(JComponent c)
適切なサイズは 1 回だけ計算されます。以後、このメソッドを呼び出すと、キャッシュに格納されたサイズ値が返されます。
ComponentUI 内の getPreferredSizec - このメソッドを委譲している JScrollBargetMaximumSize(javax.swing.JComponent),
getMinimumSize(javax.swing.JComponent)public Dimension getMinimumSize(JComponent c)
minimumSize は 1 回だけ計算されます。以後、このメソッドを呼び出しても、キャッシュに格納されたサイズ値が返されます。
ComponentUI 内の getMinimumSizec - このメソッドを委譲している JScrollBargetMaximumSize(javax.swing.JComponent),
getPreferredSize(javax.swing.JComponent)public Dimension getMaximumSize(JComponent c)
ComponentUI 内の getMaximumSizec - このメソッドを委譲している JScrollBargetMinimumSize(javax.swing.JComponent),
getPreferredSize(javax.swing.JComponent)protected JButton createDecreaseButton(int orientation)
protected JButton createIncreaseButton(int orientation)
protected void paintDecreaseHighlight(Graphics g)
protected void paintIncreaseHighlight(Graphics g)
protected void paintTrack(Graphics g,
JComponent c,
Rectangle trackBounds)
protected void paintThumb(Graphics g,
JComponent c,
Rectangle thumbBounds)
protected Dimension getMinimumThumbSize()
警告: このメソッドが返す値は変更しないでください。これは共有される静的定数です。
getMaximumThumbSize()protected Dimension getMaximumThumbSize()
getMinimumThumbSize が同じ値を返します。
警告: このメソッドが返す値は変更しないでください。これは共有される静的定数です。
getMinimumThumbSize()
public void addLayoutComponent(String name,
Component child)
LayoutManager の記述: LayoutManager 内の addLayoutComponentjava.awt.LayoutManager からコピーされたタグ:name - コンポーネントの名前comp - 追加されるコンポーネントpublic void removeLayoutComponent(Component child)
LayoutManager の記述: LayoutManager 内の removeLayoutComponentjava.awt.LayoutManager からコピーされたタグ:comp - 削除されるコンポーネントpublic Dimension preferredLayoutSize(Container scrollbarContainer)
LayoutManager の記述: LayoutManager 内の preferredLayoutSizejava.awt.LayoutManager からコピーされたタグ:parent - 配置されるコンポーネントLayoutManager.minimumLayoutSize(java.awt.Container)public Dimension minimumLayoutSize(Container scrollbarContainer)
LayoutManager の記述: LayoutManager 内の minimumLayoutSizejava.awt.LayoutManager からコピーされたタグ:parent - 配置されるコンポーネントLayoutManager.preferredLayoutSize(java.awt.Container)protected void layoutVScrollbar(JScrollBar sb)
protected void layoutHScrollbar(JScrollBar sb)
public void layoutContainer(Container scrollbarContainer)
LayoutManager の記述: LayoutManager 内の layoutContainerjava.awt.LayoutManager からコピーされたタグ:parent - レイアウトする必要があるコンポーネント
protected void setThumbBounds(int x,
int y,
int width,
int height)
getThumbBounds()protected Rectangle getThumbBounds()
警告: このメソッドが返す値は変更しないでください。これは実際の矩形への参照です。コピーではありません。
setThumbBounds(int, int, int, int)protected Rectangle getTrackBounds()
警告: このメソッドが返す値は変更しないでください。これは実際の矩形への参照です。コピーではありません。
layoutContainer(java.awt.Container)protected void scrollByBlock(int direction)
protected void scrollByUnit(int direction)
|
JavaTM 2 Platform Std. Ed. v1.3 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
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.