クラスBorderUIResource.TitledBorderUIResource
java.lang.Object
javax.swing.border.AbstractBorder
javax.swing.border.TitledBorder
javax.swing.plaf.BorderUIResource.TitledBorderUIResource
- すべての実装されたインタフェース:
Serializable, Border, UIResource
- 含まれているクラス:
BorderUIResource
public static class BorderUIResource.TitledBorderUIResource extends TitledBorder implements UIResource
タイトル付きのボーダーUIリソース。
-
フィールドのサマリー
クラスで宣言されたフィールド TitledBorder
ABOVE_BOTTOM, ABOVE_TOP, BELOW_BOTTOM, BELOW_TOP, border, BOTTOM, CENTER, DEFAULT_JUSTIFICATION, DEFAULT_POSITION, EDGE_SPACING, LEADING, LEFT, RIGHT, TEXT_INSET_H, TEXT_SPACING, title, titleColor, titleFont, titleJustification, titlePosition, TOP, TRAILING修飾子と型フィールド説明static final intタイトルをボーダーのボトム・ラインより上に配置します。static final intタイトルをボーダーのトップ・ラインより上に配置します。static final intタイトルをボーダーのボトム・ラインより下に配置します。static final intタイトルをボーダーのトップ・ラインより下に配置します。protected Borderボーダー。static final intタイトルをボーダーのボトム・ラインの中央に配置します。static final intタイトル・テキストをボーダー・ラインの中央に配置します。static final intタイトル・テキストにデフォルトの位置揃えを使用します。static final intタイトル・テキストにデフォルトの垂直方向配置を使用します。protected static final intボーダーとコンポーネントのエッジの間のスペースstatic final int左から右方向の場合はタイトル・テキストをボーダー・ラインの左側に、右から左方向の場合はボーダー・ラインの右側に配置します。static final intタイトル・テキストをボーダー・ラインの左側に配置します。static final intタイトル・テキストをボーダー・ラインの右側に配置します。protected static final int左揃えまたは右揃えのテキストの水平インセットprotected static final intボーダーとテキストの間のスペースprotected String枠線が表示されるタイトル。protected Colorタイトルの色。protected Fontタイトルをレンダリングするためのフォント。protected intタイトルの理由。protected intタイトルのポジション。static final intタイトルをボーダーのトップ・ラインの中央に配置します。static final int左から右方向の場合はタイトル・テキストをボーダー・ラインの右側に、右から左方向の場合はボーダー・ラインの左側に配置します。 -
コンストラクタのサマリー
コンストラクタコンストラクタ説明TitledBorderUIResource(String title) TitledBorderUIResourceを構築します。TitledBorderUIResource(Border border) TitledBorderUIResourceを構築します。TitledBorderUIResource(Border border, String title) TitledBorderUIResourceを構築します。TitledBorderUIResource(Border border, String title, int titleJustification, int titlePosition) TitledBorderUIResourceを構築します。TitledBorderUIResource(Border border, String title, int titleJustification, int titlePosition, Font titleFont) TitledBorderUIResourceを構築します。TitledBorderUIResource(Border border, String title, int titleJustification, int titlePosition, Font titleFont, Color titleColor) TitledBorderUIResourceを構築します。 -
メソッドのサマリー
クラスで宣言されたメソッド TitledBorder
getBaseline, getBaselineResizeBehavior, getBorder, getBorderInsets, getFont, getMinimumSize, getTitle, getTitleColor, getTitleFont, getTitleJustification, getTitlePosition, isBorderOpaque, paintBorder, setBorder, setTitle, setTitleColor, setTitleFont, setTitleJustification, setTitlePosition修飾子と型メソッド説明intgetBaseline(Component c, int width, int height) ベースラインを返します。サイズの変化に合わせてボーダーのベースラインがどのように変化するかを示す列挙を返します。タイトル付きボーダーのボーダーを返します。getBorderInsets(Component c, Insets insets) insetsパラメータを、このBorderの現在のInsetsで初期化し直します。protected Fontタイトル付き枠線のデフォルト・フォントを返します。ボーダーとタイトルを完全に表示するためにボーダーに必要な最小サイズを返します。getTitle()タイトル付きボーダーのタイトルを返します。タイトル付きボーダーのタイトル・カラーを返します。タイトル付きボーダーのタイトル・フォントを返します。intタイトル付きボーダーのタイトル位置揃えを返します。intタイトル付きボーダーのタイトル位置を返します。booleanボーダーが不透明かどうかを返します。voidpaintBorder(Component c, Graphics g, int x, int y, int width, int height) 指定されたコンポーネントのボーダーを、指定された位置およびサイズでペイントします。voidタイトル付きボーダーのボーダーを設定します。voidタイトル付きボーダーのタイトルを設定します。voidsetTitleColor(Color titleColor) タイトル付きボーダーのタイトル・カラーを設定します。voidsetTitleFont(Font titleFont) タイトル付きボーダーのタイトル・フォントを設定します。voidsetTitleJustification(int titleJustification) タイトル付きボーダーのタイトル位置揃えを設定します。voidsetTitlePosition(int titlePosition) タイトル付きボーダーのタイトル位置を設定します。クラスで宣言されたメソッド AbstractBorder
getBorderInsets, getInteriorRectangle, getInteriorRectangle修飾子と型メソッド説明このデフォルトの実装は、AbstractBorder.getBorderInsets(Component,Insets)メソッドによって初期化される新しいInsetsオブジェクトを返します。getInteriorRectangle(Component c, int x, int y, int width, int height) 静的メソッドを呼び出す簡易メソッドです。static RectanglegetInteriorRectangle(Component c, Border b, int x, int y, int width, int height) ボーダーのイン・セットから引数の値を減算して矩形を返します。クラスオブジェクトで宣言されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait修飾子と型メソッド説明protected Objectclone()このオブジェクトのコピーを作成して、返します。booleanこのオブジェクトと他のオブジェクトが等しいかどうかを示します。protected voidfinalize()削除予定のため非推奨: このAPI要素は、将来のバージョンで削除される可能性があります。最終決定は非推奨であり、将来のリリースで削除される可能性があります。final Class<?> getClass()このObjectの実行時クラスを返します。inthashCode()このオブジェクトに対するハッシュ・コード値を返します。final voidnotify()このオブジェクトのモニターで待機中のスレッドを1つ再開します。final voidこのオブジェクトのモニターで待機中のすべてのスレッドを再開します。toString()オブジェクトの文字列表現を返します。final voidwait()現在のスレッドが目覚めるまで待機します。通常、notifiedまたはinterruptedです。final voidwait(long timeoutMillis) 現在のスレッドは、通常、notifiedまたはinterruptedであるか、一定のリアルタイムが経過するまで、目覚めるまで待機します。final voidwait(long timeoutMillis, int nanos) 現在のスレッドは、通常、notifiedまたはinterruptedであるか、一定のリアルタイムが経過するまで、目覚めるまで待機します。
-
コンストラクタの詳細
-
TitledBorderUIResource
public TitledBorderUIResource(String title) TitledBorderUIResourceを構築します。- パラメータ:
title- ボーダーに表示するタイトル
-
TitledBorderUIResource
-
TitledBorderUIResource
-
TitledBorderUIResource
-
TitledBorderUIResource
-
TitledBorderUIResource
@ConstructorProperties({"border","title","titleJustification","titlePosition","titleFont","titleColor"}) public TitledBorderUIResource(Border border, String title, int titleJustification, int titlePosition, Font titleFont, Color titleColor) TitledBorderUIResourceを構築します。- パラメータ:
border- ボーダーtitle- ボーダーに表示するタイトルtitleJustification- タイトルの位置揃えtitlePosition- タイトルの位置titleFont- タイトルを描画するフォントtitleColor- タイトルのカラー
-