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, 2025, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Documentation Redistribution Policyも参照してください。