public class SynthInternalFrameUI extends BasicInternalFrameUI implements SynthUI, PropertyChangeListener
JInternalFrame
提供Synth L&F UI代表。
BasicInternalFrameUI.BasicInternalFrameListener,
BasicInternalFrameUI.BorderListener,
BasicInternalFrameUI.ComponentHandler,
BasicInternalFrameUI.GlassPaneDispatcher,
BasicInternalFrameUI.InternalFrameLayout,
BasicInternalFrameUI.InternalFramePropertyChangeListener
borderListener,
componentListener,
eastPane,
frame,
glassPaneDispatcher,
internalFrameLayout,
northPane,
openMenuKey,
propertyChangeListener,
southPane,
titlePane,
westPane
DEFAULT,
DISABLED,
ENABLED,
FOCUSED,
MOUSE_OVER,
PRESSED,
SELECTED
Modifier | Constructor and Description |
---|---|
protected |
SynthInternalFrameUI(JInternalFrame b)
|
Modifier and Type | Method and Description |
---|---|
protected ComponentListener |
createComponentListener()
|
protected JComponent
|
createNorthPane(JInternalFrame w)
|
static ComponentUI |
createUI(JComponent b)
为给定的组件创建一个新的UI对象。
|
SynthContext |
getContext(JComponent c)
返回指定组件的上下文。
|
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 evt)
当绑定属性更改时,此方法将被调用。
|
protected void |
uninstallComponents()
|
protected void |
uninstallDefaults()
|
protected void |
uninstallListeners()
|
void |
update(Graphics g,
JComponent c)
通知此UI代理重新绘制指定的组件。
|
activateFrame,
closeFrame,
createBorderListener,
createDesktopManager,
createEastPane,
createGlassPaneDispatcher,
createInternalFrameListener,
createLayoutManager,
createPropertyChangeListener,
createSouthPane,
createWestPane,
deactivateFrame,
deiconifyFrame,
deinstallMouseHandlers,
getDesktopManager,
getEastPane,
getMaximumSize,
getMinimumSize,
getNorthPane,
getPreferredSize,
getSouthPane,
getWestPane,
iconifyFrame,
installComponents,
installKeyboardActions,
installMouseHandlers,
installUI,
isKeyBindingActive,
isKeyBindingRegistered,
maximizeFrame,
minimizeFrame,
replacePane,
setEastPane,
setKeyBindingActive,
setKeyBindingRegistered,
setNorthPane,
setSouthPane,
setupMenuCloseKey,
setupMenuOpenKey,
setWestPane,
uninstallKeyboardActions,
uninstallUI
contains,
getAccessibleChild,
getAccessibleChildrenCount,
getBaseline,
getBaselineResizeBehavior
protected SynthInternalFrameUI(JInternalFrame b)
public static ComponentUI createUI(JComponent b)
b
- 为其创建UI对象的组件
public void installDefaults()
protected void installListeners()
protected void uninstallComponents()
protected void uninstallListeners()
protected void uninstallDefaults()
public SynthContext getContext(JComponent c)
getContext
在接口
SynthUI
c
- 组件请求SynthContext。
protected JComponent createNorthPane(JInternalFrame w)
protected ComponentListener createComponentListener()
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
在
ComponentUI
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
- A PropertyChangeEvent object describing the event source and
the property that has changed.