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