- 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で宣言されたメソッド。TabbedPaneUI
getTabRunCount
-
クラスjavax.swing.plafで宣言されたメソッド。ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getMaximumSize, getMinimumSize, getPreferredSize, installUI, paint, uninstallUI, update
-
-
-
-
メソッドの詳細
-
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- 下rght- 右isSelected- 選択
-
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- 下rght- 右isSelected- 選択
-
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- 下rght- 右isSelected- 選択
-
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- 下rght- 右isSelected- 選択
-
getTabLabelShiftX
protected int getTabLabelShiftX(int tabPlacement, int tabIndex, boolean isSelected)Java L&Fの処理を実行しないように、オーバーライドされます。- オーバーライド:
getTabLabelShiftX、クラスBasicTabbedPaneUI- パラメータ:
tabPlacement- タブの配置tabIndex- タブ索引isSelected- 選択ステータス- 戻り値:
- タブラベルShift 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。
-
-