FreeHEP API
Version current

org.freehep.graphicsio.pdf
Class PDFImageDelayQueue

java.lang.Object
  extended byorg.freehep.graphicsio.pdf.PDFImageDelayQueue

public class PDFImageDelayQueue
extends Object

Delay Image objects for writing XObjects to the pdf file when the pageStream is complete. Caches identical images to only write them once.

Version:
$Id: PDFImageDelayQueue.java,v 1.7 2005/01/05 20:44:40 duns Exp $
Author:
Simon Fischer, Mark Donszelmann
Source Code:
PDFImageDelayQueue.java

Constructor Summary
PDFImageDelayQueue(PDFWriter pdf)
           
 
Method Summary
 int addXObjects()
          Adds all names to the dictionary which should be the value of the resources dicionrary's /XObject entry.
 PDFName delayImage(RenderedImage image, Color bkg, String writeAs)
           
 void processAll()
          Creates a stream for every delayed image that is not written yet.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PDFImageDelayQueue

public PDFImageDelayQueue(PDFWriter pdf)
Method Detail

delayImage

public PDFName delayImage(RenderedImage image,
                          Color bkg,
                          String writeAs)

processAll

public void processAll()
                throws IOException
Creates a stream for every delayed image that is not written yet.

Throws:
IOException

addXObjects

public int addXObjects()
                throws IOException
Adds all names to the dictionary which should be the value of the resources dicionrary's /XObject entry.

Throws:
IOException

FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.