org.apache.fop.layoutmgr
Class Page
java.lang.Object
org.apache.fop.layoutmgr.Page
public class Page
extends java.lang.Object
This object is used by the layout engine to represent a page. It provides access to the
simple-page-master that was used as a template for this page and it provides access to the
PageViewport which is the top-level area tree element. This class helps to decouple the
FO tree from the area tree to make the latter easily serializable.
Page(Rectangle2D viewArea, int pageNumber, String pageNumberStr, boolean blank) - Auxiliary constructor used when there's no SimplePageMaster.
|
Page(SimplePageMaster spm, int pageNumber, String pageNumberStr, boolean blank) - Main constructor
|
Page
public Page(Rectangle2D viewArea,
int pageNumber,
String pageNumberStr,
boolean blank)
Auxiliary constructor used when there's no SimplePageMaster.
viewArea
- the view area of the pagepageNumber
- the page number (as an int)pageNumberStr
- the page number (as a String)blank
- true if this is a blank page
Page
public Page(SimplePageMaster spm,
int pageNumber,
String pageNumberStr,
boolean blank)
Main constructor
spm
- the simple-page-master used for this pagepageNumber
- the page number (as an int)pageNumberStr
- the page number (as a String)blank
- true if this is a blank page
getPageViewport
public PageViewport getPageViewport()
- the page viewport representing this page in the area tree
getSimplePageMaster
public SimplePageMaster getSimplePageMaster()
- the simple-page-master that created this page
Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.