|
Java プラットフォーム 1.2 |
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Object | +--javax.swing.border.AbstractBorder | +--javax.swing.border.BevelBorder
単純な 2 ラインの斜影ボーダを実装するクラスです。
警告: このクラスの直列化されたオブジェクトは、今後の Swing リリースと互換ではなくなる予定です。現在の直列化のサポートは、短期間の運用や、同じバージョンの Swing を実行するアプリケーション間の RMI に適しています。今後の Swing リリースでは、長期間の持続性をサポートする予定です。
フィールドの概要 | |
protected int |
bevelType
|
protected Color |
highlightInner
|
protected Color |
highlightOuter
|
static int |
LOWERED
くぼみ斜影のタイプです。 |
static int |
RAISED
浮き出し斜影のタイプです。 |
protected Color |
shadowInner
|
protected Color |
shadowOuter
|
コンストラクタの概要 | |
BevelBorder(int bevelType)
斜影ボーダを、指定されたタイプ、およびカラーで作成します。 |
|
BevelBorder(int bevelType,
Color highlight,
Color shadow)
斜影ボーダを、指定されたタイプ、ハイライト、および陰影カラーで作成します。 |
|
BevelBorder(int bevelType,
Color highlightOuter,
Color highlightInner,
Color shadowOuter,
Color shadowInner)
斜影ボーダを、指定されたタイプ、ハイライト、および陰影カラーで作成します。 |
メソッドの概要 | |
int |
getBevelType()
斜影ボーダのタイプを返します。 |
Insets |
getBorderInsets(Component c)
ボーダの insets の値を返します。 |
Insets |
getBorderInsets(Component c,
Insets insets)
insets パラメータを、この Border の現在の Insets で初期化し直します。 |
Color |
getHighlightInnerColor(Component c)
斜影ボーダの内側ハイライトのカラーを返します。 |
Color |
getHighlightOuterColor(Component c)
斜影ボーダの外側ハイライトのカラーを返します。 |
Color |
getShadowInnerColor(Component c)
斜影ボーダの内側陰影のカラーを返します。 |
Color |
getShadowOuterColor(Component c)
斜影ボーダの外側陰影のカラーを返します。 |
boolean |
isBorderOpaque()
ボーダが不透明かどうかを返します。 |
void |
paintBorder(Component c,
Graphics g,
int x,
int y,
int width,
int height)
指定されたコンポーネントのボーダを、指定された位置およびサイズでペイントします。 |
protected void |
paintLoweredBevel(Component c,
Graphics g,
int x,
int y,
int width,
int height)
|
protected void |
paintRaisedBevel(Component c,
Graphics g,
int x,
int y,
int width,
int height)
|
クラス javax.swing.border.AbstractBorder から継承したメソッド |
getInteriorRectangle,
getInteriorRectangle |
クラス java.lang.Object から継承したメソッド |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
フィールドの詳細 |
public static final int RAISED
public static final int LOWERED
protected int bevelType
protected Color highlightOuter
protected Color highlightInner
protected Color shadowInner
protected Color shadowOuter
コンストラクタの詳細 |
public BevelBorder(int bevelType)
bevelType
- ボーダに使う斜影のタイプpublic BevelBorder(int bevelType, Color highlight, Color shadow)
bevelType
- ボーダに使う斜影のタイプhighlight
- 斜影のハイライトに使うカラーshadow
- 斜影の陰影に使うカラーpublic BevelBorder(int bevelType, Color highlightOuter, Color highlightInner, Color shadowOuter, Color shadowInner)
bevelType
- ボーダに使う斜影のタイプhighlightOuter
- 斜影の外側のハイライトに使うカラーhighlightInner
- 斜影の内側のハイライトに使うカラーshadowOuter
- 斜影の外側の陰影に使うカラーshadowInner
- 斜影の内側の陰影に使うカラーメソッドの詳細 |
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
- このボーダの insets の値を適用するコンポーネントpublic Insets getBorderInsets(Component c, Insets insets)
c
- このボーダの insets の値を適用するコンポーネントinsets
- 初期化し直されるオブジェクトpublic Color getHighlightOuterColor(Component c)
public Color getHighlightInnerColor(Component c)
public Color getShadowInnerColor(Component c)
public Color getShadowOuterColor(Component c)
public int getBevelType()
public boolean isBorderOpaque()
protected void paintRaisedBevel(Component c, Graphics g, int x, int y, int width, int height)
protected void paintLoweredBevel(Component c, Graphics g, int x, int y, int width, int height)
|
Java プラットフォーム 1.2 |
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |