net.sf.jomic.tools
Class ImageCacheEntry

java.lang.Object
  extended by net.sf.jomic.tools.ImageCacheEntry

public class ImageCacheEntry
extends java.lang.Object

Entry in ImageCache.

Author:
Thomas Aglassinger
See Also:
ImageCache

Constructor Summary
ImageCacheEntry(java.io.File newImageFile, java.awt.image.RenderedImage newImage)
           
 
Method Summary
 void dispose()
          Dispose entry by removing the reference to the source image, thus allowing the garbage collector to release the memory allocated by it.
 java.awt.image.RenderedImage getImage()
          Get the actual image data from memory.
 java.io.File getImageFile()
          Get the file from which the image data where read.
 long getImageSize()
          Get the approximate size the image uses in memory.
 long getLastAccessed()
          Get timestamp when entry was last accessed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageCacheEntry

public ImageCacheEntry(java.io.File newImageFile,
                       java.awt.image.RenderedImage newImage)
Method Detail

getImage

public java.awt.image.RenderedImage getImage()
Get the actual image data from memory.


getImageFile

public java.io.File getImageFile()
Get the file from which the image data where read.


getImageSize

public long getImageSize()
Get the approximate size the image uses in memory.


getLastAccessed

public long getLastAccessed()
Get timestamp when entry was last accessed.


dispose

public void dispose()
Dispose entry by removing the reference to the source image, thus allowing the garbage collector to release the memory allocated by it. After calling this method, the entry must not be used anymore.