クラスBasicBorders.ButtonBorder

java.lang.Object
javax.swing.border.AbstractBorder
javax.swing.plaf.basic.BasicBorders.ButtonBorder
すべての実装されたインタフェース:
Serializable, Border, UIResource
直系の既知のサブクラス:
BasicBorders.RadioButtonBorder, BasicBorders.RolloverButtonBorder, BasicBorders.ToggleButtonBorder
含まれているクラス:
BasicBorders

public static class BasicBorders.ButtonBorder extends AbstractBorder implements UIResource
ボタンの周りにボーダーを描画します。
  • フィールドのサマリー

    フィールド
    修飾子と型
    フィールド
    説明
    protected Color
    暗い影の色。
    protected Color
    ハイライトの色。
    protected Color
    ライトのハイライトの色。
    protected Color
    影の色。
  • コンストラクタのサマリー

    コンストラクタ
    コンストラクタ
    説明
    ButtonBorder(Color shadow, Color darkShadow, Color highlight, Color lightHighlight)
    ButtonBorderの新しいインスタンスを構築します。
  • メソッドのサマリー

    クラスで宣言されたメソッド AbstractBorder

    getBaseline, getBaselineResizeBehavior, getBorderInsets, getBorderInsets, getInteriorRectangle, getInteriorRectangle, isBorderOpaque, paintBorder
    修飾子と型
    メソッド
    説明
    int
    getBaseline(Component c, int width, int height)
    ベースラインを返します。
    サイズの変化に合わせてコンポーネントのベースラインがどのように変化するかを示す列挙を返します。
    このデフォルトの実装は、AbstractBorder.getBorderInsets(Component,Insets)メソッドによって初期化される新しいInsetsオブジェクトを返します。
    インセット・パラメータを、このBorderの現在のイン・セットで初期化し直します。
    getInteriorRectangle(Component c, int x, int y, int width, int height)
    静的メソッドを呼び出す簡易メソッドです。
    static Rectangle
    getInteriorRectangle(Component c, Border b, int x, int y, int width, int height)
    ボーダーのイン・セットから引数の値を減算して矩形を返します。
    boolean
    このデフォルト実装はfalseを返します。
    void
    paintBorder(Component c, Graphics g, int x, int y, int width, int height)
    このデフォルト実装では、ペイントを行いません。

    クラスオブジェクトで宣言されたメソッド

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    修飾子と型
    メソッド
    説明
    protected Object
    このオブジェクトのコピーを作成して、返します。
    boolean
    このオブジェクトと他のオブジェクトが等しいかどうかを示します。
    protected void
    削除予定のため非推奨: このAPI要素は、将来のバージョンで削除される可能性があります。
    最終決定は非推奨であり、将来のリリースで削除される可能性があります。
    final Class<?>
    このObjectの実行時クラスを返します。
    int
    このオブジェクトに対するハッシュ・コード値を返します。
    final void
    このオブジェクトのモニターで待機中のスレッドを1つ再開します。
    final void
    このオブジェクトのモニターで待機中のすべてのスレッドを再開します。
    オブジェクトの文字列表現を返します。
    final void
    現在のスレッドが目覚めるまで待機します。通常、notifiedまたはinterruptedです。
    final void
    wait(long timeoutMillis)
    現在のスレッドは、通常、notifiedまたはinterruptedであるか、一定のリアルタイムが経過するまで、目覚めるまで待機します。
    final void
    wait(long timeoutMillis, int nanos)
    現在のスレッドは、通常、notifiedまたはinterruptedであるか、一定のリアルタイムが経過するまで、目覚めるまで待機します。
  • フィールド詳細

    • shadow

      protected Color shadow
      影の色。
    • darkShadow

      protected Color darkShadow
      暗い影の色。
    • highlight

      protected Color highlight
      ハイライトの色。
    • lightHighlight

      protected Color lightHighlight
      ライトのハイライトの色。
  • コンストラクタの詳細

    • ButtonBorder

      public ButtonBorder(Color shadow, Color darkShadow, Color highlight, Color lightHighlight)
      ButtonBorderの新しいインスタンスを構築します。
      パラメータ:
      shadow - 影の色
      darkShadow - 暗い影の色
      highlight - ハイライトの色
      lightHighlight - ハイライトの色