net.sourceforge.hivegui.component
Interface ColorIcon
- All Superinterfaces:
- javax.swing.Icon
- All Known Implementing Classes:
- DynSizeColorIcon, FixedSizeColorIcon
public interface ColorIcon
- extends javax.swing.Icon
Specific Icon implementation that simply displays as a rectangle of a given
color (which is settable).
This is particularly useful for creating a colored JToggleButton in a
JToolBar.
- Author:
- jean-Francois Poilpret
Methods inherited from interface javax.swing.Icon |
getIconHeight, getIconWidth, paintIcon |
setColor
void setColor(java.awt.Color color)
getColor
java.awt.Color getColor()