javax.swing.plaf.metal
Class MetalIconFactory.PaletteCloseIcon

java.lang.Object
  extended by javax.swing.plaf.metal.MetalIconFactory.PaletteCloseIcon
All Implemented Interfaces:
Serializable, Icon, UIResource
Enclosing class:
MetalIconFactory

public static class MetalIconFactory.PaletteCloseIcon
extends Object
implements Icon, Serializable, UIResource

An icon used by the MetalInternalFrameUI class when the frame is displayed as a palette.

Since:
1.3
See Also:
Serialized Form

Constructor Summary
MetalIconFactory.PaletteCloseIcon()
           
 
Method Summary
 int getIconHeight()
          Returns the height of the icon, in pixels.
 int getIconWidth()
          Returns the width of the icon, in pixels.
 void paintIcon(Component c, Graphics g, int x, int y)
          Paints the icon using colors from the MetalLookAndFeel.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetalIconFactory.PaletteCloseIcon

public MetalIconFactory.PaletteCloseIcon()
Method Detail

getIconWidth

public int getIconWidth()
Returns the width of the icon, in pixels.

Specified by:
getIconWidth in interface Icon
Returns:
The width of the icon.

getIconHeight

public int getIconHeight()
Returns the height of the icon, in pixels.

Specified by:
getIconHeight in interface Icon
Returns:
The height of the icon.

paintIcon

public void paintIcon(Component c,
                      Graphics g,
                      int x,
                      int y)
Paints the icon using colors from the MetalLookAndFeel.

Specified by:
paintIcon in interface Icon
Parameters:
c - the component (ignored).
g - the graphics device.
x - the x-coordinate for the top-left of the icon.
y - the y-coordinate for the top-left of the icon.