|
fop 0.93 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fop.fo.FONode
org.apache.fop.fo.FObj
org.apache.fop.fo.pagination.Root
The fo:root formatting object. Contains page masters, page-sequences.
Field Summary |
Fields inherited from class org.apache.fop.fo.FObj |
childNodes |
Fields inherited from class org.apache.fop.fo.FONode |
FO_URI, locator, log, parent |
Constructor Summary | |
Root(FONode parent)
|
Method Summary | |
void |
bind(PropertyList pList)
Bind property values from the property list to the FO node. |
protected void |
endOfNode()
Signal end of this xml element. |
BookmarkTree |
getBookmarkTree()
Public accessor for the BookmarkTree object for this FO |
Declarations |
getDeclarations()
Returns the associated Declarations. |
int |
getEndingPageNumberOfPreviousSequence()
Gets the last page number generated by the previous page-sequence |
FOEventHandler |
getFOEventHandler()
This method overrides the FONode version. |
LayoutMasterSet |
getLayoutMasterSet()
Returns the associated LayoutMasterSet. |
java.lang.String |
getLocalName()
Returns the local name (i.e. |
int |
getNameId()
Returns the Constants class integer value of this node |
int |
getPageSequenceCount()
Returns the number of PageSequence instances. |
Root |
getRoot()
Returns the root node of this tree |
PageSequence |
getSucceedingPageSequence(PageSequence current)
Some properties, such as 'force-page-count', require a page-sequence to know about some properties of the next. |
int |
getTotalPagesGenerated()
Returns the total number of pages generated by FOP (May not equal endingPageNumberOfPreviousSequence due to initial-page-number property on fo:page-sequences.) |
void |
notifyPageSequenceFinished(int lastPageNumber,
int additionalPages)
Notify additional pages generated to increase the totalPagesGenerated counter |
void |
setBookmarkTree(BookmarkTree bookmarkTree)
Set the BookmarkTree object for this FO |
void |
setDeclarations(Declarations declarations)
Sets the associated Declarations. |
void |
setFOEventHandler(FOEventHandler foEventHandler)
Sets the FOEventHandler object that this Root is attached to |
void |
setLayoutMasterSet(LayoutMasterSet layoutMasterSet)
Sets the associated LayoutMasterSet. |
protected void |
validateChildNode(org.xml.sax.Locator loc,
java.lang.String nsURI,
java.lang.String localName)
Checks to make sure, during SAX processing of input document, that the incoming node is valid for the this (parent) node (e.g., checking to see that fo:table is not an immediate child of fo:root) called within FObj constructor |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Root(FONode parent)
FONode.FONode(FONode)
Method Detail |
public void bind(PropertyList pList) throws FOPException
FObj
bind
in class FObj
pList
- the PropertyList where the properties can be found.
FOPException
- if there is a problem binding the valuesFObj.bind(PropertyList)
protected void endOfNode() throws FOPException
endOfNode
in class FONode
FOPException
- if there's a problem during processingprotected void validateChildNode(org.xml.sax.Locator loc, java.lang.String nsURI, java.lang.String localName) throws ValidationException
FONode
validateChildNode
in class FONode
loc
- location in the FO source filensURI
- namespace of incoming nodelocalName
- (e.g. "table" for "fo:table")
ValidationException
- if incoming node not valid for parentXSL 1.0 Spec: (layout-master-set,declarations?,page-sequence+)
FOP: (layout-master-set, declarations?, fox:bookmarks?, page-sequence+)
public void setFOEventHandler(FOEventHandler foEventHandler)
foEventHandler
- the FOEventHandler objectpublic FOEventHandler getFOEventHandler()
getFOEventHandler
in class FONode
public int getEndingPageNumberOfPreviousSequence()
public int getTotalPagesGenerated()
public void notifyPageSequenceFinished(int lastPageNumber, int additionalPages)
lastPageNumber
- the last page number generated by the sequenceadditionalPages
- the total pages generated by the sequence (for statistics)
java.lang.IllegalArgumentException
- for negative additional page countspublic int getPageSequenceCount()
public PageSequence getSucceedingPageSequence(PageSequence current)
current
- the current PageSequence
public LayoutMasterSet getLayoutMasterSet()
public void setLayoutMasterSet(LayoutMasterSet layoutMasterSet)
layoutMasterSet
- the LayoutMasterSet to usepublic Declarations getDeclarations()
public void setDeclarations(Declarations declarations)
declarations
- the Declarations to usepublic void setBookmarkTree(BookmarkTree bookmarkTree)
bookmarkTree
- the BookmarkTree objectpublic BookmarkTree getBookmarkTree()
public Root getRoot()
FONode
getRoot
in class FONode
FONode.getRoot()
public java.lang.String getLocalName()
FONode
getLocalName
in class FONode
FONode.getLocalName()
public int getNameId()
FONode
getNameId
in class FONode
FONode.getNameId()
|
fop 0.93 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |