javax.swing.plaf.metal

Class MetalIconFactory.PaletteCloseIcon

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

An icon used by the {@link MetalInternalFrameUI} class when the frame is displayed as a palette.

Since: 1.3

Method Summary
intgetIconHeight()
Returns the height of the icon, in pixels.
intgetIconWidth()
Returns the width of the icon, in pixels.
voidpaintIcon(Component c, Graphics g, int x, int y)
Paints the icon using colors from the {@link MetalLookAndFeel}.

Method Detail

getIconHeight

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

Returns: The height of the icon.

getIconWidth

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

Returns: The width of the icon.

paintIcon

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

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.