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