java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.TabbedPaneUI
javax.swing.plaf.basic.BasicTabbedPaneUI
javax.swing.plaf.synth.SynthTabbedPaneUI
- すべての実装されたインタフェース:
PropertyChangeListener
,EventListener
,SynthConstants
,SynthUI
,SwingConstants
public class SynthTabbedPaneUI extends BasicTabbedPaneUI implements PropertyChangeListener, SynthUI
JTabbedPane
のSynth L&F UIの委譲を提供します。
選択されたタブの追加イン・セットを表すselectedTabPadInsets
プロパティをスタイルから検索します。
- 導入されたバージョン:
- 1.7
-
ネストされたクラスのサマリー
クラスjavax.swing.plaf.basic.BasicTabbedPaneUIで宣言されたネストされたクラス/インタフェース
BasicTabbedPaneUI.FocusHandler, BasicTabbedPaneUI.MouseHandler, BasicTabbedPaneUI.PropertyChangeHandler, BasicTabbedPaneUI.TabbedPaneLayout, BasicTabbedPaneUI.TabSelectionHandler
-
フィールドのサマリー
クラス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
インタフェースjavax.swing.plaf.synth.SynthConstantsで宣言されているフィールド
DEFAULT, DISABLED, ENABLED, FOCUSED, MOUSE_OVER, PRESSED, SELECTED
-
コンストラクタのサマリー
コンストラクタ -
メソッドのサマリー
修飾子と型メソッド説明protected LayoutManager
installUI
により起動され、JTabbedPane
を管理するためのレイアウト・マネージャ・オブジェクトを作成します。protected MouseListener
マウス・リスナーを作成します。static ComponentUI
指定されたコンポーネントの新しいUIオブジェクトを作成します。指定されたコンポーネントのコンテキストを返します。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) ボーダーをペイントします。void
バウンド・プロパティの変更時に呼び出されます。void
update
(Graphics g, JComponent c) このUI委譲に、指定されたコンポーネントを再ペイントするよう通知します。クラスjavax.swing.plaf.basic.BasicTabbedPaneUIで宣言されたメソッド
assureRectsCreated, calculateMaxTabHeight, calculateMaxTabWidth, calculateTabAreaHeight, calculateTabAreaWidth, calculateTabHeight, calculateTabWidth, createChangeListener, createFocusListener, createPropertyChangeListener, createScrollButton, expandTabRunsArray, getBaseline, getBaseline, getBaselineOffset, getBaselineResizeBehavior, getContentBorderInsets, getFocusIndex, getFontMetrics, getIconForTab, getNextTabIndex, getNextTabIndexInRun, getNextTabRun, getPreviousTabIndex, getPreviousTabIndexInRun, getPreviousTabRun, getRolloverTab, getRunForTab, getSelectedTabPadInsets, getTabAreaInsets, getTabBounds, getTabBounds, getTabInsets, getTabLabelShiftX, getTabLabelShiftY, getTabRunCount, getTabRunIndent, getTabRunOffset, getTabRunOverlay, getTextViewForTab, getVisibleComponent, installComponents, installDefaults, installKeyboardActions, installListeners, lastTabInRun, layoutLabel, navigateSelectedTab, paintContentBorder, paintContentBorderBottomEdge, paintContentBorderLeftEdge, paintContentBorderRightEdge, paintContentBorderTopEdge, paintFocusIndicator, paintIcon, paintTab, paintTabArea, paintTabBackground, paintTabBorder, paintText, rotateInsets, selectAdjacentRunTab, selectNextTab, selectNextTabInRun, selectPreviousTab, selectPreviousTabInRun, setRolloverTab, setVisibleComponent, shouldPadTabRun, shouldRotateTabRuns, tabForCoordinate, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallListeners
クラスjavax.swing.plaf.ComponentUIで宣言されたメソッド
contains, getAccessibleChild, getAccessibleChildrenCount, getMaximumSize, getMinimumSize, getPreferredSize, installUI, uninstallUI
-
コンストラクタの詳細
-
SynthTabbedPaneUI
public SynthTabbedPaneUI()SynthTabbedPaneUI
を構築します。
-
-
メソッドの詳細
-
createUI
public static ComponentUI createUI(JComponent c) 指定されたコンポーネントの新しいUIオブジェクトを作成します。- パラメータ:
c
- UIオブジェクトを作成するコンポーネント- 戻り値:
- UIオブジェクト
-
getContext
public SynthContext getContext(JComponent c) 指定されたコンポーネントのコンテキストを返します。- 定義:
getContext
、インタフェースSynthUI
- パラメータ:
c
- SynthContextを要求するコンポーネント。- 戻り値:
- コンポーネントを記述するSynthContext。
-
propertyChange
public void propertyChange(PropertyChangeEvent e) バウンド・プロパティの変更時に呼び出されます。- 定義:
propertyChange
、インタフェースPropertyChangeListener
- パラメータ:
e
- イベント・ソースと変更されたプロパティを記述したPropertyChangeEventオブジェクト。
-
createMouseListener
protected MouseListener createMouseListener()マウス・リスナーを作成します。 選択されたタブが押されてもいるかどうかを追跡するためにオーバーライドされます。- オーバーライド:
createMouseListener
、クラスBasicTabbedPaneUI
- 戻り値:
- マウス・リスナー
-
update
public void update(Graphics g, JComponent c) このUI委譲に、指定されたコンポーネントを再ペイントするよう通知します。 このメソッドはコンポーネントのバックグラウンドをペイントし、paint(SynthContext,Graphics)
メソッドを呼び出します。一般に、このメソッドはサブクラスによってオーバーライドする必要はありません。 すべてのLook & Feelの描画コードを
paint
メソッドに入れるようにしてください。- オーバーライド:
update
、クラスComponentUI
- パラメータ:
g
- ペイントに使用されるGraphics
オブジェクトc
- ペイントされるコンポーネント- 関連項目:
-
paintBorder
public void paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h) ボーダーをペイントします。- 定義:
paintBorder
、インタフェースSynthUI
- パラメータ:
context
- コンポーネント・コンテキストg
- ペイントされるGraphics
x
- X座標y
- Y座標w
- ボーダーの幅h
- ボーダーの高さ
-
paint
public void paint(Graphics g, JComponent c) Look & Feelに従って、指定されたコンポーネントをペイントします。このメソッドは、Synth Look & Feelで使用されません。 ペイントは
paint(SynthContext,Graphics)
メソッドによって処理されます。- オーバーライド:
paint
、クラスComponentUI
- パラメータ:
g
- ペイントに使用されるGraphics
オブジェクトc
- ペイントされるコンポーネント- 関連項目:
-
paint
protected void paint(SynthContext context, Graphics g) 指定されたコンポーネントをペイントします。- パラメータ:
context
- ペイントされるコンポーネントのコンテキストg
- ペイントに使用されるGraphics
オブジェクト- 関連項目:
-
createLayoutManager
protected LayoutManager createLayoutManager()installUI
により起動され、JTabbedPane
を管理するためのレイアウト・マネージャ・オブジェクトを作成します。 tabOverlapが考慮されるTabbedPaneLayoutサブクラスを作成するようにオーバーライドされます。- オーバーライド:
createLayoutManager
、クラスBasicTabbedPaneUI
- 戻り値:
- レイアウト・マネージャ・オブジェクト
- 関連項目:
-