public class BevelBorder extends AbstractBorder
警告: このクラスの直列化されたオブジェクトは、今後のSwingリリースと互換ではなくなる予定です。 現在の直列化のサポートは、短期間の格納や、同じバージョンのSwingを実行するアプリケーション間のRMIに適しています。 1.4以降、すべてのJavaBeans™用の長期間の格納サポートがjava.beans
パッケージに追加されています。 XMLEncoder
を参照してください。
修飾子と型 | フィールド | 説明 |
---|---|---|
protected int |
bevelType |
|
protected Color |
highlightInner |
|
protected Color |
highlightOuter |
|
static int |
LOWERED |
くぼみ斜影のタイプです。
|
static int |
RAISED |
浮出し斜影のタイプです。
|
protected Color |
shadowInner |
|
protected Color |
shadowOuter |
コンストラクタ | 説明 |
---|---|
BevelBorder(int bevelType) |
指定されたタイプの斜影ボーダーを作成します。ボーダーのカラーは、paintBorderメソッドに渡されるコンポーネントのバックグラウンド・カラーから派生します。
|
BevelBorder(int bevelType, Color highlight, Color shadow) |
斜影ボーダーを、指定されたタイプ、ハイライトおよび陰影のカラーで作成します。
|
BevelBorder(int bevelType, Color highlightOuterColor, Color highlightInnerColor, Color shadowOuterColor, Color shadowInnerColor) |
斜影ボーダーを、指定されたタイプ、ハイライトおよび陰影のカラーで作成します。
|
修飾子と型 | メソッド | 説明 |
---|---|---|
int |
getBevelType() |
斜影ボーダーのタイプを返します。
|
Insets |
getBorderInsets(Component c, Insets insets) |
insetsパラメータを、このBorderの現在のInsetsで初期化し直します。
|
Color |
getHighlightInnerColor() |
斜影ボーダーの内側ハイライトのカラーを返します。
|
Color |
getHighlightInnerColor(Component c) |
指定されたコンポーネントにレンダリングされたときの斜影ボーダーの内側ハイライト・カラーを返します。
|
Color |
getHighlightOuterColor() |
斜影ボーダーの外側ハイライトのカラーを返します。
|
Color |
getHighlightOuterColor(Component c) |
指定されたコンポーネントにレンダリングされたときの斜影ボーダーの外側ハイライト・カラーを返します。
|
Color |
getShadowInnerColor() |
斜影ボーダーの内側陰影のカラーを返します。
|
Color |
getShadowInnerColor(Component c) |
指定されたコンポーネント・レンダリングされたときの斜影ボーダーの内側シャドウ・カラーを返します。
|
Color |
getShadowOuterColor() |
斜影ボーダーの外側陰影のカラーを返します。
|
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) |
getBaseline, getBaselineResizeBehavior, getBorderInsets, getInteriorRectangle, getInteriorRectangle
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
- 斜影の陰影に使うカラー@ConstructorProperties(value={"bevelType","highlightOuterColor","highlightInnerColor","shadowOuterColor","shadowInnerColor"}) public BevelBorder(int bevelType, Color highlightOuterColor, Color highlightInnerColor, Color shadowOuterColor, Color shadowInnerColor)
bevelType
- ボーダーの斜影のタイプhighlightOuterColor
- 斜影の外側ハイライトに使うカラーhighlightInnerColor
- 斜影の内側ハイライトに使うカラーshadowOuterColor
- 斜影の外側陰影に使うカラーshadowInnerColor
- 斜影の内側陰影に使うカラーpublic void paintBorder(Component c, Graphics g, int x, int y, int width, int height)
paintBorder
、インタフェースBorder
paintBorder
、クラスAbstractBorder
c
- このボーダーがペイントされるコンポーネントg
- ペイント・グラフィックスx
- ペイントされるボーダーのx座標y
- ペイントされるボーダーのy座標width
- ペイントされるボーダーの幅height
- ペイントされるボーダーの高さpublic Insets getBorderInsets(Component c, Insets insets)
getBorderInsets
、クラスAbstractBorder
c
- このボーダーのイン・セットの値を適用するコンポーネントinsets
- 初期化し直されるオブジェクトinsets
オブジェクトpublic Color getHighlightOuterColor(Component c)
c
- ハイライトが派生するコンポーネントpublic Color getHighlightInnerColor(Component c)
c
- ハイライトが派生するコンポーネントpublic Color getShadowInnerColor(Component c)
c
- 陰影が派生するコンポーネントpublic Color getShadowOuterColor(Component c)
c
- 陰影が派生するコンポーネントpublic Color getHighlightOuterColor()
public Color getHighlightInnerColor()
public Color getShadowInnerColor()
public Color getShadowOuterColor()
public int getBevelType()
public boolean isBorderOpaque()
isBorderOpaque
、インタフェースBorder
isBorderOpaque
、クラスAbstractBorder
protected void paintRaisedBevel(Component c, Graphics g, int x, int y, int width, int height)
バグまたは機能を送信
詳細なAPIリファレンスおよび開発者ドキュメントについては、Java SEのドキュメントを参照してください。 そのドキュメントには、概念的な概要、用語の定義、回避方法、有効なコード例などの、開発者を対象にしたより詳細な説明が含まれています。
Copyright © 1993, 2025, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Documentation Redistribution Policyも参照してください。