org.apache.fop.pdf
Class PDFResources

java.lang.Object
  extended byorg.apache.fop.pdf.PDFObject
      extended byorg.apache.fop.pdf.PDFResources

public class PDFResources
extends PDFObject

class representing a /Resources object. /Resources object contain a list of references to the fonts for the document


Field Summary
protected  Map fonts
          /Font objects keyed by their internal name
protected  List patterns
           
protected  List shadings
           
protected  List xObjects
           
 
Fields inherited from class org.apache.fop.pdf.PDFObject
generation, number
 
Constructor Summary
PDFResources(int number)
          create a /Resources object.
 
Method Summary
 void addFont(PDFFont font)
          add font object to resources list.
 void addPattern(PDFPattern thePattern)
           
 void addShading(PDFShading theShading)
           
 void setXObjects(List xObjects)
           
 byte[] toPDF()
          represent the object in PDF
 
Methods inherited from class org.apache.fop.pdf.PDFObject
getNumber, output, referencePDF
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fonts

protected Map fonts
/Font objects keyed by their internal name


xObjects

protected List xObjects

patterns

protected List patterns

shadings

protected List shadings
Constructor Detail

PDFResources

public PDFResources(int number)
create a /Resources object.

Parameters:
number - the object's number
Method Detail

addFont

public void addFont(PDFFont font)
add font object to resources list.

Parameters:
font - the PDFFont to add

addShading

public void addShading(PDFShading theShading)

addPattern

public void addPattern(PDFPattern thePattern)

setXObjects

public void setXObjects(List xObjects)

toPDF

public byte[] toPDF()
represent the object in PDF

Returns:
the PDF


Copyright ? 1999-2003 Apache Software Foundation. All Rights Reserved.