@Deprecated public final class ColorIcon extends ColorIcon
ColorIcon
is an Icon
implementation
that is a simple rectangular shape with a black edge rim, and
configurable center fill color. The size of the icon must be
specified when it is created, but the fill color may be changed
later. DEFAULT_HEIGHT, DEFAULT_SIZE, DEFAULT_WIDTH
Constructor and Description |
---|
ColorIcon(java.awt.Color color)
Deprecated.
|
ColorIcon(java.awt.Color color,
java.awt.Dimension dimension)
Deprecated.
|
ColorIcon(java.awt.Color color,
int width,
int height)
Deprecated.
|
getColor, getIconHeight, getIconWidth, paintIcon, setColor, setSize
@Deprecated public ColorIcon(java.awt.Color color)
ColorIcon
with the given fill
color and with a default sizecolor
- the fill color to use@Deprecated public ColorIcon(java.awt.Color color, int width, int height)
ColorIcon
with the given fill
color and dimensions.color
- the fill color to usewidth
- the width to useheight
- the height to use@Deprecated public ColorIcon(java.awt.Color color, java.awt.Dimension dimension)
ColorIcon
with the given fill
color and dimensions.color
- the fill color to usedimension
- the width and height dimension to use