- 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代表。从Style中
selectedTabPadInsets
属性,该属性表示所选选项卡的其他插入内容。- 从以下版本开始:
- 1.7
-
-
字段汇总
-
声明的属性在类 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
-
Fields declared in interface 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
-
Fields declared in interface javax.swing.plaf.synth.SynthConstants
DEFAULT, DISABLED, ENABLED, FOCUSED, MOUSE_OVER, PRESSED, SELECTED
-
-
构造方法摘要
构造方法 构造器 描述 SynthTabbedPaneUI()
-
方法摘要
所有方法 静态方法 实例方法 具体的方法 变量和类型 方法 描述 protected LayoutManager
createLayoutManager()
由installUI
调用以创建布局管理器对象来管理JTabbedPane
。protected MouseListener
createMouseListener()
创建一个鼠标监听器。static ComponentUI
createUI(JComponent c)
为给定组件创建新的UI对象。void
paint(Graphics g, JComponent c)
根据外观和感觉绘制指定的组件。protected void
paint(SynthContext context, Graphics g)
绘制指定的组件。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, 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.TabbedPaneUI
getTabRunCount
-
声明方法的类 javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getMaximumSize, getMinimumSize, getPreferredSize, installUI, uninstallUI
-
声明方法的类 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
声明方法的接口 java.beans.PropertyChangeListener
propertyChange
-
声明方法的接口 javax.swing.plaf.synth.SynthUI
getContext, paintBorder
-
-
-
-
方法详细信息
-
createUI
public static ComponentUI createUI(JComponent c)
为给定组件创建新的UI对象。- 参数
-
c
- 为其创建UI对象的组件 - 结果
- UI对象
-
createMouseListener
protected MouseListener createMouseListener()
创建一个鼠标监听器。 重写以跟踪是否也按下所选选项卡。- 重写:
-
createMouseListener
在类BasicTabbedPaneUI
- 结果
- 一个老鼠听众
-
update
public void update(Graphics g, JComponent c)
通知此UI委托重新绘制指定的组件。 此方法绘制组件背景,然后调用paint(SynthContext,Graphics)
方法。通常,此方法不需要被子类覆盖。 所有外观和感觉渲染代码应驻留在
paint
方法中。- 重写:
-
update
在课程ComponentUI
- 参数
-
g
- 用于绘画的Graphics
对象 -
c
- 正在绘制的组件 - 另请参见:
-
paint(SynthContext,Graphics)
-
paint
public void paint(Graphics g, JComponent c)
根据外观和感觉绘制指定的组件。Synth Look and Feel不使用此方法。 绘画由
paint(SynthContext,Graphics)
方法处理。- 重写:
-
paint
,类ComponentUI
- 参数
-
g
- 用于绘画的Graphics
对象 -
c
- 正在绘制的组件 - 另请参见:
-
paint(SynthContext,Graphics)
-
paint
protected void paint(SynthContext context, Graphics g)
绘制指定的组件。- 参数
-
context
- 正在绘制的组件的上下文 -
g
- 用于绘画的Graphics
对象 - 另请参见:
-
update(Graphics,JComponent)
-
createLayoutManager
protected LayoutManager createLayoutManager()
由installUI
调用以创建布局管理器对象来管理JTabbedPane
。 重写以创建一个TabbedPaneLayout子类,该子类考虑tabOverlap。- 重写:
-
createLayoutManager
,类BasicTabbedPaneUI
- 结果
- 布局管理器对象
- 另请参见:
-
BasicTabbedPaneUI.TabbedPaneLayout
,JTabbedPane.getTabLayoutPolicy()
-
-