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

Method Summary
 java.awt.Color getColor()
           
 void setColor(java.awt.Color color)
           
 
Methods inherited from interface javax.swing.Icon
getIconHeight, getIconWidth, paintIcon
 

Method Detail

setColor

void setColor(java.awt.Color color)

getColor

java.awt.Color getColor()