erland.util
Class ImageHandlerForApplication

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

public class ImageHandlerForApplication
extends Object
implements ImageHandlerInterface

Loads images using an Component object for the loading mechanism


Field Summary
protected  Component component
          Component object that should be used for the image loading
protected  String imageDir
          Directory where all images are stored
protected  LinkedList images
          Vector with all loaded images, see ImageData
 
Constructor Summary
ImageHandlerForApplication(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
 

Field Detail

component

protected Component component
Component object that should be used for the image loading


imageDir

protected String imageDir
Directory where all images are stored


images

protected LinkedList images
Vector with all loaded images, see ImageData

Constructor Detail

ImageHandlerForApplication

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

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