- java.lang.Object
-
- javax.swing.plaf.ComponentUI
-
- javax.swing.plaf.SplitPaneUI
-
- javax.swing.plaf.basic.BasicSplitPaneUI
-
- javax.swing.plaf.synth.SynthSplitPaneUI
-
- 实现的所有接口
-
PropertyChangeListener
,EventListener
,SynthConstants
,SynthUI
public class SynthSplitPaneUIextends BasicSplitPaneUIimplements PropertyChangeListener, SynthUI
为JSplitPane
提供Synth L&F UI代表。- 从以下版本开始:
- 1.7
-
-
嵌套类汇总
-
嵌套类/接口声明在类 javax.swing.plaf.basic.BasicSplitPaneUI
BasicSplitPaneUI.BasicHorizontalLayoutManager, BasicSplitPaneUI.BasicVerticalLayoutManager, BasicSplitPaneUI.FocusHandler, BasicSplitPaneUI.KeyboardDownRightHandler, BasicSplitPaneUI.KeyboardEndHandler, BasicSplitPaneUI.KeyboardHomeHandler, BasicSplitPaneUI.KeyboardResizeToggleHandler, BasicSplitPaneUI.KeyboardUpLeftHandler, BasicSplitPaneUI.PropertyHandler
-
-
字段汇总
-
声明的属性在类 javax.swing.plaf.basic.BasicSplitPaneUI
beginDragDividerLocation, divider, dividerResizeToggleKey, dividerSize, downKey, draggingHW, endKey, focusListener, homeKey, KEYBOARD_DIVIDER_MOVE_OFFSET, keyboardDownRightListener, keyboardEndListener, keyboardHomeListener, keyboardResizeToggleListener, keyboardUpLeftListener, layoutManager, leftKey, NON_CONTINUOUS_DIVIDER, nonContinuousLayoutDivider, propertyChangeListener, rightKey, splitPane, upKey
-
Fields declared in interface javax.swing.plaf.synth.SynthConstants
DEFAULT, DISABLED, ENABLED, FOCUSED, MOUSE_OVER, PRESSED, SELECTED
-
-
构造方法摘要
构造方法 构造器 描述 SynthSplitPaneUI()
-
方法摘要
所有方法 静态方法 实例方法 具体的方法 变量和类型 方法 描述 BasicSplitPaneDivider
createDefaultDivider()
创建默认分隔符。static ComponentUI
createUI(JComponent x)
创建一个新的SynthSplitPaneUI实例protected void
installDefaults()
安装UI默认值。protected void
installListeners()
为UI安装事件侦听器。void
paint(Graphics g, JComponent c)
根据外观和感觉绘制指定的组件。protected void
paint(SynthContext context, Graphics g)
绘制指定的组件。protected void
uninstallDefaults()
卸载UI默认值。protected void
uninstallListeners()
从UI卸载事件侦听器。void
update(Graphics g, JComponent c)
通知此UI委托重新绘制指定的组件。-
声明方法的类 javax.swing.plaf.basic.BasicSplitPaneUI
createDefaultNonContinuousLayoutDivider, createFocusListener, createKeyboardDownRightListener, createKeyboardEndListener, createKeyboardHomeListener, createKeyboardResizeToggleListener, createKeyboardUpLeftListener, createPropertyChangeListener, dragDividerTo, finishDraggingTo, finishedPaintingChildren, getDivider, getDividerBorderSize, getDividerLocation, getInsets, getLastDragLocation, getMaximumDividerLocation, getMaximumSize, getMinimumDividerLocation, getMinimumSize, getNonContinuousLayoutDivider, getOrientation, getPreferredSize, getSplitPane, installKeyboardActions, installUI, isContinuousLayout, resetLayoutManager, resetToPreferredSizes, setContinuousLayout, setDividerLocation, setLastDragLocation, setNonContinuousLayoutDivider, setNonContinuousLayoutDivider, setOrientation, startDragging, uninstallKeyboardActions, uninstallUI
-
声明方法的类 javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior
-
声明方法的类 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 x)
创建一个新的SynthSplitPaneUI实例- 参数
-
x
- 为其创建UI对象的组件 - 结果
- UI对象
-
installDefaults
protected void installDefaults()
安装UI默认值。- 重写:
-
installDefaults
在课堂上BasicSplitPaneUI
-
installListeners
protected void installListeners()
为UI安装事件侦听器。
-
uninstallDefaults
protected void uninstallDefaults()
卸载UI默认值。
-
uninstallListeners
protected void uninstallListeners()
从UI卸载事件侦听器。- 重写:
-
uninstallListeners
在课堂上BasicSplitPaneUI
-
createDefaultDivider
public BasicSplitPaneDivider createDefaultDivider()
创建默认分隔符。- 重写:
-
createDefaultDivider
在课程BasicSplitPaneUI
- 结果
- 默认分隔符
-
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)
-
-