fop 0.90alpha1

org.apache.fop.area
Class CachedRenderPagesModel

java.lang.Object
  extended byorg.apache.fop.area.AreaTreeModel
      extended byorg.apache.fop.area.RenderPagesModel
          extended byorg.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.


Field Summary
 
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
Parameters:
newpage - the new page being added
renderUnresolved - render pages with unresolved idref's (done at end-of-document processing)
Returns:
true if the current page should be rendered false if the renderer doesn't support out of order rendering and there are pending pages
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.90alpha1

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