org.icepdf.core.pobjects.graphics
Class CachedImageReference

java.lang.Object
  extended by org.icepdf.core.pobjects.graphics.ImageReference
      extended by org.icepdf.core.pobjects.graphics.CachedImageReference
All Implemented Interfaces:
java.util.concurrent.Callable<java.awt.image.BufferedImage>
Direct Known Subclasses:
ImageStreamReference, ScaledImageReference, SmoothScaledImageReference

public abstract class CachedImageReference
extends ImageReference

the Abstract CachedImageReference stores the decoded BufferedImage data in an ImagePool referenced by the images PDF object number to insure that if a page is garbage collected the image can re fetched from the pool if necessary.

Since:
5.0

Field Summary
 
Fields inherited from class org.icepdf.core.pobjects.graphics.ImageReference
fillColor, futureTask, image, imageStream, reference, resources, useProxy
 
Constructor Summary
protected CachedImageReference(ImageStream imageStream, java.awt.Color fillColor, Resources resources)
           
 
Method Summary
 java.awt.image.BufferedImage getImage()
           
 
Methods inherited from class org.icepdf.core.pobjects.graphics.ImageReference
createImage, drawImage, getHeight, getImageStream, getWidth, isImage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.concurrent.Callable
call
 

Constructor Detail

CachedImageReference

protected CachedImageReference(ImageStream imageStream,
                               java.awt.Color fillColor,
                               Resources resources)
Method Detail

getImage

public java.awt.image.BufferedImage getImage()
Specified by:
getImage in class ImageReference