aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/layoutmgr/Page.java
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2005-12-22 10:51:29 +0000
committerJeremias Maerki <jeremias@apache.org>2005-12-22 10:51:29 +0000
commite6f94a6d688b3150056a1b6842ae45a29b723923 (patch)
treea2ae7268e6b5451011b7d4196dcc1c794e177f10 /src/java/org/apache/fop/layoutmgr/Page.java
parenteb2dae3ff914bad79818905ed699e18124dfd5c5 (diff)
downloadxmlgraphics-fop-e6f94a6d688b3150056a1b6842ae45a29b723923.tar.gz
xmlgraphics-fop-e6f94a6d688b3150056a1b6842ae45a29b723923.zip
More work on preparing for the intermediate format.
Font traits are added in a single place in TraitSetter so it will be easier to change those. Remove direct references on FObjs in the area tree for regions. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@358555 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/layoutmgr/Page.java')
-rw-r--r--src/java/org/apache/fop/layoutmgr/Page.java12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/java/org/apache/fop/layoutmgr/Page.java b/src/java/org/apache/fop/layoutmgr/Page.java
index 568defb0b..e33230c68 100644
--- a/src/java/org/apache/fop/layoutmgr/Page.java
+++ b/src/java/org/apache/fop/layoutmgr/Page.java
@@ -32,15 +32,23 @@ public class Page {
private SimplePageMaster spm;
private PageViewport pageViewport;
- public Page(SimplePageMaster spm, String pageStr, boolean blank) {
+ /**
+ * Main constructor
+ * @param spm the simple-page-master used for this page
+ * @param pageNumberStr the page number (as a String)
+ * @param blank true if this is a blank page
+ */
+ public Page(SimplePageMaster spm, String pageNumberStr, boolean blank) {
this.spm = spm;
- this.pageViewport = new PageViewport(spm, pageStr, blank);
+ this.pageViewport = new PageViewport(spm, pageNumberStr, blank);
}
+ /** @return the simple-page-master that created this page */
public SimplePageMaster getSimplePageMaster() {
return this.spm;
}
+ /** @return the page viewport representing this page in the area tree */
public PageViewport getPageViewport() {
return this.pageViewport;
}