Constructor and Description |
---|
BlankIcon(int size)
Creates a new blank icon with the given size.
|
BlankIcon(int width,
int height)
Creates a new blank icon with the given width and height.
|
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)
Does nothing.
|
public BlankIcon(int size)
size
- the size of the icon (used as width and height)public BlankIcon(int width, int height)
width
- the width of the iconheight
- the height of the iconpublic int getIconWidth()
getIconWidth
in interface Icon
public int getIconHeight()
getIconHeight
in interface Icon