aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/tools/AreaTreeBuilder.java
diff options
context:
space:
mode:
authorGlen Mazza <gmazza@apache.org>2003-11-01 04:28:02 +0000
committerGlen Mazza <gmazza@apache.org>2003-11-01 04:28:02 +0000
commite17e45b0924c5af3a443cf0ae52199df2df326ab (patch)
treeba69412af91e56574f944cb65bb8884d6fdf5990 /src/java/org/apache/fop/tools/AreaTreeBuilder.java
parent153b66c5d6b402f88f10101614c73b2fe188618d (diff)
downloadxmlgraphics-fop-e17e45b0924c5af3a443cf0ae52199df2df326ab.tar.gz
xmlgraphics-fop-e17e45b0924c5af3a443cf0ae52199df2df326ab.zip
Layout changed to account for fo:region-body borders and padding when
determining printable width and height for each page. Various method nitpicks also fixed. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196974 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/tools/AreaTreeBuilder.java')
-rw-r--r--src/java/org/apache/fop/tools/AreaTreeBuilder.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/java/org/apache/fop/tools/AreaTreeBuilder.java b/src/java/org/apache/fop/tools/AreaTreeBuilder.java
index d0fe8f973..2259f2f5b 100644
--- a/src/java/org/apache/fop/tools/AreaTreeBuilder.java
+++ b/src/java/org/apache/fop/tools/AreaTreeBuilder.java
@@ -383,19 +383,19 @@ class TreeLoader extends AbstractLogEnabled {
Node obj = childs.item(i);
if (obj.getNodeName().equals("regionBefore")) {
reg.setRegion(readRegion((Element) obj, Region.BEFORE_CODE));
- page.setRegion(Region.BEFORE_CODE, reg);
+ page.setRegionViewport(Region.BEFORE_CODE, reg);
} else if (obj.getNodeName().equals("regionStart")) {
reg.setRegion(readRegion((Element) obj, Region.START_CODE));
- page.setRegion(Region.START_CODE, reg);
+ page.setRegionViewport(Region.START_CODE, reg);
} else if (obj.getNodeName().equals("regionBody")) {
reg.setRegion(readRegion((Element) obj, Region.BODY_CODE));
- page.setRegion(Region.BODY_CODE, reg);
+ page.setRegionViewport(Region.BODY_CODE, reg);
} else if (obj.getNodeName().equals("regionEnd")) {
reg.setRegion(readRegion((Element) obj, Region.END_CODE));
- page.setRegion(Region.END_CODE, reg);
+ page.setRegionViewport(Region.END_CODE, reg);
} else if (obj.getNodeName().equals("regionAfter")) {
reg.setRegion(readRegion((Element) obj, Region.AFTER_CODE));
- page.setRegion(Region.AFTER_CODE, reg);
+ page.setRegionViewport(Region.AFTER_CODE, reg);
}
}