net.sf.jcgm.image.loader.cgm
Class ImageLoaderCGM

java.lang.Object
  extended by AbstractImageLoader
      extended by net.sf.jcgm.image.loader.cgm.ImageLoaderCGM

public class ImageLoaderCGM
extends AbstractImageLoader

Implementation of an image loader for CGM files. The flavor we support here is ImageFlavor#GRAPHICS2D which allows us to draw the CGM file as vector graphics into the PDF file generated by FOP.

Since:
Apr 14, 2009
Version:
$Id: ImageLoaderCGM.java 3 2009-10-16 08:51:15Z phica $
Author:
xphc (Philippe Cadé)
See Also:
CGM, PreloaderCGM, xmlgraphics.apache.org

Field Summary
protected static Log log
          logging instance
 
Constructor Summary
ImageLoaderCGM(ImageFlavor targetFlavor)
           
 
Method Summary
 ImageFlavor getTargetFlavor()
           
 Image loadImage(ImageInfo info, java.util.Map hints, ImageSessionContext session)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static Log log
logging instance

Constructor Detail

ImageLoaderCGM

public ImageLoaderCGM(ImageFlavor targetFlavor)
Method Detail

getTargetFlavor

public ImageFlavor getTargetFlavor()

loadImage

public Image loadImage(ImageInfo info,
                       java.util.Map hints,
                       ImageSessionContext session)
                throws java.io.IOException
Throws:
java.io.IOException


Part of the jcgm library http://jcgm.sourceforge.net/