public class

MotifDesktopIconUI

extends BasicDesktopIconUI
java.lang.Object
   ↳ javax.swing.plaf.ComponentUI
     ↳ javax.swing.plaf.DesktopIconUI
       ↳ javax.swing.plaf.basic.BasicDesktopIconUI
         ↳ com.sun.java.swing.plaf.motif.MotifDesktopIconUI

Class Overview

Motif rendition of the component.

Summary

Nested Classes
class MotifDesktopIconUI.DesktopIconActionListener  
class MotifDesktopIconUI.DesktopIconMouseListener  
class MotifDesktopIconUI.IconButton  
class MotifDesktopIconUI.IconLabel  
Fields
protected Icon defaultIcon
protected MotifDesktopIconUI.DesktopIconActionListener desktopIconActionListener
protected MotifDesktopIconUI.DesktopIconMouseListener desktopIconMouseListener
protected MotifDesktopIconUI.IconButton iconButton
protected MotifDesktopIconUI.IconLabel iconLabel
[Expand]
Inherited Fields
From class javax.swing.plaf.basic.BasicDesktopIconUI
Public Constructors
MotifDesktopIconUI()
Public Methods
static ComponentUI createUI(JComponent c)
Icon getDefaultIcon()
Returns the default desktop icon.
Dimension getMaximumSize(JComponent c)
Desktop icons can not be resized.
Dimension getMinimumSize(JComponent c)
Returns the specified component's minimum size appropriate for the look and feel.
Dimension getPreferredSize(JComponent c)
Returns the specified component's preferred size appropriate for the look and feel.
void setDefaultIcon(Icon newIcon)
Sets the icon used as the default desktop icon.
Protected Methods
MotifDesktopIconUI.DesktopIconActionListener createDesktopIconActionListener()
MotifDesktopIconUI.DesktopIconMouseListener createDesktopIconMouseListener()
MotifDesktopIconUI.IconButton createIconButton(Icon i)
MotifDesktopIconUI.IconLabel createIconLabel(JInternalFrame frame)
void hideSystemMenu()
void installComponents()
void installDefaults()
void installListeners()
void showSystemMenu()
void uninstallComponents()
void uninstallDefaults()
void uninstallListeners()
[Expand]
Inherited Methods
From class javax.swing.plaf.basic.BasicDesktopIconUI
From class javax.swing.plaf.ComponentUI
From class java.lang.Object

Fields

protected Icon defaultIcon

protected MotifDesktopIconUI.DesktopIconActionListener desktopIconActionListener

protected MotifDesktopIconUI.DesktopIconMouseListener desktopIconMouseListener

protected MotifDesktopIconUI.IconButton iconButton

protected MotifDesktopIconUI.IconLabel iconLabel

Public Constructors

public MotifDesktopIconUI ()

Public Methods

public static ComponentUI createUI (JComponent c)

public Icon getDefaultIcon ()

Returns the default desktop icon.

public Dimension getMaximumSize (JComponent c)

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

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

public Dimension getMinimumSize (JComponent c)

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.

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

public Dimension getPreferredSize (JComponent c)

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.

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

public void setDefaultIcon (Icon newIcon)

Sets the icon used as the default desktop icon.

Protected Methods

protected MotifDesktopIconUI.DesktopIconActionListener createDesktopIconActionListener ()

protected MotifDesktopIconUI.DesktopIconMouseListener createDesktopIconMouseListener ()

protected MotifDesktopIconUI.IconButton createIconButton (Icon i)

protected MotifDesktopIconUI.IconLabel createIconLabel (JInternalFrame frame)

protected void hideSystemMenu ()

protected void installComponents ()

protected void installDefaults ()

protected void installListeners ()

protected void showSystemMenu ()

protected void uninstallComponents ()

protected void uninstallDefaults ()

protected void uninstallListeners ()