FileDocCategorySizeDatePackage
Icon.javaAPI DocJava SE 5 API938Fri Aug 26 14:57:54 BST 2005javax.swing

Icon

public interface Icon
A small fixed size picture, typically used to decorate components.
see
ImageIcon

Fields Summary
Constructors Summary
Methods Summary
public intgetIconHeight()
Returns the icon's height.

return
an int specifying the fixed height of the icon.

public intgetIconWidth()
Returns the icon's width.

return
an int specifying the fixed width of the icon.

public voidpaintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)
Draw the icon at the specified location. Icon implementations may use the Component argument to get properties useful for painting, e.g. the foreground or background color.