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.PropertyHandlerbeginDragDividerLocation, 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, upKeyDEFAULT, 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()
安装用户界面默认值。
|
protected void |
installListeners()
为用户界面安装事件侦听器。
|
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()
卸载界面的默认值。
|
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, uninstallUIcontains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehaviorpublic static ComponentUI createUI(JComponent x)
x -组件创建UI对象
protected void installDefaults()
installDefaults 方法重写,继承类
BasicSplitPaneUI
protected void installListeners()
installListeners 方法重写,继承类
BasicSplitPaneUI
protected void uninstallDefaults()
uninstallDefaults 方法重写,继承类
BasicSplitPaneUI
protected void uninstallListeners()
uninstallListeners 方法重写,继承类
BasicSplitPaneUI
public SynthContext getContext(JComponent c)
getContext 接口
SynthUI
c组件请求synthcontext。
public void propertyChange(PropertyChangeEvent e)
propertyChange 接口
PropertyChangeListener
e - PropertyChangeEvent对象描述事件源和性质已经改变。
public BasicSplitPaneDivider createDefaultDivider()
createDefaultDivider 方法重写,继承类
BasicSplitPaneUI
protected Component createDefaultNonContinuousLayoutDivider()
Canvas填充深灰色的背景。
createDefaultNonContinuousLayoutDivider 方法重写,继承类
BasicSplitPaneUI
public void update(Graphics g, JComponent c)
paint(SynthContext,Graphics)方法。
在一般情况下,该方法不需要由子类重写。所有的外观和感觉的渲染代码应该在paint方法。
update 方法重写,继承类
ComponentUI
g用于绘画的
Graphics对象
c被画的成分
paint(SynthContext,Graphics)
public void paint(Graphics g, JComponent c)
这种方法不使用Synth外观。绘画是由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)
finishedPaintingChildren 方法重写,继承类
BasicSplitPaneUI
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.