ch.randelshofer.gui
Interface IconAWT
- All Superinterfaces:
- javax.swing.Icon
- All Known Implementing Classes:
- ImageIconAWT
public interface IconAWT
- extends javax.swing.Icon
Icon from javax.swing.Icon.
This class has been 'downgraded' to make it work on Java 1.0.2.
paintIcon
void paintIcon(java.awt.Component c,
java.awt.Graphics g,
int x,
int y)
- Draws 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.
Interface: Icon.
- Specified by:
paintIcon in interface javax.swing.Icon
getIconWidth
int getIconWidth()
- Specified by:
getIconWidth in interface javax.swing.Icon
- Returns:
- The fixed width of the icon.
getIconHeight
int getIconHeight()
- Specified by:
getIconHeight in interface javax.swing.Icon
- Returns:
- The fixed height of the icon.