|
fop 0.92beta | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.fop.pdf.PDFObject | +--org.apache.fop.pdf.PDFResources
class representing a /Resources object. /Resources object contain a list of references to the fonts for the document
Field Summary | |
protected java.util.Map |
fonts
/Font objects keyed by their internal name |
protected java.util.Set |
gstates
Set of ExtGStates |
protected java.util.Set |
patterns
Set of patterns |
protected java.util.Set |
shadings
Set of shadings |
protected java.util.Set |
xObjects
Set of XObjects |
Fields inherited from class org.apache.fop.pdf.PDFObject |
DATE_FORMAT, log |
Constructor Summary | |
PDFResources(int objnum)
create a /Resources object. |
Method Summary | |
void |
addFont(PDFFont font)
add font object to resources list. |
void |
addFonts(PDFDocument doc,
FontInfo fontInfo)
Add the fonts in the font info to this PDF document's Font Resources. |
void |
addGState(PDFGState gs)
Add a PDFGState to the resources. |
void |
addPattern(PDFPattern thePattern)
Add the pattern to the resources. |
void |
addShading(PDFShading theShading)
Add a Shading to the resources. |
void |
addXObject(PDFXObject xObject)
Add an XObject to the resources. |
java.lang.String |
toPDFString()
represent the object in PDF This adds the references to all the objects in the current resource context. |
Methods inherited from class org.apache.fop.pdf.PDFObject |
encode, encodeString, encodeText, formatDateTime, getDocument, getDocumentSafely, getGeneration, getObjectID, getObjectNumber, hasObjectNumber, output, referencePDF, setDocument, setObjectNumber, toPDF |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.util.Map fonts
protected java.util.Set xObjects
protected java.util.Set patterns
protected java.util.Set shadings
protected java.util.Set gstates
Constructor Detail |
public PDFResources(int objnum)
objnum
- the object's numberMethod Detail |
public void addFont(PDFFont font)
font
- the PDFFont to addpublic void addFonts(PDFDocument doc, FontInfo fontInfo)
doc
- PDF document to add fonts tofontInfo
- font info object to get font information frompublic void addGState(PDFGState gs)
gs
- the PDFGState to addpublic void addShading(PDFShading theShading)
theShading
- the shading to addpublic void addPattern(PDFPattern thePattern)
thePattern
- the pattern to addpublic void addXObject(PDFXObject xObject)
xObject
- the XObject to addpublic java.lang.String toPDFString()
toPDFString
in class PDFObject
PDFObject.toPDFString()
|
fop 0.92beta | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |