public class MetalTabbedPaneUI extends BasicTabbedPaneUI
警告: このクラスの直列化されたオブジェクトは、今後のSwingリリースと互換ではなくなる予定です。 現在の直列化のサポートは、短期間の格納や、同じバージョンのSwingを実行するアプリケーション間のRMIに適しています。 1.4以降、すべてのJavaBeans™用の長期間の格納サポートがjava.beansパッケージに追加されています。 XMLEncoderを参照してください。
| 修飾子と型 | クラス | 説明 |
|---|---|---|
class |
MetalTabbedPaneUI.TabbedPaneLayout |
このクラスは、「protected」内部クラスとして扱うようにしてください。
|
BasicTabbedPaneUI.FocusHandler, BasicTabbedPaneUI.MouseHandler, BasicTabbedPaneUI.PropertyChangeHandler, BasicTabbedPaneUI.TabSelectionHandler| 修飾子と型 | フィールド | 説明 |
|---|---|---|
protected int |
minTabWidth |
|
protected Color |
selectColor |
|
protected Color |
selectHighlight |
|
protected Color |
tabAreaBackground |
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, upKeyBOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST| コンストラクタ | 説明 |
|---|---|
MetalTabbedPaneUI() |
| 修飾子と型 | メソッド | 説明 |
|---|---|---|
protected int |
calculateMaxTabHeight(int tabPlacement) |
|
protected LayoutManager |
createLayoutManager() |
installUIにより起動され、JTabbedPaneを管理するためのレイアウト・マネージャ・オブジェクトを作成します。 |
static ComponentUI |
createUI(JComponent x) |
|
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 int |
getTabRunOverlay(int tabPlacement) |
|
protected void |
installDefaults() |
|
void |
paint(Graphics g, JComponent c) |
指定されたコンポーネントをLook & Feelに合わせてペイントします。
|
protected void |
paintBottomTabBorder(int tabIndex, Graphics g, int x, int y, int w, int h, int btm, int rght, boolean isSelected) |
|
protected void |
paintContentBorderBottomEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h) |
|
protected void |
paintContentBorderLeftEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h) |
|
protected void |
paintContentBorderRightEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h) |
|
protected void |
paintContentBorderTopEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h) |
|
protected void |
paintFocusIndicator(Graphics g, int tabPlacement, Rectangle[] rects, int tabIndex, Rectangle iconRect, Rectangle textRect, 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 |
paintTabBackground(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected) |
|
protected void |
paintTabBorder(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, 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) |
|
protected boolean |
shouldPadTabRun(int tabPlacement, int run) |
|
protected boolean |
shouldRotateTabRuns(int tabPlacement, int selectedRun) |
|
void |
update(Graphics g, JComponent c) |
指定されたコンポーネントをペイントする時間になったことを、このUI委譲に通知します。
|
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, uninstallUIcontains, getAccessibleChild, getAccessibleChildrenCount, getPreferredSizeprotected int minTabWidth
protected Color tabAreaBackground
protected Color selectColor
protected Color selectHighlight
public static ComponentUI createUI(JComponent x)
protected LayoutManager createLayoutManager()
BasicTabbedPaneUIinstallUIにより起動され、JTabbedPaneを管理するためのレイアウト・マネージャ・オブジェクトを作成します。createLayoutManager、クラスBasicTabbedPaneUIBasicTabbedPaneUI.TabbedPaneLayout, JTabbedPane.getTabLayoutPolicy()protected void installDefaults()
installDefaults、クラスBasicTabbedPaneUIprotected void paintTabBorder(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected)
BasicTabbedPaneUIpaintTabBorder、クラスBasicTabbedPaneUIprotected 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)
protected Color getColorForGap(int currentRun, int x, int y)
protected void paintLeftTabBorder(int tabIndex,
Graphics g,
int x,
int y,
int w,
int h,
int btm,
int rght,
boolean isSelected)
protected void paintBottomTabBorder(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)
public void update(Graphics g, JComponent c)
ComponentUIJComponentによって呼び出されます。
デフォルトでは、このメソッドは、指定されたコンポーネントのopaqueプロパティがtrueの場合に、コンポーネントをそのバックグラウンド・カラーで塗りつぶし、すぐにpaintを呼び出します。 一般的に、このメソッドはサブクラスによってオーバーライドする必要はありません。すべてのLook & Feel描画コードはpaintメソッド内に存在する必要があります。
update、クラスComponentUIg - ペイント対象のGraphicsコンテキストc - ペイントされるコンポーネント。この引数は通常無視されるが、UIオブジェクトがステートレスで、複数のコンポーネントで共有されている場合は使用されることがあるComponentUI.paint(java.awt.Graphics, javax.swing.JComponent), JComponent.paintComponent(java.awt.Graphics)protected void paintTabBackground(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected)
paintTabBackground、クラスBasicTabbedPaneUIprotected int getTabLabelShiftX(int tabPlacement,
int tabIndex,
boolean isSelected)
getTabLabelShiftX、クラスBasicTabbedPaneUIprotected int getTabLabelShiftY(int tabPlacement,
int tabIndex,
boolean isSelected)
getTabLabelShiftY、クラスBasicTabbedPaneUIprotected int getBaselineOffset()
getTabLabelShiftYと同じです。 getBaselineOffset、クラスBasicTabbedPaneUIpublic void paint(Graphics g, JComponent c)
ComponentUIComponentUI.updateメソッドから呼び出されます。 サブクラスは、このメソッドをオーバーライドして、指定されたGraphicsオブジェクトを使ってコンポーネントの内容を描画するべきです。 paint、クラスBasicTabbedPaneUIg - ペイント対象のGraphicsコンテキストc - ペイントされるコンポーネント。この引数は通常無視されるが、UIオブジェクトがステートレスで、複数のコンポーネントで共有されている場合は使用されることがあるComponentUI.update(java.awt.Graphics, javax.swing.JComponent)protected void paintHighlightBelowTab()
protected void paintFocusIndicator(Graphics g, int tabPlacement, Rectangle[] rects, int tabIndex, Rectangle iconRect, Rectangle textRect, boolean isSelected)
paintFocusIndicator、クラスBasicTabbedPaneUIprotected void paintContentBorderTopEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h)
paintContentBorderTopEdge、クラスBasicTabbedPaneUIprotected void paintContentBorderBottomEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h)
paintContentBorderBottomEdge、クラスBasicTabbedPaneUIprotected void paintContentBorderLeftEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h)
paintContentBorderLeftEdge、クラスBasicTabbedPaneUIprotected void paintContentBorderRightEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h)
paintContentBorderRightEdge、クラスBasicTabbedPaneUIprotected int calculateMaxTabHeight(int tabPlacement)
calculateMaxTabHeight、クラスBasicTabbedPaneUIprotected int getTabRunOverlay(int tabPlacement)
getTabRunOverlay、クラスBasicTabbedPaneUIprotected boolean shouldRotateTabRuns(int tabPlacement,
int selectedRun)
protected boolean shouldPadTabRun(int tabPlacement,
int run)
shouldPadTabRun、クラスBasicTabbedPaneUI バグまたは機能を送信
詳細なAPIリファレンスおよび開発者ドキュメントについては、Java SEのドキュメントを参照してください。 そのドキュメントには、概念的な概要、用語の定義、回避方法、有効なコード例などの、開発者を対象にしたより詳細な説明が含まれています。
Copyright © 1993, 2025, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Documentation Redistribution Policyも参照してください。