fop 0.91beta

org.apache.fop.area
Class CachedRenderPagesModel

java.lang.Object
  |
  +--org.apache.fop.area.AreaTreeModel
        |
        +--org.apache.fop.area.RenderPagesModel
              |
              +--org.apache.fop.area.CachedRenderPagesModel

public class CachedRenderPagesModel
extends RenderPagesModel

A simple cached render pages model. If the page is prepared for later rendering then this saves the page contents to a file and once the page is resolved the contents are reloaded.


Fields inherited from class org.apache.fop.area.RenderPagesModel
prepared, renderer
 
Fields inherited from class org.apache.fop.area.AreaTreeModel
log
 
Constructor Summary
CachedRenderPagesModel(FOUserAgent userAgent, java.lang.String outputFormat, FontInfo fontInfo, java.io.OutputStream stream)
          Constructor
 
Method Summary
protected  boolean checkPreparedPages(PageViewport newpage, boolean renderUnresolved)
          Check prepared pages
protected  void savePage(PageViewport page)
          Save a page.
 
Methods inherited from class org.apache.fop.area.RenderPagesModel
addPage, endDocument, handleOffDocumentItem, preparePage, startPageSequence
 
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
 

Constructor Detail

CachedRenderPagesModel

public CachedRenderPagesModel(FOUserAgent userAgent,
                              java.lang.String outputFormat,
                              FontInfo fontInfo,
                              java.io.OutputStream stream)
                       throws FOPException
Constructor
See Also:
RenderPagesModel.RenderPagesModel(FOUserAgent, String, FontInfo, OutputStream)
Method Detail

checkPreparedPages

protected boolean checkPreparedPages(PageViewport newpage,
                                     boolean renderUnresolved)
Description copied from class: RenderPagesModel
Check prepared pages
Overrides:
checkPreparedPages in class RenderPagesModel
See Also:
RenderPagesModel.checkPreparedPages(PageViewport, boolean)

savePage

protected void savePage(PageViewport page)
Save a page. It saves the contents of the page to a file.
Parameters:
page - the page to prepare

fop 0.91beta

Copyright 1999-2005 The Apache Software Foundation. All Rights Reserved.