FreeHEP API
Version current

org.freehep.graphicsio.pdf
Class PDFPaintDelayQueue

java.lang.Object
  extended byorg.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.7 2005/03/11 05:29:10 duns Exp $
Author:
Simon Fischer
Source Code:
PDFPaintDelayQueue.java

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, String writeAs)
           
 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,
                          String writeAs)

processAll

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

Throws:
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.

Throws:
IOException

FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.