|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Icon
Defines the methods that an object must implement if it should be used as an icon in Swing.
| 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. |
| Method Detail |
|---|
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.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||