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)
SynthUIgetContext、インタフェース: SynthUIc - SynthContext を要求するコンポーネント。protected JButton createScrollButton(int direction)
BasicTabbedPaneUIcreateScrollButton、クラス: BasicTabbedPaneUIdirection - SwingConstants 定数のいずれか:SOUTH、NORTH、EAST、または WESTJTabbedPane.setTabPlacement(int), SwingConstantspublic void propertyChange(PropertyChangeEvent e)
PropertyChangeListenerpropertyChange、インタフェース: 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)
BasicTabbedPaneUIgetBaseline、クラス: BasicTabbedPaneUItab - ベースラインを取得するタブのインデックスpublic void paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
SynthUIpaintBorder、インタフェース: 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)
BasicTabbedPaneUIindex に設定します。マウスがタブの上にない場合は、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()
BasicTabbedPaneUIinstallUI により起動され、JTabbedPane を管理するためのレイアウトマネージャーオブジェクトを作成します。createLayoutManager、クラス: BasicTabbedPaneUIBasicTabbedPaneUI.TabbedPaneLayout, JTabbedPane.getTabLayoutPolicy() バグまたは機能を送信
詳細な API リファレンスおよび開発者ドキュメントについては、Java SE のドキュメントを参照してください。そのドキュメントには、概念的な概要、用語の定義、回避方法、有効なコード例などの、開発者を対象にしたより詳細な説明が含まれています。
Copyright © 1993, 2013, Oracle and/or its affiliates. All rights reserved.