クラスMetalTabbedPaneUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.TabbedPaneUI
javax.swing.plaf.basic.BasicTabbedPaneUI
javax.swing.plaf.metal.MetalTabbedPaneUI
- すべての実装されたインタフェース:
SwingConstants
public class MetalTabbedPaneUI extends BasicTabbedPaneUI
BasicTabbedPaneUIのMetalサブクラスです。
警告: このクラスの直列化されたオブジェクトは、今後のSwingリリースと互換ではなくなる予定です。 現在の直列化のサポートは、短期間の格納や、同じバージョンのSwingを実行するアプリケーション間のRMIに適しています。 1.4では、すべてのJavaBeansの長期ストレージのサポートがjava.beansパッケージに追加されました。 XMLEncoderを参照してください。
-
ネストされたクラスのサマリー
ネストされたクラスクラスBasicTabbedPaneUIで宣言されたネストされたクラス/インタフェース
BasicTabbedPaneUI.FocusHandler, BasicTabbedPaneUI.MouseHandler, BasicTabbedPaneUI.PropertyChangeHandler, BasicTabbedPaneUI.TabSelectionHandler修飾子と型クラス説明classこのクラスは、「protected」内部クラスとして扱うようにしてください。classこのクラスは、「protected」内部クラスとして扱うようにしてください。classこのクラスは、「protected」内部クラスとして扱うようにしてください。classこのクラスは、「protected」内部クラスとして扱うようにしてください。 -
フィールドのサマリー
フィールド修飾子と型フィールド説明protected intペインの最小幅。protected Color選択したペインの色。protected Colorハイライトの色。protected Colorタブのバックグラウンド色。クラスで宣言されたフィールド BasicTabbedPaneUI
calcRect, contentBorderInsets, darkShadow, downKey, focus, focusListener, highlight, leftKey, lightHighlight, maxTabHeight, maxTabWidth, mouseListener, propertyChangeListener, rects, rightKey, runCount, selectedRun, selectedTabPadInsets, shadow, tabAreaInsets, tabChangeListener, tabInsets, tabPane, tabRunOverlay, tabRuns, textIconGap, upKey修飾子と型フィールド説明protected Rectangle実行中に多くの新規Rectangleが構築されるのを防ぐため、一般レイアウト計算に使用される矩形です。protected Insetsコンテンツのボーダー・インセットprotected Color暗い影の色protected KeyStroke非推奨。Java 2プラットフォームv1.3以降。protected Colorフォーカス・カラーprotected FocusListenerフォーカス変更リスナーprotected Color強調表示の色protected KeyStroke非推奨。Java 2プラットフォームv1.3以降。protected Colorライト・ハイライト・カラーprotected int最大タブ高さprotected int最大タブ幅protected MouseListenerマウス変更リスナーprotected PropertyChangeListenerプロパティ変更リスナーprotected Rectangle[]タブ矩形protected KeyStroke非推奨。Java 2プラットフォームv1.3以降。protected int実行回数protected int選択された実行protected Insets選択されたタブ・インセットprotected Color影の色protected Insetsタブ領域のインセットprotected ChangeListenerタブ変更リスナーprotected Insetsタブ・インセットprotected JTabbedPaneタブ・ペインprotected intオーバーレイを実行するタブprotected int[]タブ・ランprotected intテキスト・アイコンの間隔protected KeyStroke非推奨。Java 2プラットフォームv1.3以降。インタフェースで宣言されたフィールド SwingConstants
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST修飾子と型フィールド説明static final intボックスの下端を指定するために使用するボックス配置定数です。static final int領域内の中央位置です。static final int東(右)の方角です。static final int水平方向です。static final int左から右に記述する言語および右から左に記述する言語で使用するテキストのリーディング・エッジを指定します。static final intボックスの左端を指定するために使用するボックス配置定数です。static final intシーケンス内の次の方向を指定します。static final int北(上)の方角です。static final int北東(右上)の方角です。static final int北西(左上)の方角です。static final intシーケンス内の前の方向を指定します。static final intボックスの右端を指定するために使用するボックス配置定数です。static final int南(下)の方角です。static final int南東(右下)の方角です。static final int南西(左下)の方角です。static final intボックスの上端を指定するために使用するボックス配置定数です。static final int左から右に記述する言語および右から左に記述する言語で使用するテキストのトレーリング・エッジを指定します。static final int垂直方向です。static final int西(左)の方角です。 -
コンストラクタのサマリー
コンストラクタ -
メソッドのサマリー
修飾子と型メソッド説明static ComponentUIMetalTabbedPaneUIを構築します。protected intベースラインのオフセット量を返します。protected ColorgetColorForGap(int currentRun, int x, int y) ギャップの色を返します。protected intgetTabLabelShiftX(int tabPlacement, int tabIndex, boolean isSelected) Java L&Fの処理を実行しないように、オーバーライドされます。protected intgetTabLabelShiftY(int tabPlacement, int tabIndex, boolean isSelected) Java L&Fの処理を実行しないように、オーバーライドされます。protected voidpaintBottomTabBorder(int tabIndex, Graphics g, int x, int y, int w, int h, int btm, int rght, boolean isSelected) 下部のタブ枠をペイントします。protected voidペインがタブの下にハイライト表示されます。protected voidpaintLeftTabBorder(int tabIndex, Graphics g, int x, int y, int w, int h, int btm, int rght, boolean isSelected) 左のタブ枠をペイントします。protected voidpaintRightTabBorder(int tabIndex, Graphics g, int x, int y, int w, int h, int btm, int rght, boolean isSelected) 右側のタブ枠をペイントします。protected voidpaintTopTabBorder(int tabIndex, Graphics g, int x, int y, int w, int h, int btm, int rght, boolean isSelected) 上部のタブ枠をペイントします。protected booleanshouldFillGap(int currentRun, int tabIndex, int x, int y) ギャップを埋める必要がある場合は、trueを返します。protected booleanshouldRotateTabRuns(int tabPlacement, int selectedRun) タブ実行をローテーションする必要がある場合は、trueを返します。クラスで宣言されたメソッド BasicTabbedPaneUI
assureRectsCreated, calculateMaxTabHeight, calculateMaxTabWidth, calculateTabAreaHeight, calculateTabAreaWidth, calculateTabHeight, calculateTabWidth, createChangeListener, createFocusListener, createLayoutManager, createMouseListener, createPropertyChangeListener, createScrollButton, expandTabRunsArray, getBaseline, getBaseline, getBaselineResizeBehavior, getContentBorderInsets, getFocusIndex, getFontMetrics, getIconForTab, getNextTabIndex, getNextTabIndexInRun, getNextTabRun, getPreviousTabIndex, getPreviousTabIndexInRun, getPreviousTabRun, getRolloverTab, getRunForTab, getSelectedTabPadInsets, getTabAreaInsets, getTabBounds, getTabBounds, getTabInsets, getTabRunCount, getTabRunIndent, getTabRunOffset, getTabRunOverlay, getTextViewForTab, getVisibleComponent, installComponents, installDefaults, installKeyboardActions, installListeners, lastTabInRun, layoutLabel, navigateSelectedTab, paintContentBorder, paintContentBorderBottomEdge, paintContentBorderLeftEdge, paintContentBorderRightEdge, paintContentBorderTopEdge, paintFocusIndicator, paintIcon, paintTab, paintTabArea, paintTabBackground, paintTabBorder, paintText, rotateInsets, selectAdjacentRunTab, selectNextTab, selectNextTabInRun, selectPreviousTab, selectPreviousTabInRun, setRolloverTab, setVisibleComponent, shouldPadTabRun, shouldRotateTabRuns, tabForCoordinate, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallListeners修飾子と型メソッド説明protected voidassureRectsCreated(int tabCount) タブ矩形が作成されていることを確認します。protected intcalculateMaxTabHeight(int tabPlacement) タブの最大高さを計算します。protected intcalculateMaxTabWidth(int tabPlacement) タブの最大幅を計算します。protected intcalculateTabAreaHeight(int tabPlacement, int horizRunCount, int maxTabHeight) タブ領域の高さを計算します。protected intcalculateTabAreaWidth(int tabPlacement, int vertRunCount, int maxTabWidth) タブ領域の幅を計算します。protected intcalculateTabHeight(int tabPlacement, int tabIndex, int fontHeight) タブの高さを計算します。protected intcalculateTabWidth(int tabPlacement, int tabIndex, FontMetrics metrics) タブの幅を計算します。protected ChangeListener変更リスナーを作成します。protected FocusListenerフォーカス・リスナーを作成します。protected LayoutManagerinstallUIにより起動され、JTabbedPaneを管理するためのレイアウト・マネージャ・オブジェクトを作成します。protected MouseListenerマウス・リスナーを作成します。protected PropertyChangeListenerプロパティ変更リスナーを作成します。protected JButtoncreateScrollButton(int direction) 特定の方向にタブをスクロールする手段をユーザーに提供するJButtonを作成し、それを返します。protected voidタブを展開して配列を実行します。protected intgetBaseline(int tab) 指定されたタブのベースラインを返します。intgetBaseline(JComponent c, int width, int height) ベースラインを返します。サイズの変化に合わせてコンポーネントのベースラインがどのように変化するかを示す列挙を返します。protected InsetsgetContentBorderInsets(int tabPlacement) コンテンツ・ボーダー・インセットを返します。protected intフォーカスのあるタブのインデックスを返します。protected FontMetricsフォント・メトリックを返します。protected IcongetIconForTab(int tabIndex) タブのアイコンを返します。protected intgetNextTabIndex(int base) 次のタブ・インデックスを返します。protected intgetNextTabIndexInRun(int tabCount, int base) 実行内の次のタブ・インデックスを返します。protected intgetNextTabRun(int baseRun) 次のタブ実行を返します。protected intgetPreviousTabIndex(int base) 前のタブ・インデックスを返します。protected intgetPreviousTabIndexInRun(int tabCount, int base) 実行の前のタブ・インデックスを返します。protected intgetPreviousTabRun(int baseRun) 前のタブ実行を返します。protected intマウスが現在置かれているタブを返します。マウスがタブの上にない場合は-1を返します。protected intgetRunForTab(int tabCount, int tabIndex) タブの実行を返します。protected InsetsgetSelectedTabPadInsets(int tabPlacement) 選択したタブ・パッド・インセットを返します。protected InsetsgetTabAreaInsets(int tabPlacement) タブ・エリア・インセットを返します。protected RectanglegetTabBounds(int tabIndex, Rectangle dest) JTabbedPaneコンポーネントの座標空間内の、指定されたタブの境界を返します。getTabBounds(JTabbedPane pane, int i) 指定されたタブ・インデックスの境界を返します。protected InsetsgetTabInsets(int tabPlacement, int tabIndex) タブ・インセットを返します。intgetTabRunCount(JTabbedPane pane) タブ実行数を返します。protected intgetTabRunIndent(int tabPlacement, int run) タブ実行インデントを返します。protected intgetTabRunOffset(int tabPlacement, int tabCount, int tabIndex, boolean forward) タブ実行オフセットを返します。protected intgetTabRunOverlay(int tabPlacement) タブ実行オーバーレイを返します。protected ViewgetTextViewForTab(int tabIndex) 指定されたタブ用の様式化されたテキスト(HTML)をレンダリングするために必要な、テキストViewオブジェクトを返します。このタブに特別なテキスト・レンダリングが必要ない場合は、nullを返します。protected Component表示可能なコンポーネントを返します。protected voidJTabbedPaneに必要なサブコンポーネントを作成およびインストールします。protected voidデフォルトをインストールします。protected voidキーボード操作をインストールします。protected voidリスナーをインストールします。protected intlastTabInRun(int tabCount, int run) 実行の最後のタブを返します。protected voidlayoutLabel(int tabPlacement, FontMetrics metrics, int tabIndex, String title, Icon icon, Rectangle tabRect, Rectangle iconRect, Rectangle textRect, boolean isSelected) ラベルをレイアウトします。protected voidnavigateSelectedTab(int direction) 選択したタブをナビゲートします。protected voidpaintContentBorder(Graphics g, int tabPlacement, int selectedIndex) コンテンツ・ボーダーをペイントします。protected voidpaintContentBorderBottomEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h) コンテンツ・ボーダーの下端をペイントします。protected voidpaintContentBorderLeftEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h) コンテンツ・ボーダーを左端にペイントします。protected voidpaintContentBorderRightEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h) コンテンツ・ボーダーを右端にペイントします。protected voidpaintContentBorderTopEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h) コンテンツ・ボーダーを上端にペイントします。protected voidpaintFocusIndicator(Graphics g, int tabPlacement, Rectangle[] rects, int tabIndex, Rectangle iconRect, Rectangle textRect, boolean isSelected) フォーカス・インジケータをペイントします。protected voidpaintIcon(Graphics g, int tabPlacement, int tabIndex, Icon icon, Rectangle iconRect, boolean isSelected) アイコンをペイントします。protected voidpaintTab(Graphics g, int tabPlacement, Rectangle[] rects, int tabIndex, Rectangle iconRect, Rectangle textRect) タブをペイントします。protected voidpaintTabArea(Graphics g, int tabPlacement, int selectedIndex) タブ領域のタブをペイントします。protected voidpaintTabBackground(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected) タブのバックグラウンドをペイントします。protected voidpaintTabBorder(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected) タブを囲む枠線を描画します。protected voidpaintText(Graphics g, int tabPlacement, Font font, FontMetrics metrics, int tabIndex, String title, Rectangle textRect, boolean isSelected) テキストをペイントします。protected static voidrotateInsets(Insets topInsets, Insets targetInsets, int targetPlacement) インセットを回転します。protected voidselectAdjacentRunTab(int tabPlacement, int tabIndex, int offset) 隣接するタブの実行を選択します。protected voidselectNextTab(int current) 次のタブを選択します。protected voidselectNextTabInRun(int current) 実行の次のタブを選択します。protected voidselectPreviousTab(int current) 前のタブを選択します。protected voidselectPreviousTabInRun(int current) 実行で前のタブを選択します。protected voidsetRolloverTab(int index) マウスが現在置かれているタブをindexに設定します。protected voidsetVisibleComponent(Component component) 表示コンポーネントを設定します。protected booleanshouldPadTabRun(int tabPlacement, int run) タブ実行をパディングする必要があるかどうかを返します。protected booleanshouldRotateTabRuns(int tabPlacement) タブ実行をローテーションするかどうかを返します。inttabForCoordinate(JTabbedPane pane, int x, int y) JTabbedPane座標空間内の指定された点と交差するタブ・インデックスを返します。protected voidインストールされているサブコンポーネントをJTabbedPaneから削除します。protected voidデフォルトをアンインストールします。protected voidキーボード操作をアンインストールします。protected voidリスナーをアンインストールします。クラスで宣言されたメソッド ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getMaximumSize, getMinimumSize, getPreferredSize, installUI, paint, uninstallUI, update修飾子と型メソッド説明booleancontains(JComponent c, int x, int y) 指定された x,yの位置が、指定されたコンポーネントのLook & Feel定義の形状内にある場合は、trueを返します。getAccessibleChild(JComponent c, int i) オブジェクトのi番目のAccessibleの子を返します。intオブジェクト内のアクセシビリティ対応の子の数を返します。指定されたコンポーネントの、Look & Feelに適した最大サイズを返します。指定されたコンポーネントの、Look & Feelに適した最小サイズを返します。指定されたコンポーネントの、Look & Feelに適した推奨サイズを返します。void指定されたコンポーネントをLook & Feelに応じて適切に構成します。voidpaint(Graphics g, JComponent c) 指定されたコンポーネントをLook & Feelに合わせてペイントします。voidinstallUI時に、指定されたコンポーネントに対して行われた構成を取り消します。voidupdate(Graphics g, JComponent c) 指定されたコンポーネントをペイントする時間になったことを、このUI委譲に通知します。クラスオブジェクトで宣言されたメソッド
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であるか、一定のリアルタイムが経過するまで、目覚めるまで待機します。
-
フィールド詳細
-
コンストラクタの詳細
-
MetalTabbedPaneUI
public MetalTabbedPaneUI()MetalTabbedPaneUIを構築します。
-
-
メソッドの詳細
-
createUI
public static ComponentUI createUI(JComponent x) MetalTabbedPaneUIを構築します。- パラメータ:
x- コンポーネント- 戻り値:
MetalTabbedPaneUIのインスタンス
-
paintTopTabBorder
protected void paintTopTabBorder(int tabIndex, Graphics g, int x, int y, int w, int h, int btm, int rght, boolean isSelected) 上部のタブ枠をペイントします。- パラメータ:
tabIndex- タブ・インデックスg-Graphicsのインスタンスx- X座標y- Y座標w- 幅h- 高さbtm- bottomrght- rightisSelected- 選択肢
-
shouldFillGap
protected boolean shouldFillGap(int currentRun, int tabIndex, int x, int y) ギャップを埋める必要がある場合は、trueを返します。- パラメータ:
currentRun- 現在実行中tabIndex- タブ・インデックスx- X座標y- Y座標- 戻り値:
- ギャップを埋める必要がある場合は
true
-
getColorForGap
protected Color getColorForGap(int currentRun, int x, int y) ギャップの色を返します。- パラメータ:
currentRun- 現在実行中x- X座標y- Y座標- 戻り値:
- ギャップの色
-
paintLeftTabBorder
protected void paintLeftTabBorder(int tabIndex, Graphics g, int x, int y, int w, int h, int btm, int rght, boolean isSelected) 左のタブ枠をペイントします。- パラメータ:
tabIndex- タブ・インデックスg-Graphicsのインスタンスx- X座標y- Y座標w- 幅h- 高さbtm- bottomrght- rightisSelected- 選択肢
-
paintBottomTabBorder
protected void paintBottomTabBorder(int tabIndex, Graphics g, int x, int y, int w, int h, int btm, int rght, boolean isSelected) 下部のタブ枠をペイントします。- パラメータ:
tabIndex- タブ・インデックスg-Graphicsのインスタンスx- X座標y- Y座標w- 幅h- 高さbtm- bottomrght- rightisSelected- 選択肢
-
paintRightTabBorder
protected void paintRightTabBorder(int tabIndex, Graphics g, int x, int y, int w, int h, int btm, int rght, boolean isSelected) 右側のタブ枠をペイントします。- パラメータ:
tabIndex- タブ・インデックスg-Graphicsのインスタンスx- X座標y- Y座標w- 幅h- 高さbtm- bottomrght- rightisSelected- 選択肢
-
getTabLabelShiftX
protected int getTabLabelShiftX(int tabPlacement, int tabIndex, boolean isSelected) Java L&Fの処理を実行しないように、オーバーライドされます。- オーバーライド:
getTabLabelShiftX、クラスBasicTabbedPaneUI- パラメータ:
tabPlacement- タブ配置tabIndex- タブ・インデックスisSelected- 選択ステータス- 戻り値:
- タブ・ラベル・シフトx
-
getTabLabelShiftY
protected int getTabLabelShiftY(int tabPlacement, int tabIndex, boolean isSelected) Java L&Fの処理を実行しないように、オーバーライドされます。- オーバーライド:
getTabLabelShiftY、クラスBasicTabbedPaneUI- パラメータ:
tabPlacement- タブ配置tabIndex- タブ・インデックスisSelected- 選択ステータス- 戻り値:
- タブ・ラベル・シフトy
-
getBaselineOffset
protected int getBaselineOffset()ベースラインのオフセット量を返します。 これは一般に、getTabLabelShiftYと同じです。- オーバーライド:
getBaselineOffset、クラスBasicTabbedPaneUI- 戻り値:
- ベースラインのオフセット量
- 導入されたバージョン:
- 1.6
-
paintHighlightBelowTab
protected void paintHighlightBelowTab()ペインがタブの下にハイライト表示されます。 -
shouldRotateTabRuns
protected boolean shouldRotateTabRuns(int tabPlacement, int selectedRun) タブ実行をローテーションする必要がある場合は、trueを返します。- パラメータ:
tabPlacement- タブ配置selectedRun- 選択された実行- 戻り値:
- タブ実行をローテーションする必要がある場合は、
true。
-