org.jrabbit.base.graphics.image
Class ImagePointer

java.lang.Object
  extended by org.jrabbit.base.data.cache.CachePointer<Image>
      extended by org.jrabbit.base.graphics.image.ImagePointer
All Implemented Interfaces:
Referenced, Retriever<Image>
Direct Known Subclasses:
ImageSkin

public class ImagePointer
extends CachePointer<Image>

An ImagePointer is a CachePointer designed to retrieve Images from the default ImageCache in Resources.

Author:
Chris Molini

Field Summary
 
Fields inherited from class org.jrabbit.base.data.cache.CachePointer
object, reference
 
Constructor Summary
ImagePointer(java.lang.String reference)
          Creates an ImagePointer that will retrieve the indicated Image.
 
Method Summary
 Image retrieve()
          Obtains the desired Image, based upon reference.
 
Methods inherited from class org.jrabbit.base.data.cache.CachePointer
object, reference, refresh, setReference, valid
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImagePointer

public ImagePointer(java.lang.String reference)
Creates an ImagePointer that will retrieve the indicated Image.

Parameters:
reference - A reference that matches that of the Image to retrieve from the Cache.
Method Detail

retrieve

public Image retrieve()
Obtains the desired Image, based upon reference.

Returns:
The Image in the Cache that has a matching reference.