- 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()
-
メソッドのサマリー
すべてのメソッド 静的メソッド インスタンス・メソッド 具象メソッド 修飾子と型 メソッド 説明 protected intcalculateMaxTabHeight(int tabPlacement)最大タブ高さを計算します。protected LayoutManagercreateLayoutManager()installUIにより起動され、JTabbedPaneを管理するためのレイアウト・マネージャ・オブジェクトを作成します。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 intgetTabRunOverlay(int tabPlacement)タブ・ラン・オーバーレイを返します。protected voidinstallDefaults()デフォルトをインストールします。voidpaint(Graphics g, JComponent c)指定されたコンポーネントをLook & Feelに合わせてペイントします。protected voidpaintBottomTabBorder(int tabIndex, Graphics g, int x, int y, int w, int h, int btm, int rght, boolean isSelected)下部のタブのボーダーをペイントします。protected voidpaintContentBorderBottomEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h)コンテンツのボーダーの下端をペイントします。protected voidpaintContentBorderLeftEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h)コンテンツのボーダーの左端をペイントします。protected voidpaintContentBorderRightEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h)コンテンツのボーダーの右端をペイントします。protected voidpaintContentBorderTopEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h)コンテンツのボーダーの上端をペイントします。protected voidpaintFocusIndicator(Graphics g, int tabPlacement, Rectangle[] rects, int tabIndex, Rectangle iconRect, Rectangle textRect, 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 voidpaintTabBackground(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected)タブのバックグラウンドをペイントします。protected voidpaintTabBorder(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, 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 booleanshouldPadTabRun(int tabPlacement, int run)タブ・ランをパディングするかどうかを返します。protected booleanshouldRotateTabRuns(int tabPlacement, int selectedRun)タブ・ランを回転させる必要がある場合はtrueを返します。voidupdate(Graphics g, JComponent c)指定されたコンポーネントをペイントする時間になったことを、このUI委譲に通知します。-
クラス javax.swing.plaf.basic.BasicTabbedPaneUIから継承されたメソッド
assureRectsCreated, calculateMaxTabWidth, calculateTabAreaHeight, calculateTabAreaWidth, calculateTabHeight, calculateTabWidth, createChangeListener, createFocusListener, createMouseListener, createPropertyChangeListener, createScrollButton, expandTabRunsArray, getBaseline, getBaseline, getBaselineResizeBehavior, getContentBorderInsets, getFocusIndex, getFontMetrics, getIconForTab, getMaximumSize, getMinimumSize, getNextTabIndex, getNextTabIndexInRun, getNextTabRun, getPreviousTabIndex, getPreviousTabIndexInRun, getPreviousTabRun, getRolloverTab, getRunForTab, getSelectedTabPadInsets, getTabAreaInsets, getTabBounds, getTabBounds, getTabInsets, getTabRunCount, getTabRunIndent, getTabRunOffset, getTextViewForTab, getVisibleComponent, installComponents, installKeyboardActions, installListeners, installUI, lastTabInRun, layoutLabel, navigateSelectedTab, paintContentBorder, paintIcon, paintTab, paintTabArea, paintText, rotateInsets, selectAdjacentRunTab, selectNextTab, selectNextTabInRun, selectPreviousTab, selectPreviousTabInRun, setRolloverTab, setVisibleComponent, shouldRotateTabRuns, tabForCoordinate, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUI
-
クラス javax.swing.plaf.ComponentUIから継承されたメソッド
contains, getAccessibleChild, getAccessibleChildrenCount, getPreferredSize
-
-
-
-
メソッドの詳細
-
createUI
public static ComponentUI createUI(JComponent x)
MetalTabbedPaneUIを構築します。- パラメータ:
x- コンポーネント- 戻り値:
MetalTabbedPaneUIのインスタンス
-
createLayoutManager
protected LayoutManager createLayoutManager()
クラスからコピーされた説明:BasicTabbedPaneUIinstallUIにより起動され、JTabbedPaneを管理するためのレイアウト・マネージャ・オブジェクトを作成します。- オーバーライド:
createLayoutManager、クラス:BasicTabbedPaneUI- 戻り値:
- レイアウト・マネージャ・オブジェクト
- 関連項目:
BasicTabbedPaneUI.TabbedPaneLayout,JTabbedPane.getTabLayoutPolicy()
-
installDefaults
protected void installDefaults()
次のクラスからコピーされた説明:BasicTabbedPaneUIデフォルトをインストールします。- オーバーライド:
installDefaults、クラス:BasicTabbedPaneUI
-
paintTabBorder
protected void paintTabBorder(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected)
クラスからコピーされた説明:BasicTabbedPaneUIこの関数は、各タブの周囲にボーダーを描画します。この関数はタブのバックグラウンドを描画するようになりました。それはほかの場所で行われます。- オーバーライド:
paintTabBorder、クラス:BasicTabbedPaneUI- パラメータ:
g- ペイントするグラフィック・スコンテキストtabPlacement- タブの配置(左、右、下、上)tabIndex- 他のタブに対するタブのインデックスx- タブのx座標y- タブのy座標w- タブの幅h- タブの高さisSelected- タブが選択されているかどうかを判断するboolean
-
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- 選択肢
-
update
public void update(Graphics g, JComponent c)
クラスからコピーされた説明:ComponentUI指定されたコンポーネントをペイントする時間になったことを、このUI委譲に通知します。 このメソッドは、指定されたコンポーネントがペイントされるときにJComponentによって呼び出されます。デフォルトでは、このメソッドは、指定されたコンポーネントの
opaqueプロパティがtrueの場合に、コンポーネントをそのバックグラウンド・カラーで塗りつぶし、すぐにpaintを呼び出します。 一般的に、このメソッドはサブクラスによってオーバーライドする必要はありません。すべてのLook & Feel描画コードはpaintメソッド内に存在する必要があります。- オーバーライド:
update、クラス:ComponentUI- パラメータ:
g- ペイント対象のGraphicsコンテキストc- ペイントされるコンポーネント。この引数は通常無視されるが、UIオブジェクトがステートレスで、複数のコンポーネントで共有されている場合は使用されることがある- 関連項目:
ComponentUI.paint(java.awt.Graphics, javax.swing.JComponent),JComponent.paintComponent(java.awt.Graphics)
-
paintTabBackground
protected void paintTabBackground(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected)
次のクラスからコピーされた説明:BasicTabbedPaneUIタブのバックグラウンドをペイントします。- オーバーライド:
paintTabBackground、クラス:BasicTabbedPaneUI- パラメータ:
g- ペイントするグラフィック・スコンテキストtabPlacement- タブの配置(左、右、下、上)tabIndex- 他のタブに対するタブのインデックスx- タブのx座標y- タブのy座標w- タブの幅h- タブの高さisSelected- タブが選択されているかどうかを判断するboolean
-
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
-
paint
public void paint(Graphics g, JComponent c)
クラスからコピーされた説明:ComponentUI指定されたコンポーネントをLook & Feelに合わせてペイントします。 このメソッドは、指定されたコンポーネントがペイントされるときにComponentUI.updateメソッドから呼び出されます。 サブクラスは、このメソッドをオーバーライドして、指定されたGraphicsオブジェクトを使ってコンポーネントの内容を描画するべきです。- オーバーライド:
paint、クラス:BasicTabbedPaneUI- パラメータ:
g- ペイント対象のGraphicsコンテキストc- ペイントされるコンポーネント。この引数は通常無視されるが、UIオブジェクトがステートレスで、複数のコンポーネントで共有されている場合は使用されることがある- 関連項目:
ComponentUI.update(java.awt.Graphics, javax.swing.JComponent)
-
paintHighlightBelowTab
protected void paintHighlightBelowTab()
タブの下のハイライトをペイントします。
-
paintFocusIndicator
protected void paintFocusIndicator(Graphics g, int tabPlacement, Rectangle[] rects, int tabIndex, Rectangle iconRect, Rectangle textRect, boolean isSelected)
次のクラスからコピーされた説明:BasicTabbedPaneUIフォーカス・インジケータをペイントします。- オーバーライド:
paintFocusIndicator、クラス:BasicTabbedPaneUI- パラメータ:
g- グラフィック・スtabPlacement- タブ配置rects- rectanglestabIndex- タブ・インデックスiconRect- アイコン矩形textRect- テキスト矩形isSelected- 選択ステータス
-
paintContentBorderTopEdge
protected void paintContentBorderTopEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h)
次のクラスからコピーされた説明:BasicTabbedPaneUIコンテンツのボーダーの上端をペイントします。- オーバーライド:
paintContentBorderTopEdge、クラス:BasicTabbedPaneUI- パラメータ:
g- ペイントするグラフィック・スコンテキストtabPlacement- タブの配置(左、右、下、上)selectedIndex- 選択されたコンポーネントのタブ・インデックスx- タブのx座標y- タブのy座標w- タブの幅h- タブの高さ
-
paintContentBorderBottomEdge
protected void paintContentBorderBottomEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h)
次のクラスからコピーされた説明:BasicTabbedPaneUIコンテンツのボーダーの下端をペイントします。- オーバーライド:
paintContentBorderBottomEdge、クラス:BasicTabbedPaneUI- パラメータ:
g- ペイントするグラフィック・スコンテキストtabPlacement- タブの配置(左、右、下、上)selectedIndex- 選択されたコンポーネントのタブ・インデックスx- タブのx座標y- タブのy座標w- タブの幅h- タブの高さ
-
paintContentBorderLeftEdge
protected void paintContentBorderLeftEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h)
次のクラスからコピーされた説明:BasicTabbedPaneUIコンテンツのボーダーの左端をペイントします。- オーバーライド:
paintContentBorderLeftEdge、クラス:BasicTabbedPaneUI- パラメータ:
g- ペイントするグラフィック・スコンテキストtabPlacement- タブの配置(左、右、下、上)selectedIndex- 選択されたコンポーネントのタブ・インデックスx- タブのx座標y- タブのy座標w- タブの幅h- タブの高さ
-
paintContentBorderRightEdge
protected void paintContentBorderRightEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h)
次のクラスからコピーされた説明:BasicTabbedPaneUIコンテンツのボーダーの右端をペイントします。- オーバーライド:
paintContentBorderRightEdge、クラス:BasicTabbedPaneUI- パラメータ:
g- ペイントするグラフィック・スコンテキストtabPlacement- タブの配置(左、右、下、上)selectedIndex- 選択されたコンポーネントのタブ・インデックスx- タブのx座標y- タブのy座標w- タブの幅h- タブの高さ
-
calculateMaxTabHeight
protected int calculateMaxTabHeight(int tabPlacement)
次のクラスからコピーされた説明:BasicTabbedPaneUI最大タブ高さを計算します。- オーバーライド:
calculateMaxTabHeight、クラス:BasicTabbedPaneUI- パラメータ:
tabPlacement- タブの配置(左、右、下、上)- 戻り値:
- 最大タブ高さ
-
getTabRunOverlay
protected int getTabRunOverlay(int tabPlacement)
次のクラスからコピーされた説明:BasicTabbedPaneUIタブ・ラン・オーバーレイを返します。- オーバーライド:
getTabRunOverlay、クラス:BasicTabbedPaneUI- パラメータ:
tabPlacement- タブの配置(左、右、下、上)- 戻り値:
- タブ・ラン・オーバーレイ
-
shouldRotateTabRuns
protected boolean shouldRotateTabRuns(int tabPlacement, int selectedRun)タブ・ランを回転させる必要がある場合はtrueを返します。- パラメータ:
tabPlacement- タブ配置selectedRun- 選択された実行- 戻り値:
- タブ・ランを回転させる必要がある場合は
true。
-
shouldPadTabRun
protected boolean shouldPadTabRun(int tabPlacement, int run)次のクラスからコピーされた説明:BasicTabbedPaneUIタブ・ランをパディングするかどうかを返します。- オーバーライド:
shouldPadTabRun、クラス:BasicTabbedPaneUI- パラメータ:
tabPlacement- タブの配置(左、右、下、上)run- タブ・ラン- 戻り値:
- タブ・ランをパディングするかどうか
-
-