public class MetalScrollBarUI extends BasicScrollBarUI
BasicScrollBarUI.ArrowButtonListener, BasicScrollBarUI.ModelListener, BasicScrollBarUI.PropertyChangeHandler, BasicScrollBarUI.ScrollListener, BasicScrollBarUI.TrackListener| 修飾子と型 | フィールドと説明 |
|---|---|
protected javax.swing.plaf.metal.MetalBumps |
bumps |
protected MetalScrollButton |
decreaseButton |
static String |
FREE_STANDING_PROP |
protected MetalScrollButton |
increaseButton |
protected boolean |
isFreeStanding |
protected int |
scrollBarWidth |
buttonListener, decrButton, DECREASE_HIGHLIGHT, decrGap, incrButton, INCREASE_HIGHLIGHT, incrGap, isDragging, maximumThumbSize, minimumThumbSize, modelListener, NO_HIGHLIGHT, propertyChangeListener, scrollbar, scrollListener, scrollTimer, thumbDarkShadowColor, thumbLightShadowColor, thumbRect, trackColor, trackHighlight, trackHighlightColor, trackListener, trackRectBOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST| コンストラクタと説明 |
|---|
MetalScrollBarUI() |
| 修飾子と型 | メソッドと説明 |
|---|---|
protected void |
configureScrollBarColors() |
protected JButton |
createDecreaseButton(int orientation)
縮小ビューを表すビューを返します。
|
protected JButton |
createIncreaseButton(int orientation)
拡大ビューを表すビューを返します。
|
protected PropertyChangeListener |
createPropertyChangeListener() |
static ComponentUI |
createUI(JComponent c) |
protected Dimension |
getMinimumThumbSize()
つまみに許容される最小のサイズを返します。
|
Dimension |
getPreferredSize(JComponent c)
垂直スクロールバーの推奨幅は、増分ボタンと減分ボタン (
null 以外) の推奨幅の最大値、およびつまみの最小幅です。 |
protected void |
installDefaults() |
protected void |
installListeners() |
protected void |
paintThumb(Graphics g, JComponent c, Rectangle thumbBounds) |
protected void |
paintTrack(Graphics g, JComponent c, Rectangle trackBounds) |
protected void |
setThumbBounds(int x, int y, int width, int height)
無効な領域を拡大するときだけに、オーバーライドされます。
|
addLayoutComponent, createArrowButtonListener, createModelListener, createScrollListener, createTrackListener, getMaximumSize, getMaximumThumbSize, getSupportsAbsolutePositioning, getThumbBounds, getTrackBounds, installComponents, installKeyboardActions, installUI, isThumbRollover, layoutContainer, layoutHScrollbar, layoutVScrollbar, minimumLayoutSize, paint, paintDecreaseHighlight, paintIncreaseHighlight, preferredLayoutSize, removeLayoutComponent, scrollByBlock, scrollByUnit, setThumbRollover, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUIcontains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMinimumSize, updateprotected javax.swing.plaf.metal.MetalBumps bumps
protected MetalScrollButton increaseButton
protected MetalScrollButton decreaseButton
protected int scrollBarWidth
protected boolean isFreeStanding
public static ComponentUI createUI(JComponent c)
protected void installDefaults()
installDefaults、クラス: BasicScrollBarUIprotected void installListeners()
installListeners、クラス: BasicScrollBarUIprotected PropertyChangeListener createPropertyChangeListener()
createPropertyChangeListener、クラス: BasicScrollBarUIprotected void configureScrollBarColors()
configureScrollBarColors、クラス: BasicScrollBarUIpublic Dimension getPreferredSize(JComponent c)
BasicScrollBarUInull 以外) の推奨幅の最大値、およびつまみの最小幅です。推奨される高さは、同じ部分の推奨される高さの総計です。水平スクロールバーの推奨されるサイズの原理も同様です。
preferredSize は 1 回だけ計算されます。以後、このメソッドを呼び出すと、キャッシュに格納されたサイズ値が返されます。
getPreferredSize、クラス: BasicScrollBarUIc - このメソッドを委譲している JScrollBarBasicScrollBarUI.getMaximumSize(javax.swing.JComponent), ComponentUI.getMinimumSize(javax.swing.JComponent)protected JButton createDecreaseButton(int orientation)
createDecreaseButton、クラス: BasicScrollBarUIprotected JButton createIncreaseButton(int orientation)
createIncreaseButton、クラス: BasicScrollBarUIprotected void paintTrack(Graphics g, JComponent c, Rectangle trackBounds)
paintTrack、クラス: BasicScrollBarUIprotected void paintThumb(Graphics g, JComponent c, Rectangle thumbBounds)
paintThumb、クラス: BasicScrollBarUIprotected Dimension getMinimumThumbSize()
BasicScrollBarUI警告:このメソッドが返す値は変更しないでください。これは共有される静的定数です。
getMinimumThumbSize、クラス: BasicScrollBarUIBasicScrollBarUI.getMaximumThumbSize()protected void setThumbBounds(int x,
int y,
int width,
int height)
setThumbBounds、クラス: BasicScrollBarUIBasicScrollBarUI.getThumbBounds() バグまたは機能を送信
詳細な API リファレンスおよび開発者ドキュメントについては、Java SE のドキュメントを参照してください。そのドキュメントには、概念的な概要、用語の定義、回避方法、有効なコード例などの、開発者を対象にしたより詳細な説明が含まれています。
Copyright © 1993, 2013, Oracle and/or its affiliates. All rights reserved.