モジュール java.desktop
パッケージ javax.swing.plaf.metal

クラスMetalScrollBarUI

すべての実装されたインタフェース:
LayoutManager, SwingConstants

public class MetalScrollBarUI extends BasicScrollBarUI
Metal Look & Feelのための、ScrollBarUIの実装です。
  • フィールド詳細

    • increaseButton

      protected MetalScrollButton increaseButton
      増加ボタン。
    • decreaseButton

      protected MetalScrollButton decreaseButton
      「減少」ボタン。
    • scrollBarWidth

      protected int scrollBarWidth
      スクロール・バーの幅。
    • FREE_STANDING_PROP

      public static final String FREE_STANDING_PROP
      プロパティJScrollBar.isFreeStanding
      関連項目:
    • 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 - サムの高さを設定
      関連項目: