public class SynthScrollBarUI extends BasicScrollBarUI implements PropertyChangeListener, SynthUI
JScrollBarのSynth L&F UI委譲を提供します。BasicScrollBarUI.ArrowButtonListener, BasicScrollBarUI.ModelListener, BasicScrollBarUI.PropertyChangeHandler, BasicScrollBarUI.ScrollListener, BasicScrollBarUI.TrackListenerbuttonListener, decrButton, DECREASE_HIGHLIGHT, decrGap, incrButton, INCREASE_HIGHLIGHT, incrGap, isDragging, maximumThumbSize, minimumThumbSize, modelListener, NO_HIGHLIGHT, propertyChangeListener, scrollbar, scrollBarWidth, scrollListener, scrollTimer, thumbColor, thumbDarkShadowColor, thumbHighlightColor, thumbLightShadowColor, thumbRect, trackColor, trackHighlight, trackHighlightColor, trackListener, trackRectDEFAULT, DISABLED, ENABLED, FOCUSED, MOUSE_OVER, PRESSED, SELECTEDBOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST| コンストラクタ | 説明 |
|---|---|
SynthScrollBarUI() |
| 修飾子と型 | メソッド | 説明 |
|---|---|---|
protected void |
configureScrollBarColors() |
|
protected JButton |
createDecreaseButton(int orientation) |
|
protected JButton |
createIncreaseButton(int orientation) |
|
static ComponentUI |
createUI(JComponent c) |
|
SynthContext |
getContext(JComponent c) |
指定されたコンポーネントのコンテキストを返します。
|
protected Dimension |
getMinimumThumbSize() |
つまみに許容される最小のサイズを返します。
|
Dimension |
getPreferredSize(JComponent c) |
垂直スクロール・バーの推奨幅は、増分ボタンと減分ボタン(
null以外)の推奨幅の最大値、およびつまみの最小幅です。 |
boolean |
getSupportsAbsolutePositioning() |
ユーザーがマウス・ジェスチャ(通常はマウスの中央ボタン)を使ってつまみを絶対位置指定できるかどうかを示します。
|
protected void |
installDefaults() |
|
protected void |
installListeners() |
|
void |
paint(Graphics g, JComponent c) |
Look & Feelに従って、指定されたコンポーネントをペイントします。
|
protected void |
paint(SynthContext context, Graphics g) |
指定されたコンポーネントをペイントします。
|
void |
paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h) |
ボーダーをペイントします。
|
protected void |
paintThumb(SynthContext context, Graphics g, Rectangle thumbBounds) |
スクロール・バーのつまみをペイントします。
|
protected void |
paintTrack(SynthContext context, Graphics g, Rectangle trackBounds) |
スクロール・バーのトラックをペイントします。
|
void |
propertyChange(PropertyChangeEvent e) |
バウンド・プロパティの変更時に呼び出されます。
|
protected void |
setThumbRollover(boolean active) |
マウスが現在つまみの上にあるかどうかを設定します。
|
protected void |
uninstallDefaults() |
|
protected void |
uninstallListeners() |
|
void |
update(Graphics g, JComponent c) |
このUI委譲に、指定されたコンポーネントを再ペイントするよう通知します。
|
addLayoutComponent, createArrowButtonListener, createModelListener, createPropertyChangeListener, createScrollListener, createTrackListener, getMaximumSize, getMaximumThumbSize, getThumbBounds, getTrackBounds, installComponents, installKeyboardActions, installUI, isThumbRollover, layoutContainer, layoutHScrollbar, layoutVScrollbar, minimumLayoutSize, paintDecreaseHighlight, paintIncreaseHighlight, paintThumb, paintTrack, preferredLayoutSize, removeLayoutComponent, scrollByBlock, scrollByUnit, setThumbBounds, uninstallComponents, uninstallKeyboardActions, uninstallUIcontains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMinimumSizepublic static ComponentUI createUI(JComponent c)
protected void installDefaults()
installDefaults、クラスBasicScrollBarUIprotected void configureScrollBarColors()
configureScrollBarColors、クラスBasicScrollBarUIprotected void installListeners()
installListeners、クラスBasicScrollBarUIprotected void uninstallListeners()
uninstallListeners、クラスBasicScrollBarUIprotected void uninstallDefaults()
uninstallDefaults、クラスBasicScrollBarUIpublic SynthContext getContext(JComponent c)
getContext、インタフェースSynthUIc - SynthContextを要求するコンポーネント。public boolean getSupportsAbsolutePositioning()
getSupportsAbsolutePositioning、クラスBasicScrollBarUIpublic void update(Graphics g, JComponent c)
paint(SynthContext,Graphics)メソッドを呼び出します。
一般に、このメソッドはサブクラスによってオーバーライドする必要はありません。 すべてのLook & Feelの描画コードをpaintメソッドに入れるようにしてください。
update、クラスComponentUIg - ペイントに使用されるGraphicsオブジェクトc - ペイントされるコンポーネントpaint(SynthContext,Graphics)public void paint(Graphics g, JComponent c)
このメソッドは、Synth Look & Feelで使用されません。 ペイントはpaint(SynthContext,Graphics)メソッドによって処理されます。
paint、クラスBasicScrollBarUIg - ペイントに使用されるGraphicsオブジェクトc - ペイントされるコンポーネントpaint(SynthContext,Graphics)protected void paint(SynthContext context, Graphics g)
context - ペイントされるコンポーネントのコンテキストg - ペイントに使用されるGraphicsオブジェクトupdate(Graphics,JComponent)public void paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
paintBorder、インタフェースSynthUIcontext - コンポーネント・コンテキストg - ペイントされるGraphicsx - X座標y - Y座標w - ボーダーの幅h - ボーダーの高さprotected void paintTrack(SynthContext context, Graphics g, Rectangle trackBounds)
context - ペイントされるコンポーネントのコンテキストg - ペイントに使用されるGraphicsオブジェクトtrackBounds - トラックのバウンディング・ボックスprotected void paintThumb(SynthContext context, Graphics g, Rectangle thumbBounds)
context - ペイントされるコンポーネントのコンテキストg - ペイントに使用されるGraphicsオブジェクトthumbBounds - サムのバウンディング・ボックスpublic Dimension getPreferredSize(JComponent c)
null以外)の推奨幅の最大値、およびつまみの最小幅です。 推奨される高さは、同じ部分の推奨される高さの総計です。 水平スクロール・バーの推奨されるサイズの原理も同様です。
preferredSizeは1回だけ計算されます。以後、このメソッドを呼び出すと、キャッシュに格納されたサイズ値が返されます。
getPreferredSize、クラスBasicScrollBarUIc - このメソッドを委譲しているJScrollBarBasicScrollBarUI.getMaximumSize(javax.swing.JComponent), ComponentUI.getMinimumSize(javax.swing.JComponent)protected Dimension getMinimumThumbSize()
警告: このメソッドが返す値は変更しないでください。これは共有される静的定数です。
getMinimumThumbSize、クラスBasicScrollBarUIBasicScrollBarUI.getMaximumThumbSize()protected JButton createDecreaseButton(int orientation)
createDecreaseButton、クラスBasicScrollBarUIprotected JButton createIncreaseButton(int orientation)
createIncreaseButton、クラスBasicScrollBarUIprotected void setThumbRollover(boolean active)
setThumbRollover、クラスBasicScrollBarUIactive - trueは、つまみが現在アクティブであることを示します。public void propertyChange(PropertyChangeEvent e)
PropertyChangeListenerpropertyChange、インタフェースPropertyChangeListenere - イベント・ソースと変更されたプロパティを記述したPropertyChangeEventオブジェクト。 バグまたは機能を送信
詳細なAPIリファレンスおよび開発者ドキュメントについては、Java SEのドキュメントを参照してください。 そのドキュメントには、概念的な概要、用語の定義、回避方法、有効なコード例などの、開発者を対象にしたより詳細な説明が含まれています。
Copyright © 1993, 2025, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Documentation Redistribution Policyも参照してください。