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を参照してください。 
- 
ネストされたクラスのサマリーネストされたクラス 修飾子と型 クラス 説明 classMetalTabbedPaneUI.TabbedPaneLayoutこのクラスは、「protected」内部クラスとして扱うようにしてください。クラス javax.swing.plaf.basic.BasicTabbedPaneUIで宣言されたネストされたクラス/インタフェースBasicTabbedPaneUI.FocusHandler, BasicTabbedPaneUI.MouseHandler, BasicTabbedPaneUI.PropertyChangeHandler, BasicTabbedPaneUI.TabSelectionHandler
- 
フィールドのサマリーフィールド 修飾子と型 フィールド 説明 protected intminTabWidthペインの最小幅。protected ColorselectColor選択したペインの色です。protected ColorselectHighlightハイライトの色。protected ColortabAreaBackgroundタブのバックグラウンドの色です。クラス javax.swing.plaf.basic.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インタフェース 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
- 
コンストラクタのサマリーコンストラクタ コンストラクタ 説明 MetalTabbedPaneUI()
- 
メソッドのサマリー修飾子と型 メソッド 説明 static ComponentUIcreateUI(JComponent x)MetalTabbedPaneUIを構築します。protected intgetBaselineOffset()ベースラインのオフセット量を返します。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 voidpaintHighlightBelowTab()タブの下のハイライトをペイントします。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を返します。クラス javax.swing.plaf.basic.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, 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クラス javax.swing.plaf.ComponentUIで宣言されたメソッドcontains, getAccessibleChild, getAccessibleChildrenCount, getMaximumSize, getMinimumSize, getPreferredSize, installUI, paint, uninstallUI, update
- 
フィールド詳細- 
minTabWidthprotected int minTabWidthペインの最小幅。
- 
tabAreaBackgroundprotected Color tabAreaBackgroundタブのバックグラウンドの色です。
- 
selectColorprotected Color selectColor選択したペインの色です。
- 
selectHighlightprotected Color selectHighlightハイライトの色。
 
- 
- 
コンストラクタの詳細- 
MetalTabbedPaneUIpublic MetalTabbedPaneUI()
 
- 
- 
メソッドの詳細- 
createUIpublic static ComponentUI createUI(JComponent x)MetalTabbedPaneUIを構築します。- パラメータ:
- x- コンポーネント
- 戻り値:
- MetalTabbedPaneUIのインスタンス
 
- 
paintTopTabBorderprotected 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- bottom
- rght- right
- isSelected- 選択肢
 
- 
shouldFillGapprotected boolean shouldFillGap(int currentRun, int tabIndex, int x, int y)ギャップを埋める必要がある場合はtrueを返します。- パラメータ:
- currentRun- 現在実行中
- tabIndex- タブ・インデックス
- x- X座標
- y- Y座標
- 戻り値:
- ギャップを埋める必要がある場合はtrue
 
- 
getColorForGapprotected Color getColorForGap(int currentRun, int x, int y)ギャップの色を返します。- パラメータ:
- currentRun- 現在実行中
- x- X座標
- y- Y座標
- 戻り値:
- ギャップの色
 
- 
paintLeftTabBorderprotected 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- bottom
- rght- right
- isSelected- 選択肢
 
- 
paintBottomTabBorderprotected 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- bottom
- rght- right
- isSelected- 選択肢
 
- 
paintRightTabBorderprotected 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- bottom
- rght- right
- isSelected- 選択肢
 
- 
getTabLabelShiftXprotected int getTabLabelShiftX(int tabPlacement, int tabIndex, boolean isSelected)Java L&Fの処理を実行しないように、オーバーライドされます。- オーバーライド:
- getTabLabelShiftX、クラス:- BasicTabbedPaneUI
- パラメータ:
- tabPlacement- タブ配置
- tabIndex- タブ・インデックス
- isSelected- 選択ステータス
- 戻り値:
- タブ・ラベル・シフトx
 
- 
getTabLabelShiftYprotected int getTabLabelShiftY(int tabPlacement, int tabIndex, boolean isSelected)Java L&Fの処理を実行しないように、オーバーライドされます。- オーバーライド:
- getTabLabelShiftY、クラス:- BasicTabbedPaneUI
- パラメータ:
- tabPlacement- タブ配置
- tabIndex- タブ・インデックス
- isSelected- 選択ステータス
- 戻り値:
- タブ・ラベル・シフトy
 
- 
getBaselineOffsetprotected int getBaselineOffset()ベースラインのオフセット量を返します。 これは一般に、getTabLabelShiftYと同じです。- オーバーライド:
- getBaselineOffset、クラス:- BasicTabbedPaneUI
- 戻り値:
- ベースラインのオフセット量
- 導入されたバージョン:
- 1.6
 
- 
paintHighlightBelowTabprotected void paintHighlightBelowTab()タブの下のハイライトをペイントします。
- 
shouldRotateTabRunsprotected boolean shouldRotateTabRuns(int tabPlacement, int selectedRun)タブ・ランを回転させる必要がある場合はtrueを返します。- パラメータ:
- tabPlacement- タブ配置
- selectedRun- 選択された実行
- 戻り値:
- タブ・ランを回転させる必要がある場合はtrue。
 
 
-