public class EmptyBorder extends AbstractBorder implements Serializable
警告: このクラスの直列化されたオブジェクトは、今後の Swing リリースと互換ではなくなる予定です。現在の直列化のサポートは、短期間の格納や、同じバージョンの Swing を実行するアプリケーション間の RMI に適しています。1.4 以降、すべての JavaBeansTM 用の長期間の格納サポートが java.beans パッケージに追加されています。XMLEncoder を参照してください。
| 修飾子と型 | フィールドと説明 |
|---|---|
protected int |
bottom |
protected int |
left |
protected int |
right |
protected int |
top |
| コンストラクタと説明 |
|---|
EmptyBorder(Insets borderInsets)
指定されたインセットの値を持つ、空のボーダーを作成します。
|
EmptyBorder(int top, int left, int bottom, int right)
指定されたインセットの値を持つ、空のボーダーを作成します。
|
| 修飾子と型 | メソッドと説明 |
|---|---|
Insets |
getBorderInsets()
ボーダーのインセットを返します。
|
Insets |
getBorderInsets(Component c, Insets insets)
insets パラメータを、この Border の現在の Insets で初期化し直します。
|
boolean |
isBorderOpaque()
ボーダーが不透明かどうかを返します。
|
void |
paintBorder(Component c, Graphics g, int x, int y, int width, int height)
デフォルトでは、描画を行いません。
|
getBaseline, getBaselineResizeBehavior, getBorderInsets, getInteriorRectangle, getInteriorRectangleprotected int left
protected int right
protected int top
protected int bottom
public EmptyBorder(int top,
int left,
int bottom,
int right)
top - ボーダーの上インセットleft - ボーダーの左インセットbottom - ボーダーの下インセットright - ボーダーの右インセット@ConstructorProperties(value="borderInsets") public EmptyBorder(Insets borderInsets)
borderInsets - ボーダーのインセットpublic void paintBorder(Component c, Graphics g, int x, int y, int width, int height)
paintBorder、インタフェース: BorderpaintBorder、クラス: AbstractBorderc - このボーダーがペイントされるコンポーネントg - ペイントグラフィックスx - ペイントされるボーダーの x 座標y - ペイントされるボーダーの y 座標width - ペイントされるボーダーの幅height - ペイントされるボーダーの高さpublic Insets getBorderInsets(Component c, Insets insets)
getBorderInsets、クラス: AbstractBorderc - このボーダーのインセットの値を適用するコンポーネントinsets - 初期化し直されるオブジェクトinsets オブジェクトpublic Insets getBorderInsets()
public boolean isBorderOpaque()
isBorderOpaque、インタフェース: BorderisBorderOpaque、クラス: AbstractBorder バグまたは機能を送信
詳細な API リファレンスおよび開発者ドキュメントについては、Java SE のドキュメントを参照してください。そのドキュメントには、概念的な概要、用語の定義、回避方法、有効なコード例などの、開発者を対象にしたより詳細な説明が含まれています。
Copyright © 1993, 2013, Oracle and/or its affiliates. All rights reserved.