public class ColorIcon extends java.lang.Object implements javax.swing.Icon
Constructor and Description |
---|
ColorIcon(java.awt.Color color) |
ColorIcon(java.awt.Color color,
int width,
int height) |
Modifier and Type | Method and Description |
---|---|
java.awt.Color |
getColor() |
int |
getIconHeight() |
int |
getIconWidth() |
void |
paintIcon(java.awt.Component c,
java.awt.Graphics g,
int x,
int y) |
void |
setHeight(int value) |
void |
setWidth(int value) |
public ColorIcon(java.awt.Color color, int width, int height)
public ColorIcon(java.awt.Color color)
public java.awt.Color getColor()
public void setWidth(int value)
public void setHeight(int value)
public void paintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)
paintIcon
in interface javax.swing.Icon
public int getIconWidth()
getIconWidth
in interface javax.swing.Icon
public int getIconHeight()
getIconHeight
in interface javax.swing.Icon