javax.swing
public interface Icon
Modifier and Type | Method and Description |
---|---|
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.
|
int getIconHeight()
int getIconWidth()
void paintIcon(Component c, Graphics g, int x, int y)
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.