Package info.monitorenter.gui.util
Class ColorIcon
java.lang.Object
info.monitorenter.gui.util.ColorIcon
- All Implemented Interfaces:
Icon
An icon that displays a rectangular
Color
.
- Version:
- $Revision: 1.7 $
- Author:
- Achim Westermann
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ColorIcon
Creates an icon with the given color.- Parameters:
color
- the color of this icon.
-
-
Method Details
-
equals
-
getColor
Returns the color of this icon.- Returns:
- the color of this icon.
-
getIconHeight
public int getIconHeight()- Specified by:
getIconHeight
in interfaceIcon
- See Also:
-
getIconWidth
public int getIconWidth()- Specified by:
getIconWidth
in interfaceIcon
- See Also:
-
hashCode
public int hashCode() -
paintIcon
-
setColor
Sets the color of this icon.- Parameters:
color
- The color of this icon to set.
-