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