public class AreaTreeModel
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected PageSequence |
currentPageSequence
the current page sequence
|
protected static org.apache.commons.logging.Log |
log
logger instance
|
| Constructor and Description |
|---|
AreaTreeModel()
Create a new store pages model
|
| Modifier and Type | Method and Description |
|---|---|
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 |
setDocumentLocale(java.util.Locale locale) |
void |
startPageSequence(PageSequence pageSequence)
Start a page sequence on this model.
|
protected PageSequence currentPageSequence
protected static final org.apache.commons.logging.Log log
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 sequencepublic void setDocumentLocale(java.util.Locale locale)
locale - The locale of the documentCopyright 1999-2022 The Apache Software Foundation. All Rights Reserved.