Java プラットフォーム 1.2

javax.swing.border
インタフェース Border

既知の実装クラスの一覧:
AbstractBorder, BorderUIResource, BasicBorders.SplitPaneBorder

public abstract interface Border

Swing コンポーネントの周囲にボーダを描画できるオブジェクトを記述するインタフェースです。

Swing コンポーネントセットでコンポーネントの周囲に装飾的領域、あるいは単なる区切りの領域を作成する手段としては、Insets ではなくボーダを使ってください。

使用上の注意:

関連項目:
EmptyBorder, CompoundBorder

メソッドの概要
 Insets getBorderInsets(Component c)
          ボーダのインセットの値を返します。
 boolean isBorderOpaque()
          ボーダが不透明かどうかを返します。
 void paintBorder(Component c, Graphics g, int x, int y, int width, int height)
          指定されたコンポーネントのボーダを、指定された位置およびサイズでペイントします。
 

メソッドの詳細

paintBorder

public void paintBorder(Component c,
                        Graphics g,
                        int x,
                        int y,
                        int width,
                        int height)
指定されたコンポーネントのボーダを、指定された位置およびサイズでペイントします。
パラメータ:
c - ボーダをペイントされるコンポーネント
g - ペイントのグラフィック
x - ペイントされるボーダの x 座標
y - ペイントされるボーダの y 座標
width - ペイントされるボーダの幅
height - ペイントされるボーダの高さ

getBorderInsets

public Insets getBorderInsets(Component c)
ボーダのインセットの値を返します。
パラメータ:
c - このボーダのインセットの値を適用するコンポーネント

isBorderOpaque

public boolean isBorderOpaque()
ボーダが不透明かどうかを返します。ボーダが不透明である場合、ボーダのバックグラウンドはペイント時にボーダ自身によって塗りつぶされます。

Java プラットフォーム 1.2

バグや機能要求の報告
新しい 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.