クラスMetalScrollBarUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.ScrollBarUI
javax.swing.plaf.basic.BasicScrollBarUI
javax.swing.plaf.metal.MetalScrollBarUI
- すべての実装されたインタフェース:
LayoutManager, SwingConstants
public class MetalScrollBarUI extends BasicScrollBarUI
Metal Look & Feelのための、ScrollBarUIの実装です。
-
ネストされたクラスのサマリー
クラスBasicScrollBarUIで宣言されたネストされたクラス/インタフェース
BasicScrollBarUI.ArrowButtonListener, BasicScrollBarUI.ModelListener, BasicScrollBarUI.PropertyChangeHandler, BasicScrollBarUI.ScrollListener, BasicScrollBarUI.TrackListener修飾子と型クラス説明protected classカーソル・キーのリスナーです。protected classモデル変更を待機するリスナーです。classプロパティ変更ハンドラprotected classScrollPaneで開始されるスクロール・イベントのためのリスナーです。protected classマウス・ドラッグを追跡します。 -
フィールドのサマリー
フィールド修飾子と型フィールド説明protected MetalScrollButton「減少」ボタン。static final StringプロパティJScrollBar.isFreeStanding。protected MetalScrollButton増加ボタン。protected booleanプロパティJScrollBar.isFreeStandingの値。protected intスクロール・バーの幅。クラスで宣言されたフィールド BasicScrollBarUI
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, trackRect修飾子と型フィールド説明protected BasicScrollBarUI.ArrowButtonListenerボタン・リスナーprotected JButtonボタンprotected static final int強調表示を減らすprotected int減分ボタンとトラックの間の距離。protected JButtonインクリメント・ボタンprotected static final intハイライトを上げるprotected int増分ボタンとトラックの間の距離。protected booleanドラッグprotected Dimensionサムの最大サイズprotected Dimension最小のサムのサイズprotected BasicScrollBarUI.ModelListenerモデル・リスナーprotected static final intハイライトなしprotected PropertyChangeListenerプロパティ変更リスナーprotected JScrollBarScrollbarprotected BasicScrollBarUI.ScrollListenerスクロール・リスナーprotected Timerスクロール・タイマーprotected Colorサムの暗い影の色protected Colorサムの光の影の色protected Rectangleサムの矩形protected Colorトラックの色protected intトラックのハイライトprotected Colorトラックのハイライト・カラーprotected BasicScrollBarUI.TrackListenerトラック・リスナーprotected Rectangleトラック矩形インタフェースで宣言されたフィールド SwingConstants
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST修飾子と型フィールド説明static final intボックスの下端を指定するために使用するボックス配置定数です。static final int領域内の中央位置です。static final int東(右)の方角です。static final int水平方向です。static final int左から右に記述する言語および右から左に記述する言語で使用するテキストのリーディング・エッジを指定します。static final intボックスの左端を指定するために使用するボックス配置定数です。static final intシーケンス内の次の方向を指定します。static final int北(上)の方角です。static final int北東(右上)の方角です。static final int北西(左上)の方角です。static final intシーケンス内の前の方向を指定します。static final intボックスの右端を指定するために使用するボックス配置定数です。static final int南(下)の方角です。static final int南東(右下)の方角です。static final int南西(左下)の方角です。static final intボックスの上端を指定するために使用するボックス配置定数です。static final int左から右に記述する言語および右から左に記述する言語で使用するテキストのトレーリング・エッジを指定します。static final int垂直方向です。static final int西(左)の方角です。 -
コンストラクタのサマリー
コンストラクタ -
メソッドのサマリー
修飾子と型メソッド説明protected JButtoncreateDecreaseButton(int orientation) 縮小ビューを表すビューを返します。protected JButtoncreateIncreaseButton(int orientation) 拡大ビューを表すビューを返します。static ComponentUI新しいMetalScrollBarUIインスタンスを構築します。protected voidsetThumbBounds(int x, int y, int width, int height) 無効な領域を拡大するときだけに、オーバーライドされます。クラスで宣言されたメソッド BasicScrollBarUI
addLayoutComponent, configureScrollBarColors, createArrowButtonListener, createModelListener, createPropertyChangeListener, createScrollListener, createTrackListener, getMaximumSize, getMaximumThumbSize, getMinimumThumbSize, getPreferredSize, getSupportsAbsolutePositioning, getThumbBounds, getTrackBounds, installComponents, installDefaults, installKeyboardActions, installListeners, installUI, isThumbRollover, layoutContainer, layoutHScrollbar, layoutVScrollbar, minimumLayoutSize, paintDecreaseHighlight, paintIncreaseHighlight, paintThumb, paintTrack, preferredLayoutSize, removeLayoutComponent, scrollByBlock, scrollByUnit, setThumbRollover, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUI修飾子と型メソッド説明voidaddLayoutComponent(String name, Component child) レイアウト・マネージャがコンポーネントごとの文字列を使用する場合は、レイアウトにコンポーネントcompを追加し、それをnameによって指定された文字列に関連付けます。protected voidスクロール・バーの色を構成します。protected BasicScrollBarUI.ArrowButtonListener矢印ボタン・リスナーを作成します。protected BasicScrollBarUI.ModelListenerモデル・リスナーを作成します。protected PropertyChangeListenerプロパティ変更リスナーを作成します。protected BasicScrollBarUI.ScrollListenerスクロール・リスナーを作成します。protected BasicScrollBarUI.TrackListenerトラック・リスナーを作成します。指定されたコンポーネントの、Look & Feelに適した最大サイズを返します。protected Dimensionつまみに許容される最大のサイズを返します。protected Dimensionつまみに許容される最小のサイズを返します。垂直スクロール・バーの推奨幅は、増分ボタンと減分ボタン(null以外)の推奨幅の最大値、およびつまみの最小幅です。booleanユーザーがマウス・ジェスチャ(通常はマウスの中央ボタン)を使ってつまみを絶対位置指定できるかどうかを示します。protected Rectangleつまみの現在のサイズ/位置を返します。protected Rectangleトラックの現在の境界(増分ボタンと減分ボタンの間のスペース - イン・セット)を返します。protected voidコンポーネントを取り付けます。protected voidデフォルトをインストールします。protected voidキーボード操作をインストールします。protected voidリスナーをインストールします。voidUIをインストールします。booleanマウスが現在つまみの上にある場合にtrueを返します。voidlayoutContainer(Container scrollbarContainer) 指定されたコンテナを配置します。protected void水平スクロール・バーをレイアウトします。protected void垂直スクロール・バーをレイアウトします。minimumLayoutSize(Container scrollbarContainer) 指定されたコンテナに含まれているコンポーネントを基に、コンテナの最小サイズを計算します。protected void減少ハイライトをペイントします。protected void増加ハイライトをペイントします。protected voidpaintThumb(Graphics g, JComponent c, Rectangle thumbBounds) サムを塗ります。protected voidpaintTrack(Graphics g, JComponent c, Rectangle trackBounds) トラックをペイントします。preferredLayoutSize(Container scrollbarContainer) 指定されたコンテナに含まれているコンポーネントを基に、コンテナの推奨サイズを計算します。voidremoveLayoutComponent(Component child) 指定されたコンポーネントをレイアウトから削除します。protected voidscrollByBlock(int direction) ブロックごとにスクロールします。protected voidscrollByUnit(int direction) 単位でスクロールします。protected voidsetThumbRollover(boolean active) マウスが現在つまみの上にあるかどうかを設定します。protected voidコンポーネントをアンインストールします。protected voidデフォルトをアンインストールします。protected voidキーボード操作をアンインストールします。protected voidリスナーをアンインストールします。voidUIをアンインストールします。クラスで宣言されたメソッド ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMinimumSize, paint, update修飾子と型メソッド説明booleancontains(JComponent c, int x, int y) 指定された x,yの位置が、指定されたコンポーネントのLook & Feel定義の形状内にある場合は、trueを返します。getAccessibleChild(JComponent c, int i) オブジェクトのi番目のAccessibleの子を返します。intオブジェクト内のアクセシビリティ対応の子の数を返します。intgetBaseline(JComponent c, int width, int height) ベースラインを返します。サイズの変化に合わせてコンポーネントのベースラインがどのように変化するかを示す列挙を返します。指定されたコンポーネントの、Look & Feelに適した最小サイズを返します。voidpaint(Graphics g, JComponent c) 指定されたコンポーネントをLook & Feelに合わせてペイントします。voidupdate(Graphics g, JComponent c) 指定されたコンポーネントをペイントする時間になったことを、このUI委譲に通知します。クラスオブジェクトで宣言されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait修飾子と型メソッド説明protected Objectclone()このオブジェクトのコピーを作成して、返します。booleanこのオブジェクトと他のオブジェクトが等しいかどうかを示します。protected voidfinalize()削除予定のため非推奨: このAPI要素は、将来のバージョンで削除される可能性があります。最終決定は非推奨であり、将来のリリースで削除される可能性があります。final Class<?> getClass()このObjectの実行時クラスを返します。inthashCode()このオブジェクトに対するハッシュ・コード値を返します。final voidnotify()このオブジェクトのモニターで待機中のスレッドを1つ再開します。final voidこのオブジェクトのモニターで待機中のすべてのスレッドを再開します。toString()オブジェクトの文字列表現を返します。final voidwait()現在のスレッドが目覚めるまで待機します。通常、notifiedまたはinterruptedです。final voidwait(long timeoutMillis) 現在のスレッドは、通常、notifiedまたはinterruptedであるか、一定のリアルタイムが経過するまで、目覚めるまで待機します。final voidwait(long timeoutMillis, int nanos) 現在のスレッドは、通常、notifiedまたはinterruptedであるか、一定のリアルタイムが経過するまで、目覚めるまで待機します。
-
フィールド詳細
-
increaseButton
protected MetalScrollButton increaseButton増加ボタン。 -
decreaseButton
protected MetalScrollButton decreaseButton「減少」ボタン。 -
scrollBarWidth
protected int scrollBarWidthスクロール・バーの幅。 -
FREE_STANDING_PROP
-
isFreeStanding
protected boolean isFreeStandingプロパティJScrollBar.isFreeStandingの値。
-
-
コンストラクタの詳細
-
MetalScrollBarUI
public MetalScrollBarUI()MetalScrollBarUIを構築します。
-
-
メソッドの詳細
-
createUI
public static ComponentUI createUI(JComponent c) 新しいMetalScrollBarUIインスタンスを構築します。- パラメータ:
c- コンポーネント- 戻り値:
- 新しい
MetalScrollBarUIインスタンス
-
createDecreaseButton
protected JButton createDecreaseButton(int orientation) 縮小ビューを表すビューを返します。- オーバーライド:
createDecreaseButton、クラスBasicScrollBarUI- パラメータ:
orientation- オリエンテーション- 戻り値:
- 減少ボタン
-
createIncreaseButton
protected JButton createIncreaseButton(int orientation) 拡大ビューを表すビューを返します。- オーバーライド:
createIncreaseButton、クラスBasicScrollBarUI- パラメータ:
orientation- オリエンテーション- 戻り値:
- 増加ボタン
-
setThumbBounds
protected void setThumbBounds(int x, int y, int width, int height) 無効な領域を拡大するときだけに、オーバーライドされます。 これはサムの下にある陰影を無効にします。- オーバーライド:
setThumbBounds、クラスBasicScrollBarUI- パラメータ:
x- サムのxロケーションを設定y- サムのyのロケーションを設定width- サムの幅を設定height- サムの高さを設定- 関連項目:
-