public class MetalDesktopIconUI extends BasicDesktopIconUI
BasicDesktopIconUI.MouseInputHandler
desktopIcon, 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, uninstallUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, paint, update
public static ComponentUI createUI(JComponent c)
protected void installDefaults()
installDefaults
方法重写,继承类
BasicDesktopIconUI
protected void installComponents()
installComponents
方法重写,继承类
BasicDesktopIconUI
protected void uninstallComponents()
uninstallComponents
方法重写,继承类
BasicDesktopIconUI
protected void installListeners()
installListeners
方法重写,继承类
BasicDesktopIconUI
protected void uninstallListeners()
uninstallListeners
方法重写,继承类
BasicDesktopIconUI
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.