public class MetalDesktopIconUI extends BasicDesktopIconUI
BasicDesktopIconUI.MouseInputHandler desktopIcon, frame, iconPane| Constructor and Description |
|---|
MetalDesktopIconUI()
|
| Modifier and Type | Method and Description |
|---|---|
static ComponentUI |
createUI(JComponent
|
Dimension |
getMaximumSize(JComponent
Desktop icons can not be resized.
|
Dimension |
getMinimumSize(JComponent
Returns the specified component's minimum size appropriate for the look and feel.
|
Dimension |
getPreferredSize(JComponent
Returns the specified component's preferred size appropriate for the look and feel.
|
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 ComponentUIcreateUI(JComponent c)
protected void installDefaults()
protected void installComponents()
protected void uninstallComponents()
protected void installListeners()
protected void uninstallListeners()
public DimensiongetPreferredSize(JComponent c)
ComponentUI
null is returned, the preferred size will be calculated by the component's layout manager instead (this is the preferred approach for any component with a specific layout manager installed). The default implementation of this method returns
null.
getPreferredSize in class
BasicDesktopIconUI
c - the component whose preferred size is being queried; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components
JComponent.getPreferredSize() ,
LayoutManager.preferredLayoutSize(java.awt.Container)
public DimensiongetMinimumSize(JComponent c)
ComponentUI
null is returned, the minimum size will be calculated by the component's layout manager instead (this is the preferred approach for any component with a specific layout manager installed). The default implementation of this method invokes
getPreferredSize and returns that value.
getMinimumSize in class
BasicDesktopIconUI
c - the component whose minimum size is being queried; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components
Dimension object or
null
JComponent.getMinimumSize() ,
LayoutManager.minimumLayoutSize(java.awt.Container) ,
ComponentUI.getPreferredSize(javax.swing.JComponent)
public DimensiongetMaximumSize(JComponent c)
BasicDesktopIconUI
getMaximumSize in class
BasicDesktopIconUI
c - the component whose maximum size is being queried; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components
Dimension object or
null
BasicDesktopIconUI.getMinimumSize(javax.swing.JComponent)