org.xnap.commons.gui
Class ColorChooserPanel.ColorIcon

java.lang.Object
  extended by org.xnap.commons.gui.ColorChooserPanel.ColorIcon
All Implemented Interfaces:
Icon
Enclosing class:
ColorChooserPanel

protected class ColorChooserPanel.ColorIcon
extends Object
implements Icon


Constructor Summary
ColorChooserPanel.ColorIcon(Color color)
           
 
Method Summary
 int getIconHeight()
           
 int getIconWidth()
           
 void paintIcon(Component c, Graphics g, int x, int y)
           
 void setColor(Color newValue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ColorChooserPanel.ColorIcon

public ColorChooserPanel.ColorIcon(Color color)
Method Detail

getIconHeight

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

getIconWidth

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

setColor

public void setColor(Color newValue)

paintIcon

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


Copyright © 2004-2007 XNap Commons Team. All Rights Reserved.