javax.swing.border
クラス EmptyBorder
java.lang.Object
|
+--javax.swing.border.AbstractBorder
|
+--javax.swing.border.EmptyBorder
- 直接の既知のサブクラス:
- BorderUIResource.EmptyBorderUIResource, MatteBorder
- public class EmptyBorder
- extends AbstractBorder
- implements Serializable
スペースを占めるが描画はしない、空の透過ボーダを提供するクラスです。
警告:
このクラスの直列化されたオブジェクトは、今後の Swing リリースと互換ではなくなる予定です。現在の直列化のサポートは、短期間の運用や、同じバージョンの Swing を実行するアプリケーション間の RMI に適しています。今後の Swing リリースでは、長期間の持続性をサポートする予定です。
- 関連項目:
- 直列化された形式
コンストラクタの概要 |
EmptyBorder(Insets insets)
指定された insets の値を持つ、空のボーダを作成します。 |
EmptyBorder(int top,
int left,
int bottom,
int right)
指定されたインセットを持つ、空のボーダを作成します。 |
クラス java.lang.Object から継承したメソッド |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
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
public EmptyBorder(Insets insets)
- 指定された insets の値を持つ、空のボーダを作成します。
- パラメータ:
insets
- ボーダのインセット
paintBorder
public void paintBorder(Component c,
Graphics g,
int x,
int y,
int width,
int height)
- デフォルトでは、描画を行いません。
- オーバーライド:
- クラス AbstractBorder 内の paintBorder
getBorderInsets
public Insets getBorderInsets(Component c)
- ボーダのインセットの値を返します。
- パラメータ:
c
- このボーダのインセットの値を適用するコンポーネント- オーバーライド:
- クラス AbstractBorder 内の getBorderInsets
getBorderInsets
public Insets getBorderInsets(Component c,
Insets insets)
- insets パラメータを、この Border の現在の Insets で初期化し直します。
- パラメータ:
c
- このボーダの insets の値を適用するコンポーネントinsets
- 初期化し直されるオブジェクト- オーバーライド:
- クラス AbstractBorder 内の getBorderInsets
isBorderOpaque
public boolean isBorderOpaque()
- このボーダが不透明かどうかを返します。デフォルトでは false を返します。
- オーバーライド:
- クラス AbstractBorder 内の isBorderOpaque
バグや機能要求の報告
新しい javadoc の表示についてのコメントやご提案
Java は、米国およびその他の国における米国 Sun Microsystems, Inc. の商標もしくは登録商標です。
Copyright 1993-1998 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.