|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectjavax.swing.border.AbstractBorder
javax.swing.border.EmptyBorder
javax.swing.border.MatteBorder
public class MatteBorder
塗りつぶしカラーやタイリングされたアイコンを使う飾り縁ボーダーを提供するクラスです。
警告: このクラスの直列化されたオブジェクトは、今後の Swing リリースと互換ではなくなる予定です。現在の直列化のサポートは、短期間の運用や、同じバージョンの Swing を実行するアプリケーション間の RMI に適しています。JDK Version 1.4 以降、すべての JavaBeans™ の長期間の運用サポートは、java.beans パッケージに追加されています。詳細は、XMLEncoder を参照してください。
| フィールドの概要 | |
|---|---|
protected Color |
color
|
protected Icon |
tileIcon
|
| クラス javax.swing.border.EmptyBorder から継承されたフィールド |
|---|
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 |
getBorderInsets(Component c,
Insets insets)
insets パラメータを、この Border の現在の Insets で初期化し直します。 |
Color |
getMatteColor()
ボーダーのタイリングに使用したカラーを返します。 |
Icon |
getTileIcon()
ボーダーのタイリングに使用したカラーを返します。 |
boolean |
isBorderOpaque()
ボーダーが不透明かどうかを返します。 |
void |
paintBorder(Component c,
Graphics g,
int x,
int y,
int width,
int height)
飾り縁ボーダーをペイントします。 |
| クラス javax.swing.border.AbstractBorder から継承されたメソッド |
|---|
getBaseline, getBaselineResizeBehavior, getInteriorRectangle, getInteriorRectangle |
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| フィールドの詳細 |
|---|
protected Color color
protected Icon tileIcon
| コンストラクタの詳細 |
|---|
public 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)
Border 内の paintBorderEmptyBorder 内の paintBorderc - このボーダーがペイントされるコンポーネントg - ペイントのグラフィックスx - ペイントされたボーダーの x 座標y - ペイントされたボーダーの y 座標width - ペイントされたボーダーの幅height - ペイントされたボーダーの高さpublic Insets getBorderInsets(Component c)
Border 内の getBorderInsetsEmptyBorder 内の getBorderInsetsc - このボーダーのインセットの値を適用するコンポーネント
Insets オブジェクト
public Insets getBorderInsets(Component c,
Insets insets)
EmptyBorder 内の getBorderInsetsc - このボーダーのインセットの値を適用するコンポーネントinsets - 初期化し直されるオブジェクト
insets オブジェクトpublic Insets getBorderInsets()
EmptyBorder 内の getBorderInsetspublic Color getMatteColor()
public Icon getTileIcon()
public boolean isBorderOpaque()
Border 内の isBorderOpaqueEmptyBorder 内の isBorderOpaque
|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
Copyright 2009 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Documentation Redistribution Policy も参照してください。