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を参照してください。
-
ネストされたクラスのサマリー
ネストされたクラスクラスjavax.swing.plaf.basic.BasicTabbedPaneUIで宣言されたネストされたクラス/インタフェース
BasicTabbedPaneUI.FocusHandler, BasicTabbedPaneUI.MouseHandler, BasicTabbedPaneUI.PropertyChangeHandler, BasicTabbedPaneUI.TabSelectionHandler -
フィールドのサマリー
フィールド修飾子と型フィールド説明protected intペインの最小幅。protected Color選択したペインの色。protected Colorハイライトの色。protected Colorタブのバックグラウンド色。クラス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 -
コンストラクタのサマリー
コンストラクタ -
メソッドのサマリー
修飾子と型メソッド説明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を返します。クラス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, 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クラスjavax.swing.plaf.ComponentUIで宣言されたメソッド
contains, getAccessibleChild, getAccessibleChildrenCount, getMaximumSize, getMinimumSize, getPreferredSize, installUI, paint, uninstallUI, update
-
フィールド詳細
-
コンストラクタの詳細
-
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。
-