aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/area/PageViewport.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/java/org/apache/fop/area/PageViewport.java')
-rw-r--r--src/java/org/apache/fop/area/PageViewport.java18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/java/org/apache/fop/area/PageViewport.java b/src/java/org/apache/fop/area/PageViewport.java
index f1daaa2f1..b516b3446 100644
--- a/src/java/org/apache/fop/area/PageViewport.java
+++ b/src/java/org/apache/fop/area/PageViewport.java
@@ -108,6 +108,16 @@ public class PageViewport implements Resolvable, Cloneable {
}
/**
+ * Constructor used by the area tree parser.
+ * @param viewArea the view area
+ * @param pageStr String representation of the page number
+ */
+ public PageViewport(Rectangle2D viewArea, String pageStr) {
+ this.viewArea = viewArea;
+ this.pageNumberString = pageStr;
+ }
+
+ /**
* Get the view area rectangle of this viewport.
* @return the rectangle for this viewport
*/
@@ -122,6 +132,14 @@ public class PageViewport implements Resolvable, Cloneable {
public Page getPage() {
return page;
}
+
+ /**
+ * Sets the page object for this PageViewport.
+ * @param page the page
+ */
+ public void setPage(Page page) {
+ this.page = page;
+ }
/**
* Get the page number of this page.