|
JavaTM 2 Platform Std. Ed. v1.3 |
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Object | +--javax.swing.border.AbstractBorder
サイズ指定のない空のボーダを実装するクラスです。他のボーダのクラスを簡単に派生できる、便利な基底クラスを提供します。
警告: このクラスの直列化されたオブジェクトは、今後の Swing リリースと互換ではなくなる予定です。現在の直列化のサポートは、短期間の運用や、同じバージョンの Swing を実行するアプリケーション間の RMI に適しています。今後の Swing リリースでは、長期間の持続性をサポートする予定です。
コンストラクタの概要 | |
AbstractBorder()
|
メソッドの概要 | |
Insets |
getBorderInsets(Component c)
このデフォルト実装は getBorderMargins の値を返します。 |
Insets |
getBorderInsets(Component c,
Insets insets)
インセットパラメータを、この Border の現在のインセットで初期化し直します。 |
static Rectangle |
getInteriorRectangle(Component c,
Border b,
int x,
int y,
int width,
int height)
ボーダのインセットから引数の値を減算して矩形を返します。 |
Rectangle |
getInteriorRectangle(Component c,
int x,
int y,
int width,
int height)
静的メソッドを呼び出す簡易メソッドです。 |
boolean |
isBorderOpaque()
このデフォルト実装は false を返します。 |
void |
paintBorder(Component c,
Graphics g,
int x,
int y,
int width,
int height)
このデフォルト実装では、ペイントを行いません。 |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
コンストラクタの詳細 |
public AbstractBorder()
メソッドの詳細 |
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height)
Border
内の paintBorder
javax.swing.border.Border
からコピーされたタグ:c
- このボーダがペイントされるコンポーネントg
- ペイントのグラフィックスx
- ペイントされたボーダの x 座標y
- ペイントされたボーダの y 座標width
- ペイントされたボーダの幅height
- ペイントされたボーダの高さpublic Insets getBorderInsets(Component c)
Border
内の getBorderInsets
javax.swing.border.Border
からコピーされたタグ:c
- このボーダのインセットの値を適用するコンポーネントpublic Insets getBorderInsets(Component c, Insets insets)
c
- このボーダのインセットの値を適用するコンポーネントinsets
- 初期化し直されるオブジェクトpublic boolean isBorderOpaque()
Border
内の isBorderOpaque
public Rectangle getInteriorRectangle(Component c, int x, int y, int width, int height)
public static Rectangle getInteriorRectangle(Component c, Border b, int x, int y, int width, int height)
|
JavaTM 2 Platform Std. Ed. v1.3 |
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
Java、Java 2D、JDBC は、米国およびその他の国における米国 Sun Microsystems, Inc. の商標もしくは登録商標です。
Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.