com.croftsoft.core.animation.icon
Class ImageCacheIcon

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

public final class ImageCacheIcon
extends Object
implements Icon

An Icon that uses an ImageCache.

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

Constructor Summary
ImageCacheIcon(ImageCache imageCache, String imageFilename)
           
 
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

ImageCacheIcon

public ImageCacheIcon(ImageCache imageCache,
                      String imageFilename)
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)