- java.lang.Object
- 
- javax.swing.plaf.ComponentUI
- 
- javax.swing.plaf.TabbedPaneUI
- 
- javax.swing.plaf.basic.BasicTabbedPaneUI
 
 
 
- 
- すべての実装されたインタフェース:
- SwingConstants
 - 直系の既知のサブクラス:
- MetalTabbedPaneUI,- SynthTabbedPaneUI
 
 public class BasicTabbedPaneUI extends TabbedPaneUI implements SwingConstants TabbedPaneUIの基本L&F実装です。
- 
- 
ネストされたクラスのサマリーネストされたクラス 修飾子と型 クラス 説明 classBasicTabbedPaneUI.FocusHandlerこのクラスは、protected内部クラスとして扱うようにしてください。classBasicTabbedPaneUI.MouseHandlerこのクラスは、protected内部クラスとして扱うようにしてください。classBasicTabbedPaneUI.PropertyChangeHandlerこのクラスは、protected内部クラスとして扱うようにしてください。classBasicTabbedPaneUI.TabbedPaneLayoutこのクラスは、protected内部クラスとして扱うようにしてください。classBasicTabbedPaneUI.TabSelectionHandlerこのクラスは、protected内部クラスとして扱うようにしてください。
 - 
フィールドのサマリーフィールド 修飾子と型 フィールド 説明 protected RectanglecalcRect実行中に多くの新規Rectangleが構築されるのを防ぐため、一般レイアウト計算に使用される矩形です。protected InsetscontentBorderInsetsコンテンツのボーダー・インセットprotected ColordarkShadow暗い影の色protected KeyStrokedownKey非推奨。Java 2プラットフォーム1.3以降使われていません。protected Colorfocusフォーカス・カラーprotected FocusListenerfocusListenerフォーカス変更リスナーprotected Colorhighlight強調表示の色protected KeyStrokeleftKey非推奨。Java 2プラットフォーム1.3以降使われていません。protected ColorlightHighlightライト・ハイライト・カラーprotected intmaxTabHeight最大タブ高さprotected intmaxTabWidth最大タブ幅protected MouseListenermouseListenerマウス変更リスナーprotected PropertyChangeListenerpropertyChangeListenerプロパティ変更リスナーprotected Rectangle[]rectsタブ矩形protected KeyStrokerightKey非推奨。Java 2プラットフォーム1.3以降使われていません。protected intrunCount実行回数protected intselectedRun選択された実行protected InsetsselectedTabPadInsets選択されたタブ・インセットprotected Colorshadow影の色protected InsetstabAreaInsetsタブ領域のインセットprotected ChangeListenertabChangeListenerタブ変更リスナーprotected InsetstabInsetsタブ・インセットprotected JTabbedPanetabPaneタブ・ペインprotected inttabRunOverlayオーバーレイを実行するタブprotected int[]tabRunsタブ・ランprotected inttextIconGapテキスト・アイコンの間隔protected KeyStrokeupKey非推奨。Java 2プラットフォーム1.3以降使われていません。- 
インタフェース javax.swing.SwingConstantsで宣言されたフィールドBOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST
 
- 
 - 
コンストラクタのサマリーコンストラクタ コンストラクタ 説明 BasicTabbedPaneUI()
 - 
メソッドのサマリー修飾子と型 メソッド 説明 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 ChangeListenercreateChangeListener()変更リスナーを作成します。protected FocusListenercreateFocusListener()フォーカス・リスナーを作成します。protected LayoutManagercreateLayoutManager()installUIにより起動され、JTabbedPaneを管理するためのレイアウト・マネージャ・オブジェクトを作成します。protected MouseListenercreateMouseListener()マウス・リスナーを作成します。protected PropertyChangeListenercreatePropertyChangeListener()プロパティ変更リスナーを作成します。protected JButtoncreateScrollButton(int direction)特定の方向にタブをスクロールする手段をユーザーに提供するJButtonを作成し、それを返します。static ComponentUIcreateUI(JComponent c)UIを作成します。protected voidexpandTabRunsArray()タブ・ラン配列を展開します。protected intgetBaseline(int tab)指定されたタブのベースラインを返します。intgetBaseline(JComponent c, int width, int height)ベースラインを返します。protected intgetBaselineOffset()ベースラインのオフセット量を返します。Component.BaselineResizeBehaviorgetBaselineResizeBehavior(JComponent c)サイズの変化に合わせてコンポーネントのベースラインがどのように変化するかを示す列挙を返します。protected InsetsgetContentBorderInsets(int tabPlacement)コンテンツのボーダーのインセットを返します。protected intgetFocusIndex()フォーカスのあるタブのインデックスを返します。protected FontMetricsgetFontMetrics()フォント・メトリックを返します。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 intgetRolloverTab()マウスが現在置かれているタブを返します。マウスがタブの上にない場合は-1を返します。protected intgetRunForTab(int tabCount, int tabIndex)タブの実行を返します。protected InsetsgetSelectedTabPadInsets(int tabPlacement)選択したタブ・パッドのインセットを返します。protected InsetsgetTabAreaInsets(int tabPlacement)タブ領域のインセットを返します。protected RectanglegetTabBounds(int tabIndex, Rectangle dest)JTabbedPaneコンポーネントの座標空間内の、指定されたタブの境界を返します。RectanglegetTabBounds(JTabbedPane pane, int i)指定されたタブ・インデックスの境界を返します。protected InsetsgetTabInsets(int tabPlacement, int tabIndex)タブのインセットを返します。protected intgetTabLabelShiftX(int tabPlacement, int tabIndex, boolean isSelected)タブ・ラベル・シフトxを返します。protected intgetTabLabelShiftY(int tabPlacement, int tabIndex, boolean isSelected)タブ・ラベル・シフトyを返します。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 ComponentgetVisibleComponent()可視コンポーネントを返します。protected voidinstallComponents()JTabbedPaneに必要なサブコンポーネントを作成およびインストールします。protected voidinstallDefaults()デフォルトをインストールします。protected voidinstallKeyboardActions()キーボード操作をインストールします。protected voidinstallListeners()リスナーをインストールします。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 voiduninstallComponents()インストールされているサブコンポーネントをJTabbedPaneから削除します。protected voiduninstallDefaults()デフォルトをアンインストールします。protected voiduninstallKeyboardActions()キーボード操作をアンインストールします。protected voiduninstallListeners()リスナーをアンインストールします。- 
クラス javax.swing.plaf.TabbedPaneUIで宣言されたメソッドgetTabRunCount
 - 
クラス javax.swing.plaf.ComponentUIで宣言されたメソッドcontains, getAccessibleChild, getAccessibleChildrenCount, getMaximumSize, getMinimumSize, getPreferredSize, installUI, paint, uninstallUI, update
 
- 
 
- 
- 
- 
フィールドの詳細- 
tabPaneprotected JTabbedPane tabPane タブ・ペイン
 - 
highlightprotected Color highlight 強調表示の色
 - 
lightHighlightprotected Color lightHighlight ライト・ハイライト・カラー
 - 
shadowprotected Color shadow 影の色
 - 
darkShadowprotected Color darkShadow 暗い影の色
 - 
focusprotected Color focus フォーカス・カラー
 - 
textIconGapprotected int textIconGap テキスト・アイコンの間隔
 - 
tabRunOverlayprotected int tabRunOverlay オーバーレイを実行するタブ
 - 
tabInsetsprotected Insets tabInsets タブ・インセット
 - 
selectedTabPadInsetsprotected Insets selectedTabPadInsets 選択されたタブ・インセット
 - 
tabAreaInsetsprotected Insets tabAreaInsets タブ領域のインセット
 - 
contentBorderInsetsprotected Insets contentBorderInsets コンテンツのボーダー・インセット
 - 
upKey@Deprecated protected KeyStroke upKey 非推奨。Java 2プラットフォーム1.3以降使われていません。以前はドキュメントに記載されていなかったこのフィールドは、Java 2プラットフォーム1.3以降では使用されません。 キー・バインディングはLookAndFeelによって定義されるようになりました。詳細はキー・バインディングの仕様を参照してください。
 - 
downKey@Deprecated protected KeyStroke downKey 非推奨。Java 2プラットフォーム1.3以降使われていません。以前はドキュメントに記載されていなかったこのフィールドは、Java 2プラットフォーム1.3以降では使用されません。 キー・バインディングはLookAndFeelによって定義されるようになりました。詳細はキー・バインディングの仕様を参照してください。
 - 
leftKey@Deprecated protected KeyStroke leftKey 非推奨。Java 2プラットフォーム1.3以降使われていません。以前はドキュメントに記載されていなかったこのフィールドは、Java 2プラットフォーム1.3以降では使用されません。 キー・バインディングはLookAndFeelによって定義されるようになりました。詳細はキー・バインディングの仕様を参照してください。
 - 
rightKey@Deprecated protected KeyStroke rightKey 非推奨。Java 2プラットフォーム1.3以降使われていません。以前はドキュメントに記載されていなかったこのフィールドは、Java 2プラットフォーム1.3以降では使用されません。 キー・バインディングはLookAndFeelによって定義されるようになりました。詳細はキー・バインディングの仕様を参照してください。
 - 
tabRunsprotected int[] tabRuns タブ・ラン
 - 
runCountprotected int runCount 実行回数
 - 
selectedRunprotected int selectedRun 選択された実行
 - 
rectsprotected Rectangle[] rects タブ矩形
 - 
maxTabHeightprotected int maxTabHeight 最大タブ高さ
 - 
maxTabWidthprotected int maxTabWidth 最大タブ幅
 - 
tabChangeListenerprotected ChangeListener tabChangeListener タブ変更リスナー
 - 
propertyChangeListenerprotected PropertyChangeListener propertyChangeListener プロパティ変更リスナー
 - 
mouseListenerprotected MouseListener mouseListener マウス変更リスナー
 - 
focusListenerprotected FocusListener focusListener フォーカス変更リスナー
 - 
calcRectprotected transient Rectangle calcRect 実行中に多くの新規Rectangleが構築されるのを防ぐため、一般レイアウト計算に使用される矩形です。
 
- 
 - 
メソッドの詳細- 
createUIpublic static ComponentUI createUI(JComponent c) UIを作成します。- パラメータ:
- c- コンポーネント
- 戻り値:
- UI
 
 - 
createLayoutManagerprotected LayoutManager createLayoutManager() installUIにより起動され、JTabbedPaneを管理するためのレイアウト・マネージャ・オブジェクトを作成します。- 戻り値:
- レイアウト・マネージャ・オブジェクト
- 関連項目:
- BasicTabbedPaneUI.TabbedPaneLayout,- JTabbedPane.getTabLayoutPolicy()
 
 - 
installComponentsprotected void installComponents() JTabbedPaneに必要なサブコンポーネントを作成およびインストールします。 installUIによって呼び出されます。- 導入されたバージョン:
- 1.4
 
 - 
createScrollButtonprotected JButton createScrollButton(int direction) 特定の方向にタブをスクロールする手段をユーザーに提供するJButtonを作成し、それを返します。 返されたJButtonはUIResourceのインスタンスである必要があります。- パラメータ:
- direction- SwingConstants定数のいずれか: SOUTH、NORTH、EAST、またはWEST
- 戻り値:
- ユーザーのためのウィジェット
- 例外:
- IllegalArgumentException- directionがNORTH、SOUTH、EAST、またはWESTのどれでもない場合
- 導入されたバージョン:
- 1.5
- 関連項目:
- JTabbedPane.setTabPlacement(int),- SwingConstants
 
 - 
uninstallComponentsprotected void uninstallComponents() インストールされているサブコンポーネントをJTabbedPaneから削除します。 uninstallUIによって呼び出されます。- 導入されたバージョン:
- 1.4
 
 - 
installDefaultsprotected void installDefaults() デフォルトをインストールします。
 - 
uninstallDefaultsprotected void uninstallDefaults() デフォルトをアンインストールします。
 - 
installListenersprotected void installListeners() リスナーをインストールします。
 - 
uninstallListenersprotected void uninstallListeners() リスナーをアンインストールします。
 - 
createMouseListenerprotected MouseListener createMouseListener() マウス・リスナーを作成します。- 戻り値:
- マウス・リスナー
 
 - 
createFocusListenerprotected FocusListener createFocusListener() フォーカス・リスナーを作成します。- 戻り値:
- フォーカス・リスナー
 
 - 
createChangeListenerprotected ChangeListener createChangeListener() 変更リスナーを作成します。- 戻り値:
- 変更リスナー
 
 - 
createPropertyChangeListenerprotected PropertyChangeListener createPropertyChangeListener() プロパティ変更リスナーを作成します。- 戻り値:
- プロパティ変更リスナー
 
 - 
installKeyboardActionsprotected void installKeyboardActions() キーボード操作をインストールします。
 - 
uninstallKeyboardActionsprotected void uninstallKeyboardActions() キーボード操作をアンインストールします。
 - 
setRolloverTabprotected void setRolloverTab(int index) マウスが現在置かれているタブをindexに設定します。マウスがタブの上にない場合は、indexは-1になります。 渡されたインデックスが有効なタブを識別するかどうかの確認は行われません。- パラメータ:
- index- マウスが置かれているタブのインデックス。
- 導入されたバージョン:
- 1.5
 
 - 
getRolloverTabprotected int getRolloverTab() マウスが現在置かれているタブを返します。マウスがタブの上にない場合は-1を返します。- 戻り値:
- マウスが現在置かれているタブ。マウスがタブの上にない場合は-1
- 導入されたバージョン:
- 1.5
 
 - 
getBaselinepublic int getBaseline(JComponent c, int width, int height) ベースラインを返します。- オーバーライド:
- getBaseline、クラス:- ComponentUI
- パラメータ:
- c- ベースラインが要求される- JComponent
- width- ベースラインを取得する幅
- height- ベースラインを取得する高さ
- 戻り値:
- ベースラインまたは0より小さい値(適切なベースラインがないことを示す)
- 例外:
- NullPointerException-- cが- nullである場合
- IllegalArgumentException- 幅または高さが0より小さい場合
- 導入されたバージョン:
- 1.6
- 関連項目:
- JComponent.getBaseline(int, int)
 
 - 
getBaselineResizeBehaviorpublic Component.BaselineResizeBehavior getBaselineResizeBehavior(JComponent c) サイズの変化に合わせてコンポーネントのベースラインがどのように変化するかを示す列挙を返します。- オーバーライド:
- getBaselineResizeBehavior、クラス:- ComponentUI
- パラメータ:
- c- ベースラインのサイズ変更の動作を返す- JComponent
- 戻り値:
- コンポーネント・サイズの変化に合わせてベースラインがどのように変化するかを示す列挙
- 例外:
- NullPointerException-- cが- nullである場合
- 導入されたバージョン:
- 1.6
- 関連項目:
- JComponent.getBaseline(int, int)
 
 - 
getBaselineprotected int getBaseline(int tab) 指定されたタブのベースラインを返します。- パラメータ:
- tab- ベースラインを取得するタブのインデックス
- 戻り値:
- ベースラインまたは0より小さい値(適切なベースラインがないことを示す)
- 例外:
- IndexOutOfBoundsException- インデックスが範囲外の場合(インデックス< 0||インデックス>=タブの総数)
- 導入されたバージョン:
- 1.6
 
 - 
getBaselineOffsetprotected int getBaselineOffset() ベースラインのオフセット量を返します。 これは一般に、getTabLabelShiftYと同じです。- 戻り値:
- ベースラインのオフセット量
- 導入されたバージョン:
- 1.6
 
 - 
paintTabAreaprotected void paintTabArea(Graphics g, int tabPlacement, int selectedIndex) タブ領域のタブをペイントします。 paint()により起動されます。 グラフィックス・パラメータは、有効なGraphicsオブジェクトである必要があります。 タブ配置は、JTabbedPane.TOP、JTabbedPane.BOTTOM、JTabbedPane.LEFT、またはJTabbedPane.RIGHTのいずれかです。 選択されたインデックスは、有効なタブ・ペイン・タブ・インデックス(0からタブ数-1以下)である必要があります。現在タブが選択されていない場合は、-1です。 無効なパラメータの処理は未指定です。- パラメータ:
- g- レンダリングに使用するグラフィックス・オブジェクト
- tabPlacement- JTabbedPane内のタブの配置
- selectedIndex- 選択されたコンポーネントのタブ・インデックス
- 導入されたバージョン:
- 1.4
 
 - 
paintTabprotected void paintTab(Graphics g, int tabPlacement, Rectangle[] rects, int tabIndex, Rectangle iconRect, Rectangle textRect) タブをペイントします。- パラメータ:
- g- グラフィックス
- tabPlacement- タブ配置
- rects- rectangles
- tabIndex- タブ・インデックス
- iconRect- アイコン矩形
- textRect- テキスト矩形
 
 - 
layoutLabelprotected void layoutLabel(int tabPlacement, FontMetrics metrics, int tabIndex, String title, Icon icon, Rectangle tabRect, Rectangle iconRect, Rectangle textRect, boolean isSelected)ラベルをレイアウトします。- パラメータ:
- tabPlacement- タブ配置
- metrics- フォント・メトリック
- tabIndex- タブ・インデックス
- title- タイトル
- icon- アイコン
- tabRect- タブの矩形
- iconRect- アイコン矩形
- textRect- テキスト矩形
- isSelected- 選択ステータス
 
 - 
paintIconprotected void paintIcon(Graphics g, int tabPlacement, int tabIndex, Icon icon, Rectangle iconRect, boolean isSelected) アイコンをペイントします。- パラメータ:
- g- グラフィックス
- tabPlacement- タブ配置
- tabIndex- タブ・インデックス
- icon- アイコン
- iconRect- アイコン矩形
- isSelected- 選択ステータス
 
 - 
paintTextprotected void paintText(Graphics g, int tabPlacement, Font font, FontMetrics metrics, int tabIndex, String title, Rectangle textRect, boolean isSelected) テキストをペイントします。- パラメータ:
- g- グラフィックス
- tabPlacement- タブ配置
- font- フォント
- metrics- フォント・メトリック
- tabIndex- タブ・インデックス
- title- タイトル
- textRect- テキスト矩形
- isSelected- 選択ステータス
 
 - 
getTabLabelShiftXprotected int getTabLabelShiftX(int tabPlacement, int tabIndex, boolean isSelected)タブ・ラベル・シフトxを返します。- パラメータ:
- tabPlacement- タブ配置
- tabIndex- タブ・インデックス
- isSelected- 選択ステータス
- 戻り値:
- タブ・ラベル・シフトx
 
 - 
getTabLabelShiftYprotected int getTabLabelShiftY(int tabPlacement, int tabIndex, boolean isSelected)タブ・ラベル・シフトyを返します。- パラメータ:
- tabPlacement- タブ配置
- tabIndex- タブ・インデックス
- isSelected- 選択ステータス
- 戻り値:
- タブ・ラベル・シフトy
 
 - 
paintFocusIndicatorprotected void paintFocusIndicator(Graphics g, int tabPlacement, Rectangle[] rects, int tabIndex, Rectangle iconRect, Rectangle textRect, boolean isSelected) フォーカス・インジケータをペイントします。- パラメータ:
- g- グラフィックス
- tabPlacement- タブ配置
- rects- rectangles
- tabIndex- タブ・インデックス
- iconRect- アイコン矩形
- textRect- テキスト矩形
- isSelected- 選択ステータス
 
 - 
paintTabBorderprotected void paintTabBorder(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected) この関数は、各タブの周囲にボーダーを描画します。この関数はタブのバックグラウンドを描画するようになりました。それはほかの場所で行われます。- パラメータ:
- g- ペイントするグラフィックス・コンテキスト
- tabPlacement- タブの配置(左、右、下、上)
- tabIndex- 他のタブに対するタブのインデックス
- x- タブのx座標
- y- タブのy座標
- w- タブの幅
- h- タブの高さ
- isSelected- タブが選択されているかどうかを判断する- boolean
 
 - 
paintTabBackgroundprotected void paintTabBackground(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected) タブのバックグラウンドをペイントします。- パラメータ:
- g- ペイントするグラフィックス・コンテキスト
- tabPlacement- タブの配置(左、右、下、上)
- tabIndex- 他のタブに対するタブのインデックス
- x- タブのx座標
- y- タブのy座標
- w- タブの幅
- h- タブの高さ
- isSelected- タブが選択されているかどうかを判断する- boolean
 
 - 
paintContentBorderprotected void paintContentBorder(Graphics g, int tabPlacement, int selectedIndex) コンテンツのボーダーをペイントします。- パラメータ:
- g- ペイントするグラフィックス・コンテキスト
- tabPlacement- タブの配置(左、右、下、上)
- selectedIndex- 選択されたコンポーネントのタブ・インデックス
 
 - 
paintContentBorderTopEdgeprotected void paintContentBorderTopEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h) コンテンツのボーダーの上端をペイントします。- パラメータ:
- g- ペイントするグラフィックス・コンテキスト
- tabPlacement- タブの配置(左、右、下、上)
- selectedIndex- 選択されたコンポーネントのタブ・インデックス
- x- タブのx座標
- y- タブのy座標
- w- タブの幅
- h- タブの高さ
 
 - 
paintContentBorderLeftEdgeprotected void paintContentBorderLeftEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h) コンテンツのボーダーの左端をペイントします。- パラメータ:
- g- ペイントするグラフィックス・コンテキスト
- tabPlacement- タブの配置(左、右、下、上)
- selectedIndex- 選択されたコンポーネントのタブ・インデックス
- x- タブのx座標
- y- タブのy座標
- w- タブの幅
- h- タブの高さ
 
 - 
paintContentBorderBottomEdgeprotected void paintContentBorderBottomEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h) コンテンツのボーダーの下端をペイントします。- パラメータ:
- g- ペイントするグラフィックス・コンテキスト
- tabPlacement- タブの配置(左、右、下、上)
- selectedIndex- 選択されたコンポーネントのタブ・インデックス
- x- タブのx座標
- y- タブのy座標
- w- タブの幅
- h- タブの高さ
 
 - 
paintContentBorderRightEdgeprotected void paintContentBorderRightEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h) コンテンツのボーダーの右端をペイントします。- パラメータ:
- g- ペイントするグラフィックス・コンテキスト
- tabPlacement- タブの配置(左、右、下、上)
- selectedIndex- 選択されたコンポーネントのタブ・インデックス
- x- タブのx座標
- y- タブのy座標
- w- タブの幅
- h- タブの高さ
 
 - 
getTabBoundspublic Rectangle getTabBounds(JTabbedPane pane, int i) 指定されたタブ・インデックスの境界を返します。 境界は、JTabbedPaneの座標空間を基準にします。- 定義:
- getTabBounds、クラス:- TabbedPaneUI
- パラメータ:
- pane- ペイン
- i- インデックス
- 戻り値:
- タブ境界の矩形
 
 - 
tabForCoordinatepublic int tabForCoordinate(JTabbedPane pane, int x, int y) JTabbedPane座標空間内の指定された点と交差するタブ・インデックスを返します。- 定義:
- tabForCoordinate、クラス:- TabbedPaneUI
- パラメータ:
- pane- ペイン
- x- x座標
- y- y座標
- 戻り値:
- 座標のタブ
 
 - 
getTabBoundsprotected Rectangle getTabBounds(int tabIndex, Rectangle dest) JTabbedPaneコンポーネントの座標空間内の、指定されたタブの境界を返します。 これは、タブ矩形はデフォルトでは、それらがレンダリングされるコンポーネントの座標空間内(WRAP_TAB_LAYOUTの場合はJTabbedPane、SCROLL_TAB_LAYOUTの場合はScrollableTabPanel)に定義されるため必要になります。 このメソッドは、タブ矩形がJTabbedPane自体を基準とする必要があるときに使用してください。結果は、指定されたRectangleオブジェクト内に置くべきです(毎回新しいRectangleをインスタンス化して返すのではなく)。 タブ・インデックス・パラメータは、有効なタブ・ペイン・タブ・インデックス(0からタブ数-1以下)である必要があります。 宛先矩形パラメータは、有効なRectangleインスタンスである必要があります。 無効なパラメータの処理は未指定です。- パラメータ:
- tabIndex- タブのインデックス
- dest- 結果が置かれるべき矩形
- 戻り値:
- 結果の矩形
- 導入されたバージョン:
- 1.4
 
 - 
getVisibleComponentprotected Component getVisibleComponent() 可視コンポーネントを返します。- 戻り値:
- 可視コンポーネント
 
 - 
setVisibleComponentprotected void setVisibleComponent(Component component) 可視コンポーネントを設定します。- パラメータ:
- component- コンポーネント
 
 - 
assureRectsCreatedprotected void assureRectsCreated(int tabCount) 矩形が作成されていることを確認します。- パラメータ:
- tabCount- タブ数
 
 - 
expandTabRunsArrayprotected void expandTabRunsArray() タブ・ラン配列を展開します。
 - 
getRunForTabprotected int getRunForTab(int tabCount, int tabIndex)タブの実行を返します。- パラメータ:
- tabCount- タブ数
- tabIndex- タブ・インデックス。
- 戻り値:
- タブの実行
 
 - 
lastTabInRunprotected int lastTabInRun(int tabCount, int run)実行中の最後のタブを返します。- パラメータ:
- tabCount- タブ数
- run- ラン
- 戻り値:
- 実行の最後のタブ
 
 - 
getTabRunOverlayprotected int getTabRunOverlay(int tabPlacement) タブ・ラン・オーバーレイを返します。- パラメータ:
- tabPlacement- タブの配置(左、右、下、上)
- 戻り値:
- タブ・ラン・オーバーレイ
 
 - 
getTabRunIndentprotected int getTabRunIndent(int tabPlacement, int run)タブ・ラン・インデントを返します。- パラメータ:
- tabPlacement- タブの配置(左、右、下、上)
- run- タブ・ラン
- 戻り値:
- タブ・ラン・インデント
 
 - 
shouldPadTabRunprotected boolean shouldPadTabRun(int tabPlacement, int run)タブ・ランをパディングするかどうかを返します。- パラメータ:
- tabPlacement- タブの配置(左、右、下、上)
- run- タブ・ラン
- 戻り値:
- タブ・ランをパディングするかどうか
 
 - 
shouldRotateTabRunsprotected boolean shouldRotateTabRuns(int tabPlacement) タブ・ランを回転させるかどうかを返します。- パラメータ:
- tabPlacement- タブの配置(左、右、下、上)
- 戻り値:
- タブ・ランを回転させるかどうか
 
 - 
getIconForTabprotected Icon getIconForTab(int tabIndex) タブのアイコンを返します。- パラメータ:
- tabIndex- タブのインデックス
- 戻り値:
- タブのアイコン
 
 - 
getTextViewForTabprotected View getTextViewForTab(int tabIndex) 指定されたタブ用の様式化されたテキスト(HTML)をレンダリングするために必要な、テキストViewオブジェクトを返します。このタブに特別なテキスト・レンダリングが必要ない場合は、nullを返します。 タブ内でHTMLレンダリングをサポートするために提供されます。- パラメータ:
- tabIndex- タブのインデックス
- 戻り値:
- タブのテキストをレンダリングするテキスト・ビュー。特別なレンダリングが必要ない場合はnull
- 導入されたバージョン:
- 1.4
 
 - 
calculateTabHeightprotected int calculateTabHeight(int tabPlacement, int tabIndex, int fontHeight)タブの高さを計算します。- パラメータ:
- tabPlacement- タブの配置(左、右、下、上)
- tabIndex- 他のタブに対するタブのインデックス
- fontHeight- フォントの高さ
- 戻り値:
- タブの高さ
 
 - 
calculateMaxTabHeightprotected int calculateMaxTabHeight(int tabPlacement) 最大タブ高さを計算します。- パラメータ:
- tabPlacement- タブの配置(左、右、下、上)
- 戻り値:
- 最大タブ高さ
 
 - 
calculateTabWidthprotected int calculateTabWidth(int tabPlacement, int tabIndex, FontMetrics metrics)タブの幅を計算します。- パラメータ:
- tabPlacement- タブの配置(左、右、下、上)
- tabIndex- 他のタブに対するタブのインデックス
- metrics- フォント・メトリック
- 戻り値:
- タブの幅
 
 - 
calculateMaxTabWidthprotected int calculateMaxTabWidth(int tabPlacement) 最大タブ幅を計算します。- パラメータ:
- tabPlacement- タブの配置(左、右、下、上)
- 戻り値:
- 最大タブ幅
 
 - 
calculateTabAreaHeightprotected int calculateTabAreaHeight(int tabPlacement, int horizRunCount, int maxTabHeight)タブ領域の高さを計算します。- パラメータ:
- tabPlacement- タブの配置(左、右、下、上)
- horizRunCount- 水平ラン・カウント
- maxTabHeight- 最大タブの高さ
- 戻り値:
- タブ領域の高さ
 
 - 
calculateTabAreaWidthprotected int calculateTabAreaWidth(int tabPlacement, int vertRunCount, int maxTabWidth)タブ領域の幅を計算します。- パラメータ:
- tabPlacement- タブの配置(左、右、下、上)
- vertRunCount- 垂直ラン・カウント
- maxTabWidth- 最大タブ幅
- 戻り値:
- タブ領域の幅
 
 - 
getTabInsetsprotected Insets getTabInsets(int tabPlacement, int tabIndex) タブのインセットを返します。- パラメータ:
- tabPlacement- タブの配置(左、右、下、上)
- tabIndex- タブ・インデックス
- 戻り値:
- タブ・インセット
 
 - 
getSelectedTabPadInsetsprotected Insets getSelectedTabPadInsets(int tabPlacement) 選択したタブ・パッドのインセットを返します。- パラメータ:
- tabPlacement- タブの配置(左、右、下、上)
- 戻り値:
- 選択されたタブ・パッドのインセット
 
 - 
getTabAreaInsetsprotected Insets getTabAreaInsets(int tabPlacement) タブ領域のインセットを返します。- パラメータ:
- tabPlacement- タブの配置(左、右、下、上)
- 戻り値:
- パッド領域インセット
 
 - 
getContentBorderInsetsprotected Insets getContentBorderInsets(int tabPlacement) コンテンツのボーダーのインセットを返します。- パラメータ:
- tabPlacement- タブの配置(左、右、下、上)
- 戻り値:
- コンテンツのボーダー・インセット
 
 - 
getFontMetricsprotected FontMetrics getFontMetrics() フォント・メトリックを返します。- 戻り値:
- フォント・メトリック
 
 - 
navigateSelectedTabprotected void navigateSelectedTab(int direction) 選択したタブをナビゲートします。- パラメータ:
- direction- 方向
 
 - 
selectNextTabInRunprotected void selectNextTabInRun(int current) 実行中の次のタブを選択します。- パラメータ:
- current- 現在のタブ
 
 - 
selectPreviousTabInRunprotected void selectPreviousTabInRun(int current) 実行中の前のタブを選択します。- パラメータ:
- current- 現在のタブ
 
 - 
selectNextTabprotected void selectNextTab(int current) 次のタブを選択します。- パラメータ:
- current- 現在のタブ
 
 - 
selectPreviousTabprotected void selectPreviousTab(int current) 前のタブを選択します。- パラメータ:
- current- 現在のタブ
 
 - 
selectAdjacentRunTabprotected void selectAdjacentRunTab(int tabPlacement, int tabIndex, int offset)隣接するタブを選択します。- パラメータ:
- tabPlacement- タブの配置(左、右、下、上)
- tabIndex- 他のタブに対するタブのインデックス
- offset- 選択オフセット
 
 - 
getFocusIndexprotected int getFocusIndex() フォーカスのあるタブのインデックスを返します。- 戻り値:
- フォーカスのあるタブのインデックス
- 導入されたバージョン:
- 1.5
 
 - 
getTabRunOffsetprotected int getTabRunOffset(int tabPlacement, int tabCount, int tabIndex, boolean forward)タブ・ラン・オフセットを返します。- パラメータ:
- tabPlacement- タブの配置(左、右、下、上)
- tabCount- タブ数
- tabIndex- 他のタブに対するタブのインデックス
- forward- 前進かどうか
- 戻り値:
- タブ・ラン・オフセット
 
 - 
getPreviousTabIndexprotected int getPreviousTabIndex(int base) 前のタブ・インデックスを返します。- パラメータ:
- base- 本拠
- 戻り値:
- 前のタブ・インデックス
 
 - 
getNextTabIndexprotected int getNextTabIndex(int base) 次のタブ・インデックスを返します。- パラメータ:
- base- 本拠
- 戻り値:
- 次のタブ・インデックス
 
 - 
getNextTabIndexInRunprotected int getNextTabIndexInRun(int tabCount, int base)実行中の次のタブ・インデックスを返します。- パラメータ:
- tabCount- タブ数
- base- 本拠
- 戻り値:
- 実行中の次のタブ・インデックス
 
 - 
getPreviousTabIndexInRunprotected int getPreviousTabIndexInRun(int tabCount, int base)実行中の前のタブ・インデックスを返します。- パラメータ:
- tabCount- タブ数
- base- 本拠
- 戻り値:
- 実行中の前のタブ・インデックス
 
 - 
getPreviousTabRunprotected int getPreviousTabRun(int baseRun) 前のタブ・ランを返します。- パラメータ:
- baseRun- ベース・ラン
- 戻り値:
- 前のタブ・ラン
 
 - 
getNextTabRunprotected int getNextTabRun(int baseRun) 次のタブ・ランを返します。- パラメータ:
- baseRun- ベース・ラン
- 戻り値:
- 次のタブ・ラン
 
 
- 
 
-