| 
JavaTM 2 Platform Standard Ed. 5.0  | 
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectjavax.swing.border.AbstractBorder
javax.swing.border.EtchedBorder
public class EtchedBorder
簡単なエッチングボーダを実装するクラスです。浮き彫りエッチング、あるいは彫り込みエッチングのどちらも可能です。ボーダを作成するときにハイライトまたは陰影のカラーが初期化されない場合は、paintBorder() メソッドに渡されるコンポーネント引数によるバックグラウンドカラーから動的に派生します。
警告: このクラスの直列化されたオブジェクトは、今後の Swing リリースと互換ではなくなる予定です。現在の直列化のサポートは、短期間の運用や、同じバージョンの Swing を実行するアプリケーション間の RMI に適しています。JDK バージョン 1.4 以降、すべての JavaBeans™ の長期間の運用サポートは、java.beans パッケージに追加されています。詳細は、XMLEncoder を参照してください。
| フィールドの概要 | |
|---|---|
protected  int | 
etchType
 | 
protected  Color | 
highlight
 | 
static int | 
LOWERED
彫り込みエッチングのタイプです。  | 
static int | 
RAISED
浮き彫りエッチングのタイプです。  | 
protected  Color | 
shadow
 | 
| コンストラクタの概要 | |
|---|---|
EtchedBorder()
彫り込みエッチングボーダを作成します。  | 
|
EtchedBorder(Color highlight,
             Color shadow)
彫り込みエッチングボーダを、指定されたハイライトおよび陰影のカラーで作成します。  | 
|
EtchedBorder(int etchType)
指定されたタイプのエッチングボーダを作成します。  | 
|
EtchedBorder(int etchType,
             Color highlight,
             Color shadow)
エッチングボーダを、指定されたタイプ、ハイライトおよび陰影のカラーで作成します。  | 
|
| メソッドの概要 | |
|---|---|
 Insets | 
getBorderInsets(Component c)
ボーダのインセットの値を返します。  | 
 Insets | 
getBorderInsets(Component c,
                Insets insets)
insets パラメータを、この Border の現在の Insets で初期化し直します。  | 
 int | 
getEtchType()
エッチングボーダに指定されているエッチングのタイプを返します。  | 
 Color | 
getHighlightColor()
エッチングボーダのハイライトのカラーを返します。  | 
 Color | 
getHighlightColor(Component c)
指定されたコンポーネントに描画されたときにエッチングボーダのハイライトのカラーを返します。  | 
 Color | 
getShadowColor()
エッチングボーダの陰影のカラーを返します。  | 
 Color | 
getShadowColor(Component c)
指定されたコンポーネントに描画されたときにエッチングボーダの陰影のカラーを返します。  | 
 boolean | 
isBorderOpaque()
ボーダが不透明かどうかを返します。  | 
 void | 
paintBorder(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 etchType
protected Color highlight
protected Color shadow
| コンストラクタの詳細 | 
|---|
public EtchedBorder()
public EtchedBorder(int etchType)
etchType - ボーダが描画するエッチングのタイプ
public EtchedBorder(Color highlight,
                    Color shadow)
highlight - エッチングのハイライトに使うカラーshadow - エッチングの陰影に使うカラー
public EtchedBorder(int etchType,
                    Color highlight,
                    Color shadow)
etchType - ボーダが描画するエッチングのタイプhighlight - エッチングのハイライトに使うカラーshadow - エッチングの陰影に使うカラー| メソッドの詳細 | 
|---|
public void paintBorder(Component c,
                        Graphics g,
                        int x,
                        int y,
                        int width,
                        int height)
Border 内の paintBorderAbstractBorder 内の paintBorderc - このボーダがペイントされるコンポーネントg - ペイントのグラフィックスx - ペイントされたボーダの x 座標y - ペイントされたボーダの y 座標width - ペイントされたボーダの幅height - ペイントされたボーダの高さpublic Insets getBorderInsets(Component c)
Border 内の getBorderInsetsAbstractBorder 内の getBorderInsetsc - このボーダのインセットの値を適用するコンポーネント
Insets オブジェクト
public Insets getBorderInsets(Component c,
                              Insets insets)
AbstractBorder 内の getBorderInsetsc - このボーダのインセットの値を適用するコンポーネントinsets - 初期化し直されるオブジェクト
insets オブジェクトpublic boolean isBorderOpaque()
Border 内の isBorderOpaqueAbstractBorder 内の isBorderOpaquepublic int getEtchType()
public Color getHighlightColor(Component c)
c - ハイライトが派生するコンポーネントpublic Color getHighlightColor()
public Color getShadowColor(Component c)
c - 陰影が派生するコンポーネントpublic Color getShadowColor()
  | 
JavaTM 2 Platform Standard Ed. 5.0  | 
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Documentation Redistribution Policy も参照してください。