public class MetalDesktopIconUI extends BasicDesktopIconUI
Metal desktop icon.
BasicDesktopIconUI.MouseInputHandler desktopIcon, frame, iconPane public MetalDesktopIconUI()
public static ComponentUI createUI(JComponent c)
protected void installDefaults()
installDefaults in class BasicDesktopIconUI
protected void installComponents()
installComponents in class BasicDesktopIconUI
protected void uninstallComponents()
uninstallComponents in class BasicDesktopIconUI
protected void installListeners()
installListeners in class BasicDesktopIconUI
protected void uninstallListeners()
uninstallListeners in class BasicDesktopIconUI
public Dimension getPreferredSize(JComponent c)
Description copied from class: ComponentUI
Returns the specified component's preferred size appropriate for the look and feel. If 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 componentsJComponent.getPreferredSize(), LayoutManager.preferredLayoutSize(java.awt.Container)
public Dimension getMinimumSize(JComponent c)
Description copied from class: ComponentUI
Returns the specified component's minimum size appropriate for the look and feel. If 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 componentsDimension object or null
JComponent.getMinimumSize(), LayoutManager.minimumLayoutSize(java.awt.Container), ComponentUI.getPreferredSize(javax.swing.JComponent)
public Dimension getMaximumSize(JComponent c)
Description copied from class: BasicDesktopIconUI
Desktop icons can not be resized. Therefore, we should always return the minimum size of the desktop icon.
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 componentsDimension object or null
BasicDesktopIconUI.getMinimumSize(javax.swing.JComponent)
© 1993–2017, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.