erland.util
Class ImageHandlerForApplet

java.lang.Object
  extended by erland.util.ImageHandlerForApplet
All Implemented Interfaces:
ImageHandlerInterface

public class ImageHandlerForApplet
extends Object
implements ImageHandlerInterface

Loads images using an Applet object for the loading mechanism

Author:
Erland Isaksson

Constructor Summary
ImageHandlerForApplet(Applet applet, String imageDir)
          Creates a new instance
 
Method Summary
 Image getImage(String imagename)
          Get a specific image
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageHandlerForApplet

public ImageHandlerForApplet(Applet applet,
                             String imageDir)
Creates a new instance

Parameters:
applet - Applet object to use for the loading
imageDir - Directory where all images are stored
Method Detail

getImage

public Image getImage(String imagename)
Description copied from interface: ImageHandlerInterface
Get a specific image

Specified by:
getImage in interface ImageHandlerInterface
Parameters:
imagename - name of the image to get
Returns:
Image object for the specified image name


Copyright © 2003-2005 Erland Isaksson. All Rights Reserved.