public class SynthTabbedPaneUI extends BasicTabbedPaneUI implements PropertyChangeListener, SynthUI
JTabbedPaneのSynth L&F UI委譲を提供します。
 選択されたタブの追加イン・セットを表すselectedTabPadInsetsプロパティをスタイルから検索します。
BasicTabbedPaneUI.FocusHandler, BasicTabbedPaneUI.MouseHandler, BasicTabbedPaneUI.PropertyChangeHandler, BasicTabbedPaneUI.TabbedPaneLayout, BasicTabbedPaneUI.TabSelectionHandlercalcRect, 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, upKeyDEFAULT, DISABLED, ENABLED, FOCUSED, MOUSE_OVER, PRESSED, SELECTEDBOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST| コンストラクタ | 説明 | 
|---|---|
| SynthTabbedPaneUI() | 
| 修飾子と型 | メソッド | 説明 | 
|---|---|---|
| protected int | calculateMaxTabHeight(int tabPlacement) | |
| protected int | calculateMaxTabWidth(int tabPlacement) | |
| protected int | calculateTabWidth(int tabPlacement, int tabIndex, FontMetrics metrics) | |
| protected LayoutManager | createLayoutManager() | installUIにより起動され、JTabbedPaneを管理するためのレイアウト・マネージャ・オブジェクトを作成します。 | 
| protected MouseListener | createMouseListener() | 
 選択したタブも押されたかどうかを追跡するようにオーバーライドされます。 | 
| protected JButton | createScrollButton(int direction) | 特定の方向にタブをスクロールする手段をユーザーに提供するJButtonを作成し、それを返します。 | 
| static ComponentUI | createUI(JComponent c) | 指定されたコンポーネントの新しいUIオブジェクトを作成します。 | 
| protected int | getBaseline(int tab) | 指定されたタブのベースラインを返します。 | 
| SynthContext | getContext(JComponent c) | 指定されたコンポーネントのコンテキストを返します。 | 
| protected FontMetrics | getFontMetrics() | |
| protected Insets | getTabInsets(int tabPlacement, int tabIndex) | |
| protected int | getTabLabelShiftX(int tabPlacement, int tabIndex, boolean isSelected) | |
| protected int | getTabLabelShiftY(int tabPlacement, int tabIndex, boolean isSelected) | |
| protected void | installDefaults() | |
| protected void | installListeners() | |
| void | paint(Graphics g, JComponent c) | Look & Feelに従って、指定されたコンポーネントをペイントします。 | 
| protected void | paint(SynthContext context, Graphics g) | 指定されたコンポーネントをペイントします。 | 
| void | paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h) | ボーダーをペイントします。 | 
| protected void | paintTabArea(Graphics g, int tabPlacement, int selectedIndex) | タブ領域のタブをペイントします。 | 
| void | propertyChange(PropertyChangeEvent e) | バウンド・プロパティの変更時に呼び出されます。 | 
| protected void | setRolloverTab(int index) | マウスが現在置かれているタブを indexに設定します。 | 
| protected void | uninstallDefaults() | |
| protected void | uninstallListeners() | |
| void | update(Graphics g, JComponent c) | このUI委譲に、指定されたコンポーネントを再ペイントするよう通知します。 | 
assureRectsCreated, calculateTabAreaHeight, calculateTabAreaWidth, calculateTabHeight, createChangeListener, createFocusListener, createPropertyChangeListener, expandTabRunsArray, getBaseline, getBaselineOffset, getBaselineResizeBehavior, getContentBorderInsets, getFocusIndex, getIconForTab, getMaximumSize, getMinimumSize, getNextTabIndex, getNextTabIndexInRun, getNextTabRun, getPreviousTabIndex, getPreviousTabIndexInRun, getPreviousTabRun, getRolloverTab, getRunForTab, getSelectedTabPadInsets, getTabAreaInsets, getTabBounds, getTabBounds, getTabRunCount, getTabRunIndent, getTabRunOffset, getTabRunOverlay, getTextViewForTab, getVisibleComponent, installComponents, installKeyboardActions, installUI, lastTabInRun, layoutLabel, navigateSelectedTab, paintContentBorder, paintContentBorderBottomEdge, paintContentBorderLeftEdge, paintContentBorderRightEdge, paintContentBorderTopEdge, paintFocusIndicator, paintIcon, paintTab, paintTabBackground, paintTabBorder, paintText, rotateInsets, selectAdjacentRunTab, selectNextTab, selectNextTabInRun, selectPreviousTab, selectPreviousTabInRun, setVisibleComponent, shouldPadTabRun, shouldRotateTabRuns, tabForCoordinate, uninstallComponents, uninstallKeyboardActions, uninstallUIcontains, getAccessibleChild, getAccessibleChildrenCount, getPreferredSizepublic static ComponentUI createUI(JComponent c)
c - UIオブジェクトを作成するコンポーネントprotected void installDefaults()
installDefaults、クラスBasicTabbedPaneUIprotected void installListeners()
installListeners、クラスBasicTabbedPaneUIprotected void uninstallListeners()
uninstallListeners、クラスBasicTabbedPaneUIprotected void uninstallDefaults()
uninstallDefaults、クラスBasicTabbedPaneUIpublic SynthContext getContext(JComponent c)
getContext、インタフェースSynthUIc - SynthContextを要求するコンポーネント。protected JButton createScrollButton(int direction)
createScrollButton、クラスBasicTabbedPaneUIdirection - SwingConstants定数のいずれか: SOUTH、NORTH、EAST、またはWESTJTabbedPane.setTabPlacement(int), SwingConstantspublic void propertyChange(PropertyChangeEvent e)
propertyChange、インタフェースPropertyChangeListenere - イベント・ソースと変更されたプロパティを記述したPropertyChangeEventオブジェクト。protected MouseListener createMouseListener()
createMouseListener、クラスBasicTabbedPaneUIprotected int getTabLabelShiftX(int tabPlacement,
                                int tabIndex,
                                boolean isSelected)
getTabLabelShiftX、クラスBasicTabbedPaneUIprotected int getTabLabelShiftY(int tabPlacement,
                                int tabIndex,
                                boolean isSelected)
getTabLabelShiftY、クラスBasicTabbedPaneUIpublic void update(Graphics g, JComponent c)
paint(SynthContext,Graphics)メソッドを呼び出します。 
 一般に、このメソッドはサブクラスによってオーバーライドする必要はありません。 すべてのLook & Feelの描画コードをpaintメソッドに入れるようにしてください。 
update、クラスComponentUIg - ペイントに使用されるGraphicsオブジェクトc - ペイントされるコンポーネントpaint(SynthContext,Graphics)protected int getBaseline(int tab)
getBaseline、クラスBasicTabbedPaneUItab - ベースラインを取得するタブのインデックスpublic void paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
paintBorder、インタフェースSynthUIcontext - コンポーネント・コンテキストg - ペイントされるGraphicsx - X座標y - Y座標w - ボーダーの幅h - ボーダーの高さpublic void paint(Graphics g, JComponent c)
このメソッドは、Synth Look & Feelで使用されません。 ペイントはpaint(SynthContext,Graphics)メソッドによって処理されます。 
paint、クラスBasicTabbedPaneUIg - ペイントに使用されるGraphicsオブジェクトc - ペイントされるコンポーネントpaint(SynthContext,Graphics)protected void paint(SynthContext context, Graphics g)
context - ペイントされるコンポーネントのコンテキストg - ペイントに使用されるGraphicsオブジェクトupdate(Graphics,JComponent)protected void paintTabArea(Graphics g, int tabPlacement, int selectedIndex)
BasicTabbedPaneUIGraphicsオブジェクトである必要があります。 タブ配置は、JTabbedPane.TOP、JTabbedPane.BOTTOM、JTabbedPane.LEFT、またはJTabbedPane.RIGHTのいずれかです。 選択されたインデックスは、有効なタブ・ペイン・タブ・インデックス(0からタブ数-1以下)である必要があります。現在タブが選択されていない場合は、-1です。 無効なパラメータの処理は未指定です。 paintTabArea、クラスBasicTabbedPaneUIg - レンダリングに使用するグラフィックス・オブジェクトtabPlacement - JTabbedPane内のタブの配置selectedIndex - 選択されたコンポーネントのタブ・インデックスprotected void setRolloverTab(int index)
indexに設定します。マウスがタブの上にない場合は、indexは-1になります。 渡されたインデックスが有効なタブを識別するかどうかの確認は行われません。 setRolloverTab、クラスBasicTabbedPaneUIindex - マウスが置かれているタブのインデックス。protected int calculateMaxTabHeight(int tabPlacement)
calculateMaxTabHeight、クラスBasicTabbedPaneUIprotected int calculateTabWidth(int tabPlacement,
                                int tabIndex,
                                FontMetrics metrics)
calculateTabWidth、クラスBasicTabbedPaneUIprotected int calculateMaxTabWidth(int tabPlacement)
calculateMaxTabWidth、クラスBasicTabbedPaneUIprotected Insets getTabInsets(int tabPlacement, int tabIndex)
getTabInsets、クラスBasicTabbedPaneUIprotected FontMetrics getFontMetrics()
getFontMetrics、クラスBasicTabbedPaneUIprotected LayoutManager createLayoutManager()
installUIにより起動され、JTabbedPaneを管理するためのレイアウト・マネージャ・オブジェクトを作成します。 tabOverlapが考慮されるTabbedPaneLayoutサブクラスを作成するようにオーバーライドされます。 createLayoutManager、クラスBasicTabbedPaneUIBasicTabbedPaneUI.TabbedPaneLayout, JTabbedPane.getTabLayoutPolicy() バグまたは機能を送信 
詳細なAPIリファレンスおよび開発者ドキュメントについては、Java SEのドキュメントを参照してください。 そのドキュメントには、概念的な概要、用語の定義、回避方法、有効なコード例などの、開発者を対象にしたより詳細な説明が含まれています。 
 Copyright © 1993, 2025, Oracle and/or its affiliates.  All rights reserved.  Use is subject to license terms.  Documentation Redistribution Policyも参照してください。