|
fop 0.93 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.fop.area.AreaTreeModel
org.apache.fop.area.RenderPagesModel
This uses the AreaTreeModel to store the pages Each page is either rendered if ready or prepared for later rendering. Once a page is rendered it is cleared to release the contents but the PageViewport is retained. So even though the pages are stored the contents are discarded.
| Field Summary | |
protected java.util.List |
prepared
Pages that have been prepared but not rendered yet. |
protected Renderer |
renderer
The renderer that will render the pages. |
| Fields inherited from class org.apache.fop.area.AreaTreeModel |
currentPageSequence, log |
| Constructor Summary | |
RenderPagesModel(FOUserAgent userAgent,
java.lang.String outputFormat,
FontInfo fontInfo,
java.io.OutputStream stream)
Create a new render pages model with the given renderer. |
|
| Method Summary | |
void |
addPage(PageViewport page)
Add a page to the render page model. |
protected boolean |
checkPreparedPages(PageViewport newpage,
boolean renderUnresolved)
Check prepared pages |
void |
endDocument()
End the document. |
void |
handleOffDocumentItem(OffDocumentItem oDI)
Handle an OffDocumentItem |
protected void |
preparePage(PageViewport page)
Prepare a page. |
void |
startPageSequence(LineArea title)
Start a new page sequence. |
| Methods inherited from class org.apache.fop.area.AreaTreeModel |
getPage, getPageCount, getPageSequenceCount |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected Renderer renderer
protected java.util.List prepared
| Constructor Detail |
public RenderPagesModel(FOUserAgent userAgent,
java.lang.String outputFormat,
FontInfo fontInfo,
java.io.OutputStream stream)
throws FOPException
userAgent - FOUserAgent object for processoutputFormat - the MIME type of the output format to use (ex. "application/pdf").fontInfo - FontInfo objectstream - OutputStream
FOPException - if the renderer cannot be properly initialized| Method Detail |
public void startPageSequence(LineArea title)
startPageSequence in class AreaTreeModeltitle - the title of the new page sequencepublic void addPage(PageViewport page)
addPage in class AreaTreeModelpage - the page to add to the model
protected boolean checkPreparedPages(PageViewport newpage,
boolean renderUnresolved)
newpage - the new page being addedrenderUnresolved - render pages with unresolved idref's
(done at end-of-document processing)
protected void preparePage(PageViewport page)
page - the page to preparepublic void handleOffDocumentItem(OffDocumentItem oDI)
AreaTreeModel
handleOffDocumentItem in class AreaTreeModeloDI - the extension to handleAreaTreeModel.handleOffDocumentItem(OffDocumentItem)
public void endDocument()
throws org.xml.sax.SAXException
endDocument in class AreaTreeModelorg.xml.sax.SAXException - if a problem was encountered.AreaTreeModel.endDocument()
|
fop 0.93 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||