|
fop 1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fop.pdf.PDFObject
org.apache.fop.pdf.PDFDictionary
org.apache.fop.pdf.PDFResourceContext
public class PDFResourceContext
The PDF resource context. There is one of these for every page in a PDF document. The object specifies the dimensions of the page and references a /Resources object, a contents stream and the page's parent in the page hierarchy. Modified by Mark Lillywhite, mark-fop@inomial.com. The Parent object was being referred to by reference, but all that we ever used from the Parent was its PDF object ID, and according to the memory profile this was causing OOM issues. So, we store only the object ID of the parent, rather than the parent itself.
Field Summary |
---|
Fields inherited from class org.apache.fop.pdf.PDFDictionary |
---|
entries, order |
Fields inherited from class org.apache.fop.pdf.PDFObject |
---|
DATE_FORMAT, log |
Constructor Summary | |
---|---|
PDFResourceContext(PDFResources resources)
Creates a new ResourceContext. |
Method Summary | |
---|---|
void |
addAnnotation(PDFObject annot)
set this page's annotation list |
void |
addGState(PDFGState gstate)
A a GState to this resource context. |
void |
addShading(PDFShading shading)
Add the shading to the current resource context. |
PDFAnnotList |
getAnnotations()
Get the current annotations. |
PDFResources |
getPDFResources()
Get the resources for this resource context. |
Methods inherited from class org.apache.fop.pdf.PDFDictionary |
---|
get, output, put, put, writeDictionary |
Methods inherited from class org.apache.fop.pdf.PDFObject |
---|
contentEquals, encode, encodeBinaryToHexString, encodeString, encodeText, formatDateTime, formatDateTime, formatObject, getDocument, getDocumentSafely, getGeneration, getObjectID, getObjectNumber, getParent, hasObjectNumber, makeReference, outputInline, referencePDF, setDocument, setObjectNumber, setParent, toPDF, toPDFString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PDFResourceContext(PDFResources resources)
resources
- the /Resources objectMethod Detail |
---|
public PDFResources getPDFResources()
public void addAnnotation(PDFObject annot)
annot
- a PDFAnnotList list of annotationspublic PDFAnnotList getAnnotations()
public void addGState(PDFGState gstate)
gstate
- the GState to addpublic void addShading(PDFShading shading)
shading
- the shading to add
|
fop 1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |