public class EmptyBorder extends AbstractBorder implements Serializable
警告: このクラスの直列化されたオブジェクトは、今後のSwingリリースと互換ではなくなる予定です。現在の直列化のサポートは、短期間の格納や、同じバージョンのSwingを実行するアプリケーション間のRMIに適しています。1.4以降、すべてのJavaBeans(tm)用の長期間の格納サポートが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, 2014, Oracle and/or its affiliates. All rights reserved.