- 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
-
クラス java.lang.Objectで宣言されたメソッド
clone、equals、finalize、getClass、hashCode、notify、notifyAll、toString、wait、wait、wait
-
クラス javax.swing.plaf.TabbedPaneUIで宣言されたメソッド
getTabRunCount
-
-
-
-
メソッドの詳細
-
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。
-
-