Constructor and Description |
---|
JColorIcon(int width,
int height,
Color color)
Construtor.
|
Modifier and Type | Method and Description |
---|---|
int |
getIconHeight()
Get the icon's height
|
int |
getIconWidth()
Get the icon's width
|
void |
paintIcon(Component c,
Graphics g,
int x,
int y)
Paint the icon using the current color.
|
void |
setColor(Color color)
Set the color
|
public JColorIcon(int width, int height, Color color)
width
- icon widthheight
- icon heightcolor
- initial colorpublic void paintIcon(Component c, Graphics g, int x, int y)
public int getIconWidth()
getIconWidth
in interface Icon
public int getIconHeight()
getIconHeight
in interface Icon
public void setColor(Color color)
color
- new colorCopyright © 1996–2023 Geotools. All rights reserved.