Home » openjdk-7 » javax » swing » [javadoc | source]
javax.swing
public interface: Icon [javadoc | source] A small fixed size picture, typically used to decorate components.
Method from javax.swing.Icon Summary:
getIconHeight,   getIconWidth,   paintIcon
Method from javax.swing.Icon Detail:
 public int getIconHeight()
    Returns the icon's height.
 public int getIconWidth()
    Returns the icon's width.
 public  void paintIcon(Component c,
    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.