|
Java プラットフォーム 1.2 |
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Object | +--javax.swing.border.AbstractBorder
サイズ指定のない空のボーダを実装するクラスです。他のボーダのクラスを簡単に派生できる、便利な基底クラスを提供します。
警告: このクラスの直列化されたオブジェクトは、今後の Swing リリースと互換ではなくなる予定です。現在の直列化のサポートは、短期間の運用や、同じバージョンの Swing を実行するアプリケーション間の RMI に適しています。今後の Swing リリースでは、長期間の持続性をサポートする予定です。
コンストラクタの概要 | |
AbstractBorder()
|
メソッドの概要 | |
Insets |
getBorderInsets(Component c)
このデフォルト実装は getBorderMargins の値を返します。 |
Insets |
getBorderInsets(Component c,
Insets insets)
Border の現在の Insets で、insets パラメータを初期化し直します。 |
static Rectangle |
getInteriorRectangle(Component c,
Border b,
int x,
int y,
int width,
int height)
ボーダのインセットから引数の値を減算して矩形を返します。 |
Rectangle |
getInteriorRectangle(Component c,
int x,
int y,
int width,
int height)
static メソッドを呼び出す簡易メソッドです。 |
boolean |
isBorderOpaque()
このデフォルト実装は false を返します。 |
void |
paintBorder(Component c,
Graphics g,
int x,
int y,
int width,
int height)
このデフォルト実装では、ペイントを行いません。 |
クラス java.lang.Object から継承したメソッド |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
コンストラクタの詳細 |
public AbstractBorder()
メソッドの詳細 |
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height)
public Insets getBorderInsets(Component c)
public Insets getBorderInsets(Component c, Insets insets)
c
- このボーダの insets の値が適用されるコンポーネントinsets
- 初期化し直されるオブジェクトpublic boolean isBorderOpaque()
public Rectangle getInteriorRectangle(Component c, int x, int y, int width, int height)
public static Rectangle getInteriorRectangle(Component c, Border b, int x, int y, int width, int height)
|
Java プラットフォーム 1.2 |
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |