- java.lang.Object
-
- javax.swing.border.AbstractBorder
-
- javax.swing.border.BevelBorder
-
- javax.swing.border.SoftBevelBorder
-
- すべての実装されたインタフェース:
Serializable
,Border
public class SoftBevelBorder extends BevelBorder
角の丸い浮き出し斜影ボーダーまたはくぼみ斜影ボーダーを実装するクラスです。警告: このクラスの直列化されたオブジェクトは、今後のSwingリリースと互換ではなくなる予定です。 現在の直列化のサポートは、短期間の格納や、同じバージョンのSwingを実行するアプリケーション間のRMIに適しています。 1.4以降、すべてのJavaBeans™用の長期間の格納サポートが
java.beans
パッケージに追加されています。XMLEncoder
を参照してください。
-
-
フィールドのサマリー
-
クラス javax.swing.border.BevelBorderで宣言されたフィールド
bevelType, highlightInner, highlightOuter, LOWERED, RAISED, shadowInner, shadowOuter
-
-
コンストラクタのサマリー
コンストラクタ コンストラクタ 説明 SoftBevelBorder(int bevelType)
指定されたタイプの斜影ボーダーを作成します。ボーダーのカラーは、paintBorderメソッドに渡されるコンポーネントのバックグラウンド・カラーから派生します。SoftBevelBorder(int bevelType, Color highlight, Color shadow)
斜影ボーダーを、指定されたタイプ、ハイライトおよび陰影のカラーで作成します。SoftBevelBorder(int bevelType, Color highlightOuterColor, Color highlightInnerColor, Color shadowOuterColor, Color shadowInnerColor)
斜影ボーダーを、指定されたタイプ、ハイライトおよび陰影のカラーで作成します。
-
メソッドのサマリー
修飾子と型 メソッド 説明 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.BevelBorderで宣言されたメソッド
getBevelType, getHighlightInnerColor, getHighlightInnerColor, getHighlightOuterColor, getHighlightOuterColor, getShadowInnerColor, getShadowInnerColor, getShadowOuterColor, getShadowOuterColor, paintLoweredBevel, paintRaisedBevel
-
クラス javax.swing.border.AbstractBorderで宣言されたメソッド
getBaseline, getBaselineResizeBehavior, getBorderInsets, getInteriorRectangle, getInteriorRectangle
-
-
-
-
コンストラクタの詳細
-
SoftBevelBorder
public SoftBevelBorder(int bevelType)
指定されたタイプの斜影ボーダーを作成します。ボーダーのカラーは、paintBorderメソッドに渡されるコンポーネントのバックグラウンド・カラーから派生します。- パラメータ:
bevelType
- ボーダーの斜影のタイプ
-
SoftBevelBorder
public SoftBevelBorder(int bevelType, Color highlight, Color shadow)
斜影ボーダーを、指定されたタイプ、ハイライトおよび陰影のカラーで作成します。- パラメータ:
bevelType
- ボーダーの斜影のタイプhighlight
- 斜影のハイライトに使うカラーshadow
- 斜影の陰影に使うカラー
-
SoftBevelBorder
@ConstructorProperties({"bevelType","highlightOuterColor","highlightInnerColor","shadowOuterColor","shadowInnerColor"}) public SoftBevelBorder(int bevelType, Color highlightOuterColor, Color highlightInnerColor, Color shadowOuterColor, Color shadowInnerColor)
斜影ボーダーを、指定されたタイプ、ハイライトおよび陰影のカラーで作成します。- パラメータ:
bevelType
- ボーダーの斜影のタイプhighlightOuterColor
- 斜影の外側ハイライトに使うカラーhighlightInnerColor
- 斜影の内側ハイライトに使うカラーshadowOuterColor
- 斜影の外側陰影に使うカラーshadowInnerColor
- 斜影の内側陰影に使うカラー
-
-
メソッドの詳細
-
paintBorder
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height)
指定されたコンポーネントのボーダーを、指定された位置およびサイズでペイントします。- 定義:
paintBorder
、インタフェース:Border
- オーバーライド:
paintBorder
、クラス:BevelBorder
- パラメータ:
c
- このボーダーがペイントされるコンポーネントg
- ペイント・グラフィックスx
- ペイントされるボーダーのx座標y
- ペイントされるボーダーのy座標width
- ペイントされるボーダーの幅height
- ペイントされるボーダーの高さ
-
getBorderInsets
public Insets getBorderInsets(Component c, Insets insets)
insetsパラメータを、このBorderの現在のInsetsで初期化し直します。- オーバーライド:
getBorderInsets
、クラス:BevelBorder
- パラメータ:
c
- このボーダーのイン・セットの値を適用するコンポーネントinsets
- 初期化し直されるオブジェクト- 戻り値:
insets
オブジェクト
-
isBorderOpaque
public boolean isBorderOpaque()
ボーダーが不透明かどうかを返します。- 定義:
isBorderOpaque
、インタフェース:Border
- オーバーライド:
isBorderOpaque
、クラス:BevelBorder
- 戻り値:
- true
-
-