com.croftsoft.core.animation.icon
Class ColorTileIcon

java.lang.Object
  extended by com.croftsoft.core.animation.icon.ColorTileIcon
All Implemented Interfaces:
Icon

public final class ColorTileIcon
extends Object
implements Icon

An Icon that draws a colored square.

Since:
2003-03-17
Version:
2003-03-17
Author:
David Wallace Croft

Constructor Summary
ColorTileIcon(Color color)
           
ColorTileIcon(Color color, Dimension size)
           
 
Method Summary
 int getIconHeight()
           
 int getIconWidth()
           
 void paintIcon(Component component, Graphics graphics, int x, int y)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ColorTileIcon

public ColorTileIcon(Color color,
                     Dimension size)

ColorTileIcon

public ColorTileIcon(Color color)
Method Detail

getIconWidth

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

getIconHeight

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

paintIcon

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

CroftSoft Javadoc

CroftSoft Core Javadoc (2008-09-28 20:58:02)