- 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
を参照してください。
-
-
ネストされたクラスのサマリー
ネストされたクラス 修飾子と型 クラス 説明 class
MetalTabbedPaneUI.TabbedPaneLayout
このクラスは、「protected」内部クラスとして扱うようにしてください。-
クラス javax.swing.plaf.basic.BasicTabbedPaneUIで宣言されたネストされたクラス/インタフェース
BasicTabbedPaneUI.FocusHandler, BasicTabbedPaneUI.MouseHandler, BasicTabbedPaneUI.PropertyChangeHandler, BasicTabbedPaneUI.TabSelectionHandler
-
-
フィールドのサマリー
フィールド 修飾子と型 フィールド 説明 protected int
minTabWidth
ペインの最小幅。protected Color
selectColor
選択したペインの色です。protected Color
selectHighlight
ハイライトの色。protected Color
tabAreaBackground
タブのバックグラウンドの色です。-
クラス 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 ComponentUI
createUI(JComponent x)
MetalTabbedPaneUI
を構築します。protected int
getBaselineOffset()
ベースラインのオフセット量を返します。protected Color
getColorForGap(int currentRun, int x, int y)
ギャップの色を返します。protected int
getTabLabelShiftX(int tabPlacement, int tabIndex, boolean isSelected)
Java L&Fの処理を実行しないように、オーバーライドされます。protected int
getTabLabelShiftY(int tabPlacement, int tabIndex, boolean isSelected)
Java L&Fの処理を実行しないように、オーバーライドされます。protected void
paintBottomTabBorder(int tabIndex, Graphics g, int x, int y, int w, int h, int btm, int rght, boolean isSelected)
下部のタブのボーダーをペイントします。protected void
paintHighlightBelowTab()
タブの下のハイライトをペイントします。protected void
paintLeftTabBorder(int tabIndex, Graphics g, int x, int y, int w, int h, int btm, int rght, boolean isSelected)
左のタブのボーダーをペイントします。protected void
paintRightTabBorder(int tabIndex, Graphics g, int x, int y, int w, int h, int btm, int rght, boolean isSelected)
右のタブのボーダーをペイントします。protected void
paintTopTabBorder(int tabIndex, Graphics g, int x, int y, int w, int h, int btm, int rght, boolean isSelected)
上部のタブのボーダーをペイントします。protected boolean
shouldFillGap(int currentRun, int tabIndex, int x, int y)
ギャップを埋める必要がある場合はtrue
を返します。protected boolean
shouldRotateTabRuns(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
- 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
。
-
-