APIdia Launch Partner
Top Description Inners Fields Constructors Methods
javax.swing.plaf.metal

public Class MetalDesktopIconUI

extends BasicDesktopIconUI
Class Inheritance
Imports
java.awt.*, java.awt.event.*, javax.swing.*, javax.swing.border.*, javax.swing.plaf.*, java.beans.*, java.util.EventListener, java.io.Serializable, javax.swing.plaf.basic.BasicDesktopIconUI

Metal desktop icon.
Author
Steve Wilson

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv class

Field Summary

Modifier and TypeField and Description
pack-priv JButton
pack-priv JLabel
pack-priv MetalDesktopIconUI.TitleListener
private int
Inherited from javax.swing.plaf.basic.BasicDesktopIconUI:
desktopIconframeiconPane

Constructor Summary

AccessConstructor and Description
public
MetalDesktopIconUI()

Constructs a new instance of MetalDesktopIconUI.

Method Summary

Modifier and TypeMethod and Description
public static ComponentUI

Returns:

a new instance of MetalDesktopIconUI
createUI
(JComponent
a component
c
)

Hides javax.swing.plaf.basic.BasicDesktopIconUI.createUI.

Constructs a new instance of MetalDesktopIconUI.

public Dimension
public Dimension
getMinimumSize(JComponent c)

Overrides javax.swing.plaf.basic.BasicDesktopIconUI.getMinimumSize.

Returns the specified component's minimum size appropriate for the look and feel.

public Dimension
getPreferredSize(JComponent c)

Overrides javax.swing.plaf.basic.BasicDesktopIconUI.getPreferredSize.

Returns the specified component's preferred size appropriate for the look and feel.

protected void
protected void
protected void
protected void
protected void
Inherited from javax.swing.plaf.basic.BasicDesktopIconUI:
createMouseInputListenerdeiconizegetInsetsinstallUIuninstallDefaultsuninstallUI

Field Detail

buttonback to summary
pack-priv JButton button
labelback to summary
pack-priv JLabel label
titleListenerback to summary
pack-priv MetalDesktopIconUI.TitleListener titleListener
widthback to summary
private int width

Constructor Detail

MetalDesktopIconUIback to summary
public MetalDesktopIconUI()

Constructs a new instance of MetalDesktopIconUI.

Method Detail

createUIback to summary
public static ComponentUI createUI(JComponent c)

Hides javax.swing.plaf.basic.BasicDesktopIconUI.createUI.

Constructs a new instance of MetalDesktopIconUI.

Parameters
c:JComponent

a component

Returns:ComponentUI

a new instance of MetalDesktopIconUI

getMaximumSizeback to summary
public Dimension getMaximumSize(JComponent c)

Overrides javax.swing.plaf.basic.BasicDesktopIconUI.getMaximumSize.

Doc from javax.swing.plaf.basic.BasicDesktopIconUI.getMaximumSize.

Desktop icons can not be resized. Therefore, we should always return the minimum size of the desktop icon.

getMinimumSizeback to summary
public Dimension getMinimumSize(JComponent c)

Overrides javax.swing.plaf.basic.BasicDesktopIconUI.getMinimumSize.

Doc from javax.swing.plaf.ComponentUI.getMinimumSize.

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.

getPreferredSizeback to summary
public Dimension getPreferredSize(JComponent c)

Overrides javax.swing.plaf.basic.BasicDesktopIconUI.getPreferredSize.

Doc from javax.swing.plaf.ComponentUI.getPreferredSize.

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.

installComponentsback to summary
protected void installComponents()

Overrides javax.swing.plaf.basic.BasicDesktopIconUI.installComponents.

Doc from javax.swing.plaf.basic.BasicDesktopIconUI.installComponents.

Registers components.

installDefaultsback to summary
protected void installDefaults()

Overrides javax.swing.plaf.basic.BasicDesktopIconUI.installDefaults.

Doc from javax.swing.plaf.basic.BasicDesktopIconUI.installDefaults.

Installs default properties.

installListenersback to summary
protected void installListeners()

Overrides javax.swing.plaf.basic.BasicDesktopIconUI.installListeners.

Doc from javax.swing.plaf.basic.BasicDesktopIconUI.installListeners.

Registers listeners.

uninstallComponentsback to summary
protected void uninstallComponents()

Overrides javax.swing.plaf.basic.BasicDesktopIconUI.uninstallComponents.

Doc from javax.swing.plaf.basic.BasicDesktopIconUI.uninstallComponents.

Unregisters components.

uninstallListenersback to summary
protected void uninstallListeners()

Overrides javax.swing.plaf.basic.BasicDesktopIconUI.uninstallListeners.

Doc from javax.swing.plaf.basic.BasicDesktopIconUI.uninstallListeners.

Unregisters listeners.

javax.swing.plaf.metal back to summary

pack-priv Class MetalDesktopIconUI.TitleListener

extends Object
implements PropertyChangeListener
Class Inheritance
All Implemented Interfaces
java.beans.PropertyChangeListener, java.util.EventListener

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public void
propertyChange(PropertyChangeEvent e)

Implements java.beans.PropertyChangeListener.propertyChange.

This method gets called when a bound property is changed.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

TitleListenerback to summary
pack-priv TitleListener()

Method Detail

propertyChangeback to summary
public void propertyChange(PropertyChangeEvent e)

Implements java.beans.PropertyChangeListener.propertyChange.

Doc from java.beans.PropertyChangeListener.propertyChange.

This method gets called when a bound property is changed.