All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface com.sun.java.swing.Icon

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

See Also:
ImageIcon

Method Index

 o getIconHeight()
 o getIconWidth()
 o paintIcon(Component, Graphics, int, int)
Draw the icon at the specified location.

Methods

 o paintIcon
 public abstract 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.

 o getIconWidth
 public abstract int getIconWidth()
Returns:
The fixed width of the icon.
 o getIconHeight
 public abstract int getIconHeight()
Returns:
The fixed height of the icon.

All Packages  Class Hierarchy  This Package  Previous  Next  Index