java.lang.Object
javax.swing.border.AbstractBorder
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
を参照してください。
-
フィールドのサマリー
-
コンストラクタのサマリー
コンストラクタ コンストラクタ 説明 EmptyBorder(int top, int left, int bottom, int right)
指定されたイン・セットの値を持つ、空のボーダーを作成します。EmptyBorder(Insets borderInsets)
指定されたイン・セットの値を持つ、空のボーダーを作成します。 -
メソッドのサマリー
修飾子と型 メソッド 説明 Insets
getBorderInsets()
ボーダーのイン・セットを返します。Insets
getBorderInsets(Component c, Insets insets)
insetsパラメータを、このBorderの現在のInsetsで初期化し直します。boolean
isBorderOpaque()
ボーダーが不透明かどうかを返します。void
paintBorder(Component c, Graphics g, int x, int y, int width, int height)
デフォルトでは、描画を行いません。クラス javax.swing.border.AbstractBorderで宣言されたメソッド
getBaseline, getBaselineResizeBehavior, getBorderInsets, getInteriorRectangle, getInteriorRectangle
-
フィールド詳細
-
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
デフォルトでは、描画を行いません。- 定義:
paintBorder
、インタフェース:Border
- オーバーライド:
paintBorder
、クラス:AbstractBorder
- パラメータ:
c
- このボーダーがペイントされるコンポーネントg
- ペイント・グラフィックスx
- ペイントされるボーダーのx座標y
- ペイントされるボーダーのy座標width
- ペイントされるボーダーの幅height
- ペイントされるボーダーの高さ
-
getBorderInsets
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
-