|
fop 0.95 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fop.area.AreaTreeModel
public class AreaTreeModel
This is the model for the area tree object. The model implementation can handle the page sequence, page and off-document items. The methods to access the page viewports can only assume the PageViewport is valid as it remains for the life of the area tree model.
Field Summary | |
---|---|
protected PageSequence |
currentPageSequence
the current page sequence |
protected static org.apache.commons.logging.Log |
log
logger instance |
Constructor Summary | |
---|---|
AreaTreeModel()
Create a new store pages model |
Method Summary | |
---|---|
void |
addPage(PageViewport page)
Add a page to this model. |
void |
endDocument()
Signal the end of the document for any processing. |
PageSequence |
getCurrentPageSequence()
Returns the currently active page-sequence. |
PageViewport |
getPage(int seq,
int count)
Get the page for a position in the document. |
int |
getPageCount(int seq)
Get the page count. |
int |
getPageSequenceCount()
Get the page sequence count. |
void |
handleOffDocumentItem(OffDocumentItem ext)
Handle an OffDocumentItem |
void |
startPageSequence(PageSequence pageSequence)
Start a page sequence on this model. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected PageSequence currentPageSequence
protected static org.apache.commons.logging.Log log
Constructor Detail |
---|
public AreaTreeModel()
Method Detail |
---|
public void startPageSequence(PageSequence pageSequence)
pageSequence
- the page sequence about to startpublic void addPage(PageViewport page)
page
- the page to add to the model.public void handleOffDocumentItem(OffDocumentItem ext)
ext
- the extension to handlepublic void endDocument() throws org.xml.sax.SAXException
org.xml.sax.SAXException
- if a problem was encountered.public PageSequence getCurrentPageSequence()
public int getPageSequenceCount()
public int getPageCount(int seq)
seq
- the page sequence to count.
public PageViewport getPage(int seq, int count)
seq
- the page sequence numbercount
- the page count in the sequence
|
fop 0.95 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |