uci.ui
Class Swatch

java.lang.Object
  |
  +--uci.ui.Swatch

public class Swatch
extends Object
implements Icon


Field Summary
protected static Hashtable _swatches
           
 
Constructor Summary
Swatch(Color c)
           
 
Method Summary
static Swatch forColor(Color c)
           
 int getIconHeight()
           
 int getIconWidth()
           
 void paintIcon(Component c, Graphics g, int x, int y)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_swatches

protected static Hashtable _swatches
Constructor Detail

Swatch

public Swatch(Color c)
Method Detail

forColor

public static Swatch forColor(Color c)

paintIcon

public void paintIcon(Component c,
                      Graphics g,
                      int x,
                      int y)
Specified by:
paintIcon in interface Icon

getIconWidth

public int getIconWidth()
Specified by:
getIconWidth in interface Icon

getIconHeight

public int getIconHeight()
Specified by:
getIconHeight in interface Icon