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
为
JSplitPane
提供Synth外观UI代理。
- 自版本:
- 1.7
-
Nested Class Summary
Nested classes/interfaces declared in class javax.swing.plaf.basic.BasicSplitPaneUI
BasicSplitPaneUI.BasicHorizontalLayoutManager, BasicSplitPaneUI.BasicVerticalLayoutManager, BasicSplitPaneUI.FocusHandler, BasicSplitPaneUI.KeyboardDownRightHandler, BasicSplitPaneUI.KeyboardEndHandler, BasicSplitPaneUI.KeyboardHomeHandler, BasicSplitPaneUI.KeyboardResizeToggleHandler, BasicSplitPaneUI.KeyboardUpLeftHandler, BasicSplitPaneUI.PropertyHandler
-
Field Summary
Fields declared in class 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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription创建默认分隔条。static ComponentUI
创建一个新的SynthSplitPaneUI实例返回指定组件的上下文。protected void
安装UI默认值。protected void
为UI安装事件监听器。void
paint
(Graphics g, JComponent c) 根据外观进行绘制指定的组件。protected void
paint
(SynthContext context, Graphics g) 绘制指定的组件。void
paintBorder
(SynthContext context, Graphics g, int x, int y, int w, int h) 绘制边框。void
当绑定属性更改时调用此方法。protected void
卸载UI默认值。protected void
从UI卸载事件监听器。void
update
(Graphics g, JComponent c) 通知此UI代理重新绘制指定的组件。Methods declared in class 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
Methods declared in class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior
-
Constructor Details
-
SynthSplitPaneUI
public SynthSplitPaneUI()构造一个SynthSplitPaneUI
。
-
-
Method Details
-
createUI
创建一个新的SynthSplitPaneUI实例- 参数:
-
x
- 要为其创建UI对象的组件 - 返回:
- UI对象
-
installDefaults
protected void installDefaults()安装UI默认值。- 覆盖:
-
installDefaults
在类BasicSplitPaneUI
-
installListeners
protected void installListeners()为UI安装事件监听器。- 覆盖:
-
installListeners
在类BasicSplitPaneUI
-
uninstallDefaults
protected void uninstallDefaults()卸载UI默认值。 -
uninstallListeners
protected void uninstallListeners()从UI卸载事件监听器。 -
getContext
返回指定组件的上下文。- 指定者:
-
getContext
在接口SynthUI
- 参数:
-
c
- 请求SynthContext的组件。 - 返回:
- 描述组件的SynthContext。
-
propertyChange
当绑定属性更改时调用此方法。- 指定者:
-
propertyChange
在接口PropertyChangeListener
- 参数:
-
e
- 描述事件源和已更改属性的PropertyChangeEvent对象。
-
createDefaultDivider
创建默认分隔条。- 覆盖:
-
createDefaultDivider
在类BasicSplitPaneUI
- 返回:
- 默认分隔条
-
update
通知此UI代理重新绘制指定的组件。此方法绘制组件背景,然后调用paint(SynthContext,Graphics)
方法。一般来说,子类不需要覆盖此方法。所有外观渲染代码应位于
paint
方法中。- 覆盖:
-
update
在类ComponentUI
- 参数:
-
g
- 用于绘制的Graphics
对象 -
c
- 正在绘制的组件 - 参见:
-
paint
根据外观绘制指定的组件。此方法不被Synth外观使用。绘制由
paint(SynthContext,Graphics)
方法处理。- 覆盖:
-
paint
在类ComponentUI
- 参数:
-
g
- 用于绘制的Graphics
对象 -
c
- 正在绘制的组件 - 参见:
-
paint
绘制指定的组件。此实现不执行任何操作。- 参数:
-
context
- 正在绘制的组件的上下文 -
g
- 用于绘制的Graphics
对象 - 参见:
-
paintBorder
绘制边框。- 指定者:
-
paintBorder
在接口SynthUI
- 参数:
-
context
- 组件上下文 -
g
- 要绘制的Graphics
-
x
- X坐标 -
y
- Y坐标 -
w
- 边框的宽度 -
h
- 边框的高度
-