|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectinfo.monitorenter.gui.util.ColorIcon
public class ColorIcon
An icon that displays a rectangular .
Color
| Constructor Summary | |
|---|---|
ColorIcon(Color color)
Creates an icon with the given color. |
|
| Method Summary | |
|---|---|
Color |
getColor()
Returns the color of this icon. |
int |
getIconHeight()
|
int |
getIconWidth()
|
void |
paintIcon(Component c,
Graphics g,
int x,
int y)
|
void |
setColor(Color color)
Sets the color of this icon. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ColorIcon(Color color)
color - the color of this icon.| Method Detail |
|---|
public int getIconHeight()
getIconHeight in interface IconIcon.getIconHeight()public int getIconWidth()
getIconWidth in interface IconIcon.getIconWidth()
public void paintIcon(Component c,
Graphics g,
int x,
int y)
paintIcon in interface IconIcon.paintIcon(java.awt.Component, java.awt.Graphics, int,
int)public final Color getColor()
public final void setColor(Color color)
color - The color of this icon to set.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||