Package Summary  Overview Summary

class:MetalDesktopIconUI [NONE]


public class MetalDesktopIconUIextends BasicDesktopIconUI
Metal desktop icon.

constructor:MetalDesktopIconUI() [NONE]

  • MetalDesktopIconUI

    public MetalDesktopIconUI()
    Constructs a new instance of MetalDesktopIconUI.

method:createUI(javax.swing.JComponent) [NONE]

  • createUI

    public static  ComponentUI createUI (JComponent c)
    Constructs a new instance of MetalDesktopIconUI.
    Parameters:
    c - a component
    Returns:
    a new instance of MetalDesktopIconUI
  • method:installDefaults() [NONE]

    installDefaults

    protected void installDefaults()
    Description copied from class: BasicDesktopIconUI
    Installs default properties.
    Overrides:
    installDefaults in class BasicDesktopIconUI

    method:installComponents() [NONE]

    installComponents

    protected void installComponents()
    Description copied from class: BasicDesktopIconUI
    Registers components.
    Overrides:
    installComponents in class BasicDesktopIconUI

    method:uninstallComponents() [NONE]

    uninstallComponents

    protected void uninstallComponents()
    Description copied from class: BasicDesktopIconUI
    Unregisters components.
    Overrides:
    uninstallComponents in class BasicDesktopIconUI

    method:installListeners() [NONE]

    installListeners

    protected void installListeners()
    Description copied from class: BasicDesktopIconUI
    Registers listeners.
    Overrides:
    installListeners in class BasicDesktopIconUI

    method:uninstallListeners() [NONE]

    uninstallListeners

    protected void uninstallListeners()
    Description copied from class: BasicDesktopIconUI
    Unregisters listeners.
    Overrides:
    uninstallListeners in class BasicDesktopIconUI

    method:getPreferredSize(javax.swing.JComponent) [NONE]

    getPreferredSize

    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.
    Overrides:
    getPreferredSize in class BasicDesktopIconUI
    Parameters:
    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
    Returns:
    a Dimension object containing given component's preferred size appropriate for the look and feel
    See Also:

    method:getMinimumSize(javax.swing.JComponent) [NONE]

    getMinimumSize

    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.
    Overrides:
    getMinimumSize in class BasicDesktopIconUI
    Parameters:
    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
    Returns:
    a Dimension object or null
    See Also:

    method:getMaximumSize(javax.swing.JComponent) [NONE]

    getMaximumSize

    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.
    Overrides:
    getMaximumSize in class BasicDesktopIconUI
    Parameters:
    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
    Returns:
    a Dimension object or null
    See Also:

    © 2022 Oracle Corporation and/or its affiliates