java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.InternalFrameUI
javax.swing.plaf.basic.BasicInternalFrameUI
javax.swing.plaf.synth.SynthInternalFrameUI
- 所有已实现的接口:
-
PropertyChangeListener
,EventListener
,SynthConstants
,SynthUI
public class SynthInternalFrameUI extends BasicInternalFrameUI implements SynthUI, PropertyChangeListener
为
JInternalFrame
提供Synth外观UI代理。
- 自:
- 1.7
-
Nested Class Summary
Nested classes/interfaces declared in class javax.swing.plaf.basic.BasicInternalFrameUI
BasicInternalFrameUI.BasicInternalFrameListener, BasicInternalFrameUI.BorderListener, BasicInternalFrameUI.ComponentHandler, BasicInternalFrameUI.GlassPaneDispatcher, BasicInternalFrameUI.InternalFrameLayout, BasicInternalFrameUI.InternalFramePropertyChangeListener
-
Field Summary
Fields declared in class javax.swing.plaf.basic.BasicInternalFrameUI
borderListener, componentListener, eastPane, frame, glassPaneDispatcher, internalFrameLayout, northPane, openMenuKey, propertyChangeListener, southPane, titlePane, westPane
Fields declared in interface javax.swing.plaf.synth.SynthConstants
DEFAULT, DISABLED, ENABLED, FOCUSED, MOUSE_OVER, PRESSED, SELECTED
-
Constructor Summary
ModifierConstructorDescriptionprotected
构造一个SynthInternalFrameUI
。 -
Method Summary
Modifier and TypeMethodDescriptionstatic ComponentUI
为给定的组件创建一个新的UI对象。返回指定组件的上下文。void
安装默认值。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
当绑定属性更改时调用此方法。void
update
(Graphics g, JComponent c) 通知此UI代理重新绘制指定的组件。Methods declared in class javax.swing.plaf.basic.BasicInternalFrameUI
activateFrame, closeFrame, createBorderListener, createComponentListener, createDesktopManager, createEastPane, createGlassPaneDispatcher, createInternalFrameListener, createLayoutManager, createNorthPane, createPropertyChangeListener, createSouthPane, createWestPane, deactivateFrame, deiconifyFrame, deinstallMouseHandlers, getDesktopManager, getEastPane, getMaximumSize, getMinimumSize, getNorthPane, getPreferredSize, getSouthPane, getWestPane, iconifyFrame, installComponents, installKeyboardActions, installListeners, installMouseHandlers, installUI, isKeyBindingActive, isKeyBindingRegistered, maximizeFrame, minimizeFrame, replacePane, setEastPane, setKeyBindingActive, setKeyBindingRegistered, setNorthPane, setSouthPane, setupMenuCloseKey, setupMenuOpenKey, setWestPane, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUI
Methods declared in class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior
-
Constructor Details
-
SynthInternalFrameUI
构造一个SynthInternalFrameUI
。- 参数:
-
b
- 一个内部框架
-
-
Method Details
-
createUI
为给定的组件创建一个新的UI对象。- 参数:
-
b
- 要为其创建UI对象的组件 - 返回:
- UI对象
-
installDefaults
public void installDefaults()安装默认值。 -
getContext
返回指定组件的上下文。- 指定者:
-
getContext
在接口SynthUI
- 参数:
-
c
- 请求SynthContext的组件 - 返回:
- 描述组件的SynthContext。
-
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
- 边框的高度
-
propertyChange
当绑定属性更改时调用此方法。- 指定者:
-
propertyChange
在接口PropertyChangeListener
- 参数:
-
evt
- 描述事件源和已更改属性的PropertyChangeEvent对象
-