|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectJColorIcon
public class JColorIcon
An Icon to display a color. Used by JSimpleStyleDialog
.
modules/unsupported/swing (gt-swing.jar)
Constructor Summary | |
---|---|
JColorIcon(int width,
int height,
Color color)
Construtor. |
Method Summary | |
---|---|
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 |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JColorIcon(int width, int height, Color color)
width
- icon widthheight
- icon heightcolor
- initial colorMethod Detail |
---|
public void paintIcon(Component c, Graphics g, int x, int y)
paintIcon
in interface Icon
c
- arg presently ignoredg
- graphics objectx
- x positiony
- y positionpublic int getIconWidth()
getIconWidth
in interface Icon
public int getIconHeight()
getIconHeight
in interface Icon
public void setColor(Color color)
color
- new color
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |