|
Java プラットフォーム 1.2 |
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
Swing コンポーネントの周囲にボーダを描画できるオブジェクトを記述するインタフェースです。
Swing コンポーネントセットでコンポーネントの周囲に装飾的領域、あるいは単なる区切りの領域を作成する手段としては、Insets ではなくボーダを使ってください。
使用上の注意:
setInsets
が置き換えられる
EmptyBorder
,
CompoundBorder
メソッドの概要 | |
Insets |
getBorderInsets(Component c)
ボーダのインセットの値を返します。 |
boolean |
isBorderOpaque()
ボーダが不透明かどうかを返します。 |
void |
paintBorder(Component c,
Graphics g,
int x,
int y,
int width,
int height)
指定されたコンポーネントのボーダを、指定された位置およびサイズでペイントします。 |
メソッドの詳細 |
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height)
c
- ボーダをペイントされるコンポーネントg
- ペイントのグラフィックx
- ペイントされるボーダの x 座標y
- ペイントされるボーダの y 座標width
- ペイントされるボーダの幅height
- ペイントされるボーダの高さpublic Insets getBorderInsets(Component c)
c
- このボーダのインセットの値を適用するコンポーネントpublic boolean isBorderOpaque()
|
Java プラットフォーム 1.2 |
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |