| Constructor and Description |
|---|
ColorIcon()
Instantiates a new color icon.
|
ColorIcon(Color color)
Instantiates a new color icon.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getIconHeight() |
int |
getIconWidth() |
void |
paintIcon(Component arg0,
Graphics graphics,
int x,
int y) |
void |
setColor(Color color)
Sets the color.
|
public ColorIcon()
public ColorIcon(Color color)
color - the colorpublic void setColor(Color color)
color - the new colorpublic int getIconWidth()
getIconWidth in interface Iconpublic int getIconHeight()
getIconHeight in interface IconCopyright © 2006–2018 The Apache Software Foundation. All rights reserved.