FreeHEP API
Version v1.2

org.freehep.graphicsio.pdf
Class PDFPaintDelayQueue

java.lang.Object
  |
  +--org.freehep.graphicsio.pdf.PDFPaintDelayQueue

public class PDFPaintDelayQueue
extends Object

Delay Paint objects (gradient/texture, not color) for writing pattern/shading/function dictionaries to the pdf file when the pageStream is complete.
TODO: - reuse pattern dictionaries if possible - cyclic function not working yet (ps calculation)

Version:
$Id: PDFPaintDelayQueue.java,v 1.5 2003/05/07 21:23:10 duns Exp $
Author:
Simon Fischer

Constructor Summary
PDFPaintDelayQueue(PDFWriter pdf, PDFImageDelayQueue imageDelayQueue)
          Don't forget to call setPageMatrix().
 
Method Summary
 int addPatterns()
          Adds all names to the dictionary which should be the value of the resources dicionrary's /Pattern entry.
 PDFName delayPaint(Paint paint, AffineTransform transform)
           
 void processAll()
          Creates a stream for every delayed image.
 void setPageMatrix(AffineTransform t)
          Call this method in order to inform this class about the transformation that is necessary to map the pattern's coordinate space to the default coordinate system of the parent's content stream (in our case the flipping of the page).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PDFPaintDelayQueue

public PDFPaintDelayQueue(PDFWriter pdf,
                          PDFImageDelayQueue imageDelayQueue)
Don't forget to call setPageMatrix().

Method Detail

setPageMatrix

public void setPageMatrix(AffineTransform t)
Call this method in order to inform this class about the transformation that is necessary to map the pattern's coordinate space to the default coordinate system of the parent's content stream (in our case the flipping of the page).


delayPaint

public PDFName delayPaint(Paint paint,
                          AffineTransform transform)

processAll

public void processAll()
                throws IOException
Creates a stream for every delayed image.

IOException

addPatterns

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

IOException

FreeHEP API
Version v1.2

Copyright © 2000-2003 FreeHEP, All Rights Reserved.