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, 2014, Oracle and/or its affiliates. All rights reserved.