APIdia Launch Partner
Top Description Inners Fields Constructors Methods
com.sun.java.swing.plaf.motif

public Class MotifDesktopIconUI

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

Motif rendition of the component.
Authors
Thomas Ball, Rich Schiavi

Nested and Inner Type Summary

Modifier and TypeClass and Description
protected class
protected class
protected class
protected class

Field Summary

Modifier and TypeField and Description
protected Icon
pack-priv static final Font
protected MotifDesktopIconUI.DesktopIconActionListener
protected MotifDesktopIconUI.DesktopIconMouseListener
protected MotifDesktopIconUI.IconButton
protected MotifDesktopIconUI.IconLabel
pack-priv static final int
pack-priv static final int
pack-priv EventListener
private MotifInternalFrameTitlePane
pack-priv JPopupMenu
Inherited from javax.swing.plaf.basic.BasicDesktopIconUI:
desktopIconframeiconPane

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected MotifDesktopIconUI.DesktopIconActionListener
protected MotifDesktopIconUI.DesktopIconMouseListener
protected MotifDesktopIconUI.IconButton
protected MotifDesktopIconUI.IconLabel
public static ComponentUI
createUI(JComponent c)

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

Constructs a new instance of BasicDesktopIconUI.

public Icon
getDefaultIcon()

Returns the default desktop icon.

pack-priv JInternalFrame.JDesktopIcon
pack-priv JInternalFrame
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
public void
setDefaultIcon(Icon newIcon)

Sets the icon used as the default desktop icon.

pack-priv void
pack-priv void
protected void
protected void
protected void
protected void
Inherited from javax.swing.plaf.basic.BasicDesktopIconUI:
createMouseInputListenerdeiconizegetInsetsinstallUIuninstallUI

Field Detail

defaultIconback to summary
protected Icon defaultIcon
defaultTitleFontback to summary
pack-priv static final Font defaultTitleFont
desktopIconActionListenerback to summary
protected MotifDesktopIconUI.DesktopIconActionListener desktopIconActionListener
desktopIconMouseListenerback to summary
protected MotifDesktopIconUI.DesktopIconMouseListener desktopIconMouseListener
iconButtonback to summary
protected MotifDesktopIconUI.IconButton iconButton
iconLabelback to summary
protected MotifDesktopIconUI.IconLabel iconLabel
LABEL_DIVIDERback to summary
pack-priv static final int LABEL_DIVIDER
LABEL_HEIGHTback to summary
pack-priv static final int LABEL_HEIGHT
mmlback to summary
pack-priv EventListener mml
sysMenuTitlePaneback to summary
private MotifInternalFrameTitlePane sysMenuTitlePane
systemMenuback to summary
pack-priv JPopupMenu systemMenu

Constructor Detail

MotifDesktopIconUIback to summary
public MotifDesktopIconUI()

Method Detail

createDesktopIconActionListenerback to summary
protected MotifDesktopIconUI.DesktopIconActionListener createDesktopIconActionListener()
createDesktopIconMouseListenerback to summary
protected MotifDesktopIconUI.DesktopIconMouseListener createDesktopIconMouseListener()
createIconButtonback to summary
protected MotifDesktopIconUI.IconButton createIconButton(Icon i)
createIconLabelback to summary
protected MotifDesktopIconUI.IconLabel createIconLabel(JInternalFrame frame)
createUIback to summary
public static ComponentUI createUI(JComponent c)

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

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

Constructs a new instance of BasicDesktopIconUI.

getDefaultIconback to summary
public Icon getDefaultIcon()

Returns the default desktop icon.

getDesktopIconback to summary
pack-priv JInternalFrame.JDesktopIcon getDesktopIcon()
getFrameback to summary
pack-priv JInternalFrame getFrame()
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.

Annotations
@Override
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.

Annotations
@Override
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.

Annotations
@Override
hideSystemMenuback to summary
protected void hideSystemMenu()
installComponentsback to summary
protected void installComponents()

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

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

Registers components.

Annotations
@Override
installDefaultsback to summary
protected void installDefaults()

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

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

Installs default properties.

Annotations
@Override
installListenersback to summary
protected void installListeners()

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

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

Registers listeners.

Annotations
@Override
setDefaultIconback to summary
public void setDefaultIcon(Icon newIcon)

Sets the icon used as the default desktop icon.

setDesktopIconback to summary
pack-priv void setDesktopIcon(JInternalFrame.JDesktopIcon d)
setFrameback to summary
pack-priv void setFrame(JInternalFrame f)
showSystemMenuback to summary
protected void showSystemMenu()
uninstallComponentsback to summary
protected void uninstallComponents()

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

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

Unregisters components.

Annotations
@Override
uninstallDefaultsback to summary
protected void uninstallDefaults()

Overrides javax.swing.plaf.basic.BasicDesktopIconUI.uninstallDefaults.

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

Uninstalls default properties.

Annotations
@Override
uninstallListenersback to summary
protected void uninstallListeners()

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

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

Unregisters listeners.

Annotations
@Override
com.sun.java.swing.plaf.motif back to summary

protected Class MotifDesktopIconUI.DesktopIconActionListener

extends Object
implements ActionListener
Class Inheritance
  • java.lang.Object
  • com.sun.java.swing.plaf.motif.MotifDesktopIconUI.DesktopIconActionListener
All Implemented Interfaces
java.awt.event.ActionListener, java.util.EventListener

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public void
actionPerformed(ActionEvent e)

Implements java.awt.event.ActionListener.actionPerformed.

Invoked when an action occurs.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

DesktopIconActionListenerback to summary
protected DesktopIconActionListener()

Method Detail

actionPerformedback to summary
public void actionPerformed(ActionEvent e)

Implements java.awt.event.ActionListener.actionPerformed.

Doc from java.awt.event.ActionListener.actionPerformed.

Invoked when an action occurs.

Annotations
@Override
com.sun.java.swing.plaf.motif back to summary

protected Class MotifDesktopIconUI.DesktopIconMouseListener

extends MouseAdapter
Class Inheritance

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public void
mousePressed(MouseEvent e)

Overrides java.awt.event.MouseAdapter.mousePressed.

Implements java.awt.event.MouseListener.mousePressed.

Invoked when a mouse button has been pressed on a component.

Inherited from java.awt.event.MouseAdapter:
mouseClickedmouseDraggedmouseEnteredmouseExitedmouseMovedmouseReleasedmouseWheelMoved

Constructor Detail

DesktopIconMouseListenerback to summary
protected DesktopIconMouseListener()

Method Detail

mousePressedback to summary
public void mousePressed(MouseEvent e)

Overrides java.awt.event.MouseAdapter.mousePressed.

Implements java.awt.event.MouseListener.mousePressed.

Doc from java.awt.event.MouseAdapter.mousePressed.

Invoked when a mouse button has been pressed on a component.

Annotations
@Override
com.sun.java.swing.plaf.motif back to summary

protected Class MotifDesktopIconUI.IconButton

extends JButton
Class Inheritance
Annotations
@SuppressWarnings:serial

Field Summary

Modifier and TypeField and Description
pack-priv Icon

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv void
public boolean
isFocusTraversable()

Overrides java.awt.Component.isFocusTraversable.

Returns whether this Component can become the focus owner.

Inherited from javax.swing.JButton:
getAccessibleContextgetUIClassIDisDefaultButtonisDefaultCapableparamStringremoveNotifysetDefaultCapableupdateUI

Field Detail

iconback to summary
pack-priv Icon icon

Constructor Detail

IconButtonback to summary
pack-priv IconButton(Icon icon)

Method Detail

forwardEventToParentback to summary
pack-priv void forwardEventToParent(MouseEvent e)
Annotations
@SuppressWarnings:deprecation
isFocusTraversableback to summary
public boolean isFocusTraversable()

Overrides java.awt.Component.isFocusTraversable.

Doc from java.awt.Component.isFocusTraversable.

Returns whether this Component can become the focus owner.

Annotations
@Override
@SuppressWarnings:deprecation
com.sun.java.swing.plaf.motif back to summary

protected Class MotifDesktopIconUI.IconLabel

extends JPanel
Class Inheritance
Annotations
@SuppressWarnings:serial

Field Summary

Modifier and TypeField and Description
pack-priv JInternalFrame

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv void
public Dimension
getMinimumSize()

Overrides javax.swing.JComponent.getMinimumSize.

If the minimum size has been set to a non-null value just returns it.

public Dimension
getPreferredSize()

Overrides javax.swing.JComponent.getPreferredSize.

If the preferredSize has been set to a non-null value just returns it.

public boolean
isFocusTraversable()

Overrides java.awt.Component.isFocusTraversable.

Returns whether this Component can become the focus owner.

public void
paint(Graphics g)

Overrides javax.swing.JComponent.paint.

Invoked by Swing to draw components.

Inherited from javax.swing.JPanel:
getAccessibleContextgetUIgetUIClassIDparamStringsetUIupdateUI

Field Detail

frameback to summary
pack-priv JInternalFrame frame

Constructor Detail

IconLabelback to summary
pack-priv IconLabel(JInternalFrame f)

Method Detail

forwardEventToParentback to summary
pack-priv void forwardEventToParent(MouseEvent e)
Annotations
@SuppressWarnings:deprecation
getMinimumSizeback to summary
public Dimension getMinimumSize()

Overrides javax.swing.JComponent.getMinimumSize.

Doc from javax.swing.JComponent.getMinimumSize.

If the minimum size has been set to a non-null value just returns it. If the UI delegate's getMinimumSize method returns a non-null value then return that; otherwise defer to the component's layout manager.

Annotations
@Override
getPreferredSizeback to summary
public Dimension getPreferredSize()

Overrides javax.swing.JComponent.getPreferredSize.

Doc from javax.swing.JComponent.getPreferredSize.

If the preferredSize has been set to a non-null value just returns it. If the UI delegate's getPreferredSize method returns a non null value then return that; otherwise defer to the component's layout manager.

Annotations
@Override
isFocusTraversableback to summary
public boolean isFocusTraversable()

Overrides java.awt.Component.isFocusTraversable.

Doc from java.awt.Component.isFocusTraversable.

Returns whether this Component can become the focus owner.

Annotations
@Override
@SuppressWarnings:deprecation
paintback to summary
public void paint(Graphics g)

Overrides javax.swing.JComponent.paint.

Doc from javax.swing.JComponent.paint.

Invoked by Swing to draw components. Applications should not invoke paint directly, but should instead use the repaint method to schedule the component for redrawing.

This method actually delegates the work of painting to three protected methods: paintComponent, paintBorder, and paintChildren. They're called in the order listed to ensure that children appear on top of component itself. Generally speaking, the component and its children should not paint in the insets area allocated to the border. Subclasses can just override this method, as always. A subclass that just wants to specialize the UI (look and feel) delegate's paint method should just override paintComponent.

Annotations
@Override