|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectjavax.swing.border.AbstractBorder
public abstract class AbstractBorder
サイズ指定のない空のボーダを実装するクラスです。他のボーダのクラスを簡単に派生できる、便利な基底クラスを提供します。
警告: このクラスの直列化されたオブジェクトは、今後の Swing リリースと互換ではなくなる予定です。現在の直列化のサポートは、短期間の運用や、同じバージョンの Swing を実行するアプリケーション間の RMI に適しています。JDK バージョン 1.4 以降、すべての JavaBeans™ の長期間の運用サポートは、java.beans パッケージに追加されています。詳細は、XMLEncoder を参照してください。
| コンストラクタの概要 | |
|---|---|
AbstractBorder()
|
|
| メソッドの概要 | |
|---|---|
Insets |
getBorderInsets(Component c)
このデフォルト実装は、 top、left、bottom、および right フィールドが 0 に設定される新規 Insets インスタンスを返します。 |
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 内の paintBorderc - このボーダがペイントされるコンポーネントg - ペイントのグラフィックスx - ペイントされたボーダの x 座標y - ペイントされたボーダの y 座標width - ペイントされたボーダの幅height - ペイントされたボーダの高さpublic Insets getBorderInsets(Component c)
top、left、bottom、および right フィールドが 0 に設定される新規 Insets インスタンスを返します。
Border 内の getBorderInsetsc - このボーダのインセットの値を適用するコンポーネント
Insets オブジェクト
public Insets getBorderInsets(Component c,
Insets insets)
c - このボーダのインセットの値を適用するコンポーネントinsets - 初期化し直されるオブジェクト
insets オブジェクトpublic boolean isBorderOpaque()
Border 内の isBorderOpaque
public Rectangle getInteriorRectangle(Component c,
int x,
int y,
int width,
int height)
c - このボーダが計算されるコンポーネントx - ボーダの x 座標y - ボーダの y 座標width - ボーダの幅height - ボーダの高さ
Rectangle
public static Rectangle getInteriorRectangle(Component c,
Border b,
int x,
int y,
int width,
int height)
c - このボーダが計算されるコンポーネントb - Border オブジェクトx - ボーダの x 座標y - ボーダの y 座標width - ボーダの幅height - ボーダの高さ
Rectangle
|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Documentation Redistribution Policy も参照してください。