org.apache.fop.area
Class AreaTreeModel
java.lang.Object
org.apache.fop.area.AreaTreeModel
public class AreaTreeModel
extends java.lang.Object
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.
currentPageSequence
protected PageSequence currentPageSequence
the current page sequence
log
protected static Log log
logger instance
AreaTreeModel
public AreaTreeModel()
Create a new store pages model
addPage
public void addPage(PageViewport page)
Add a page to this model.
page
- the page to add to the model.
endDocument
public void endDocument()
throws SAXException
Signal the end of the document for any processing.
getCurrentPageSequence
public PageSequence getCurrentPageSequence()
Returns the currently active page-sequence.
- the currently active page-sequence
getPage
public PageViewport getPage(int seq,
int count)
Get the page for a position in the document.
seq
- the page sequence numbercount
- the page count in the sequence
- the PageViewport for the particular page
getPageCount
public int getPageCount(int seq)
Get the page count.
seq
- the page sequence to count.
- returns the number of pages in a page sequence
getPageSequenceCount
public int getPageSequenceCount()
Get the page sequence count.
- the number of page sequences in the document.
handleOffDocumentItem
public void handleOffDocumentItem(OffDocumentItem ext)
Handle an OffDocumentItem
ext
- the extension to handle
startPageSequence
public void startPageSequence(PageSequence pageSequence)
Start a page sequence on this model.
pageSequence
- the page sequence about to start
Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.