protected class

MotifDesktopIconUI.IconLabel

extends JPanel
java.lang.Object
   ↳ java.awt.Component
     ↳ java.awt.Container
       ↳ javax.swing.JComponent
         ↳ javax.swing.JPanel
           ↳ com.sun.java.swing.plaf.motif.MotifDesktopIconUI.IconLabel

Summary

[Expand]
Inherited Constants
From class javax.swing.JComponent
From class java.awt.Component
From interface java.awt.image.ImageObserver
[Expand]
Inherited Fields
From class javax.swing.JComponent
Public Methods
Dimension getMinimumSize()
If the minimum size has been set to a non-null value just returns it.
Dimension getPreferredSize()
If the preferredSize has been set to a non-null value just returns it.
boolean isFocusTraversable()
This method is deprecated. As of 1.4, replaced by isFocusable().
void paint(Graphics g)
Invoked by Swing to draw components.
[Expand]
Inherited Methods
From class javax.swing.JPanel
From class javax.swing.JComponent
From class java.awt.Container
From class java.awt.Component
From class java.lang.Object
From interface java.awt.MenuContainer
From interface java.awt.image.ImageObserver
From interface javax.accessibility.Accessible

Public Methods

public Dimension 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.

Returns
  • the value of the minimumSize property

public Dimension 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.

Returns
  • the value of the preferredSize property

public boolean isFocusTraversable ()

This method is deprecated.
As of 1.4, replaced by isFocusable().

Returns whether this Component can become the focus owner.

Returns
  • true if this Component is focusable; false otherwise

public void paint (Graphics g)

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.

Parameters
g the Graphics context in which to paint