public class SynthSplitPaneUI extends BasicSplitPaneUI implements PropertyChangeListener, SynthUI
JSplitPane
。
BasicSplitPaneUI.BasicHorizontalLayoutManager, BasicSplitPaneUI.BasicVerticalLayoutManager, BasicSplitPaneUI.FocusHandler, BasicSplitPaneUI.KeyboardDownRightHandler, BasicSplitPaneUI.KeyboardEndHandler, BasicSplitPaneUI.KeyboardHomeHandler, BasicSplitPaneUI.KeyboardResizeToggleHandler, BasicSplitPaneUI.KeyboardUpLeftHandler, BasicSplitPaneUI.PropertyHandler
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
DEFAULT, DISABLED, ENABLED, FOCUSED, MOUSE_OVER, PRESSED, SELECTED
Constructor and Description |
---|
SynthSplitPaneUI() |
Modifier and Type | Method and Description |
---|---|
BasicSplitPaneDivider |
createDefaultDivider()
创建默认分隔符。
|
protected Component |
createDefaultNonContinuousLayoutDivider()
返回默认的非连续布局分隔符,这是一个
Canvas 的实例,用灰色填充背景。
|
static ComponentUI |
createUI(JComponent x)
创建一个新的SynthSplitPaneUI实例
|
void |
finishedPaintingChildren(JSplitPane jc, Graphics g)
当指定的拆分窗格绘制其子项时调用。
|
SynthContext |
getContext(JComponent c)
返回指定组件的上下文。
|
protected void |
installDefaults()
安装UI默认值。
|
protected void |
installListeners()
安装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 |
propertyChange(PropertyChangeEvent e)
当绑定属性更改时,此方法将被调用。
|
protected void |
uninstallDefaults()
卸载UI默认值。
|
protected void |
uninstallListeners()
从UI中卸载事件侦听器。
|
void |
update(Graphics g, JComponent c)
通知此UI代理重新绘制指定的组件。
|
createFocusListener, createKeyboardDownRightListener, createKeyboardEndListener, createKeyboardHomeListener, createKeyboardResizeToggleListener, createKeyboardUpLeftListener, createPropertyChangeListener, dragDividerTo, finishDraggingTo, 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
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior
public static ComponentUI createUI(JComponent x)
x
- 创建UI对象的组件
protected void installDefaults()
protected void installListeners()
protected void uninstallDefaults()
protected void uninstallListeners()
public SynthContext getContext(JComponent c)
getContext
在界面
SynthUI
c
- 组件请求SynthContext。
public void propertyChange(PropertyChangeEvent e)
propertyChange
在界面
PropertyChangeListener
e
- 描述事件源和已更改属性的PropertyChangeEvent对象。
public BasicSplitPaneDivider createDefaultDivider()
protected Component createDefaultNonContinuousLayoutDivider()
Canvas
填充背景的
Canvas
的实例。
public void update(Graphics g, JComponent c)
paint(SynthContext,Graphics)
方法。
通常,此方法不需要被子类覆盖。 所有的Look和Feel渲染代码应该位于paint
方法中。
update
在
ComponentUI
g
- 用于绘画的
Graphics
对象
c
- 被涂的组件
paint(SynthContext,Graphics)
public void paint(Graphics g, JComponent c)
Synth Look and Feel不使用此方法。 绘画由paint(SynthContext,Graphics)
处理。
paint
在类
BasicSplitPaneUI
g
- 用于绘画的
Graphics
对象
c
- 正在涂漆的组件
paint(SynthContext,Graphics)
protected void paint(SynthContext context, Graphics g)
context
- 正在绘制的组件的上下文
g
- 用于绘画的
Graphics
对象
update(Graphics,JComponent)
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
- 边框的高度
public void finishedPaintingChildren(JSplitPane jc, Graphics g)