org.pentaho.reporting.engine.classic.core.modules.output.table.rtf.helper
Class RTFImageCache

java.lang.Object
  extended by org.pentaho.reporting.engine.classic.core.modules.output.table.rtf.helper.RTFImageCache

public class RTFImageCache
extends Object

Todo: Document me!

Author:
: Thomas Morgner

Constructor Summary
RTFImageCache(org.pentaho.reporting.libraries.resourceloader.ResourceManager resourceManager)
           
 
Method Summary
 com.lowagie.text.Image getImage(ImageContainer reference)
          Helperfunction to extract an image from an imagereference.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RTFImageCache

public RTFImageCache(org.pentaho.reporting.libraries.resourceloader.ResourceManager resourceManager)
Method Detail

getImage

public com.lowagie.text.Image getImage(ImageContainer reference)
                                throws com.lowagie.text.DocumentException,
                                       IOException
Helperfunction to extract an image from an imagereference. If the image is contained as java.awt.Image object only, the image is recoded into an PNG-Image.

Parameters:
reference - the image reference.
Returns:
an image.
Throws:
com.lowagie.text.DocumentException - if no PDFImageElement could be created using the given ImageReference.
IOException - if the image could not be read.