erland.util
Class ImageHandlerForApplicationJarFile

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

public class ImageHandlerForApplicationJarFile
extends Object
implements ImageHandlerInterface

An implementation of ImageHandlerInterface that loads images from a jar file

Author:
Erland Isaksson

Constructor Summary
ImageHandlerForApplicationJarFile(Component component, 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

ImageHandlerForApplicationJarFile

public ImageHandlerForApplicationJarFile(Component component,
                                         String imageDir)
Creates a new instance

Parameters:
component - 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.