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
-
getIconHeight()
-
-
getIconWidth()
-
-
paintIcon(Component, Graphics, int, int)
- Draw the icon at the specified location.
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.
getIconWidth
public abstract int getIconWidth()
- Returns:
- The fixed width of the icon.
getIconHeight
public abstract int getIconHeight()
- Returns:
- The fixed height of the icon.
All Packages Class Hierarchy This Package Previous Next Index