public class MetalDesktopIconUI extends BasicDesktopIconUI
BasicDesktopIconUI.MouseInputHandlerdesktopIcon, frame, iconPane| Constructor and Description |
|---|
MetalDesktopIconUI() |
| Modifier and Type | Method and Description |
|---|---|
static ComponentUI |
createUI(JComponent c) |
Dimension |
getMaximumSize(JComponent c)
桌面图标无法调整大小。
|
Dimension |
getMinimumSize(JComponent c)
返回指定组件的最小尺寸,适合外观和感觉。
|
Dimension |
getPreferredSize(JComponent c)
返回指定组件的偏好大小,适合外观和感觉。
|
protected void |
installComponents() |
protected void |
installDefaults() |
protected void |
installListeners() |
protected void |
uninstallComponents() |
protected void |
uninstallListeners() |
createMouseInputListener, deiconize, getInsets, installUI, uninstallDefaults, uninstallUIcontains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, paint, updatepublic static ComponentUI createUI(JComponent c)
protected void installDefaults()
protected void installComponents()
protected void uninstallComponents()
protected void installListeners()
protected void uninstallListeners()
public Dimension getPreferredSize(JComponent c)
ComponentUI
null ,则首选的大小将由组件的布局管理器计算(这是安装了特定布局管理器的任何组件的首选方法)。
此方法的默认实现返回null 。
getPreferredSize在
BasicDesktopIconUI
c - 查询首选大小的组件;
这个参数经常被忽略,但如果UI对象是无状态的并且被多个组件共享,则可能会被使用
JComponent.getPreferredSize() ,
LayoutManager.preferredLayoutSize(java.awt.Container)
public Dimension getMinimumSize(JComponent c)
ComponentUI
null ,则最小大小将由组件的布局管理器计算(这是安装了特定布局管理器的任何组件的首选方法)。
此方法的默认实现调用getPreferredSize并返回该值。
getMinimumSize在
BasicDesktopIconUI
c - 查询最小大小的组件;
这个参数经常被忽略,但如果UI对象是无状态的并且被多个组件共享,则可能会被使用
Dimension对象或
null
JComponent.getMinimumSize() ,
LayoutManager.minimumLayoutSize(java.awt.Container) ,
ComponentUI.getPreferredSize(javax.swing.JComponent)
public Dimension getMaximumSize(JComponent c)
BasicDesktopIconUI
getMaximumSize在类
BasicDesktopIconUI
c - 查询最大大小的组件;
这个参数经常被忽略,但如果UI对象是无状态的并且被多个组件共享,则可能会被使用
Dimension对象或
null
BasicDesktopIconUI.getMinimumSize(javax.swing.JComponent)
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.