public class SynthDesktopPaneUI extends BasicDesktopPaneUI implements PropertyChangeListener, SynthUI
JDesktopPane提供Synth L&F UI代表。
BasicDesktopPaneUI.CloseAction, BasicDesktopPaneUI.MaximizeAction, BasicDesktopPaneUI.MinimizeAction, BasicDesktopPaneUI.NavigateAction, BasicDesktopPaneUI.OpenActioncloseKey, desktop, desktopManager, maximizeKey, minimizeKey, navigateKey, navigateKey2DEFAULT, DISABLED, ENABLED, FOCUSED, MOUSE_OVER, PRESSED, SELECTED| Constructor and Description |
|---|
SynthDesktopPaneUI() |
| Modifier and Type | Method and Description |
|---|---|
static ComponentUI |
createUI(JComponent c)
为给定的组件创建一个新的UI对象。
|
SynthContext |
getContext(JComponent c)
返回指定组件的上下文。
|
protected void |
installDefaults() |
protected void |
installDesktopManager() |
protected void |
installListeners()
安装
PropertyChangeListener返回的
createPropertyChangeListener在
JDesktopPane 。
|
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 evt)
当绑定属性更改时,此方法将被调用。
|
protected void |
uninstallDefaults() |
protected void |
uninstallDesktopManager() |
protected void |
uninstallListeners()
卸载
PropertyChangeListener从返回
createPropertyChangeListener从
JDesktopPane 。
|
void |
update(Graphics g, JComponent c)
通知此UI代理重新绘制指定的组件。
|
createPropertyChangeListener, getMaximumSize, getMinimumSize, getPreferredSize, installKeyboardActions, installUI, registerKeyboardActions, uninstallKeyboardActions, uninstallUI, unregisterKeyboardActionscontains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehaviorpublic static ComponentUI createUI(JComponent c)
c - 创建UI对象的组件
protected void installListeners()
PropertyChangeListener从返回
createPropertyChangeListener上
JDesktopPane 。
protected void installDefaults()
protected void uninstallListeners()
createPropertyChangeListener
PropertyChangeListener返回的
JDesktopPane 。
protected void uninstallDefaults()
protected void installDesktopManager()
protected void uninstallDesktopManager()
public SynthContext getContext(JComponent c)
getContext在接口
SynthUI
c - 组件请求SynthContext。
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在
BasicDesktopPaneUI
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 propertyChange(PropertyChangeEvent evt)
propertyChange在接口
PropertyChangeListener
evt - 描述事件源和已更改属性的PropertyChangeEvent对象。
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.