javax.swing
public interface Icon
Method Summary | |
---|---|
int | getIconHeight()
Returns the height of the icon.
|
int | getIconWidth()
Returns the width of the icon.
|
void | paintIcon(Component c, Graphics g, int x, int y)
Draws the icon at the location (x, y) on the specified graphics device.
|
Returns: The height of the icon.
Returns: The width of the icon.
Parameters: c a component related to the icon in some way (can be ignored by some implementing classes). g the graphics device. x the x-coordinate. y the y-coordinate.