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

クラスEmptyBorder

  • すべての実装されたインタフェース:
    Serializable, Border
    直系の既知のサブクラス:
    BorderUIResource.EmptyBorderUIResource, MatteBorder

    public class EmptyBorder
    extends AbstractBorder
    implements Serializable
    スペースを占めるが描画はしない、空の透過ボーダーを提供するクラスです。

    警告: このクラスの直列化されたオブジェクトは、今後のSwingリリースと互換ではなくなる予定です。 現在の直列化のサポートは、短期間の格納や、同じバージョンのSwingを実行するアプリケーション間のRMIに適しています。 1.4以降、すべてのJavaBeans™用の長期間の格納サポートがjava.beansパッケージに追加されています。 XMLEncoderを参照してください。

    関連項目:
    直列化された形式
    • フィールドの詳細

      • left

        protected int left
        ボーダーの左の挿入図。
      • right

        protected int right
        ボーダーの右の挿入図。
      • top

        protected int top
        ボーダーの上の挿入図。
      • bottom

        protected int bottom
        ボーダーの下の挿入図。
    • コンストラクタの詳細

      • EmptyBorder

        public EmptyBorder​(int top,
                           int left,
                           int bottom,
                           int right)
        指定されたイン・セットの値を持つ、空のボーダーを作成します。
        パラメータ:
        top - ボーダーの上イン・セット
        left - ボーダーの左イン・セット
        bottom - ボーダーの下イン・セット
        right - ボーダーの右イン・セット
      • EmptyBorder

        @ConstructorProperties("borderInsets")
        public EmptyBorder​(Insets borderInsets)
        指定されたイン・セットの値を持つ、空のボーダーを作成します。
        パラメータ:
        borderInsets - ボーダーのイン・セット
    • メソッドの詳細

      • paintBorder

        public void paintBorder​(Component c,
                                Graphics g,
                                int x,
                                int y,
                                int width,
                                int height)
        デフォルトでは、描画を行いません。
        定義:
        paintBorder、インタフェースBorder
        オーバーライド:
        paintBorder、クラスAbstractBorder
        パラメータ:
        c - このボーダーがペイントされるコンポーネント
        g - ペイント・グラフィックス
        x - ペイントされるボーダーのx座標
        y - ペイントされるボーダーのy座標
        width - ペイントされるボーダーの幅
        height - ペイントされるボーダーの高さ
      • getBorderInsets

        public Insets getBorderInsets​(Component c,
                                      Insets insets)
        insetsパラメータを、このBorderの現在のInsetsで初期化し直します。
        オーバーライド:
        getBorderInsets、クラスAbstractBorder
        パラメータ:
        c - このボーダーのイン・セットの値を適用するコンポーネント
        insets - 初期化し直されるオブジェクト
        戻り値:
        insetsオブジェクト
      • getBorderInsets

        public Insets getBorderInsets()
        ボーダーのイン・セットを返します。
        戻り値:
        上、左、下、右のインセットを含むInsetsオブジェクト
        導入されたバージョン:
        1.3
      • isBorderOpaque

        public boolean isBorderOpaque()
        ボーダーが不透明かどうかを返します。 デフォルトではfalseを返します。
        定義:
        isBorderOpaque、インタフェースBorder
        オーバーライド:
        isBorderOpaque、クラスAbstractBorder
        戻り値:
        false