aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlen Mazza <gmazza@apache.org>2004-08-29 13:34:06 +0000
committerGlen Mazza <gmazza@apache.org>2004-08-29 13:34:06 +0000
commit7113bcdff3a2f6eee6c58f3250f72c57699b0ddb (patch)
tree924122a8f760c333c9efa00554706ce3be8b08b0
parent450f1eeb3a2bd8caf2238e642097d16906c04e37 (diff)
downloadxmlgraphics-fop-7113bcdff3a2f6eee6c58f3250f72c57699b0ddb.tar.gz
xmlgraphics-fop-7113bcdff3a2f6eee6c58f3250f72c57699b0ddb.zip
Minor edits to adjustIPD() methods.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197894 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--src/java/org/apache/fop/fo/pagination/RegionBA.java10
-rw-r--r--src/java/org/apache/fop/fo/pagination/RegionSE.java10
2 files changed, 10 insertions, 10 deletions
diff --git a/src/java/org/apache/fop/fo/pagination/RegionBA.java b/src/java/org/apache/fop/fo/pagination/RegionBA.java
index c78fc5d62..53d1b0745 100644
--- a/src/java/org/apache/fop/fo/pagination/RegionBA.java
+++ b/src/java/org/apache/fop/fo/pagination/RegionBA.java
@@ -64,15 +64,15 @@ public abstract class RegionBA extends Region {
* If precedence is false on a before or after region, its
* inline-progression-dimension is limited by the extent of the start
* and end regions if they are present.
- * @param vpRect viewport rectangle
+ * @param vpRefRect viewport reference rectangle
* @param wm writing mode
*/
- protected void adjustIPD(Rectangle vpRect, int wm) {
+ protected void adjustIPD(Rectangle vpRefRect, int wm) {
int offset = 0;
Region start = getSiblingRegion(Region.START);
if (start != null) {
offset = start.getExtent();
- vpRect.translate(offset, 0);
+ vpRefRect.translate(offset, 0);
}
Region end = getSiblingRegion(Region.END);
if (end != null) {
@@ -80,9 +80,9 @@ public abstract class RegionBA extends Region {
}
if (offset > 0) {
if (wm == WritingMode.LR_TB || wm == WritingMode.RL_TB) {
- vpRect.width -= offset;
+ vpRefRect.width -= offset;
} else {
- vpRect.height -= offset;
+ vpRefRect.height -= offset;
}
}
}
diff --git a/src/java/org/apache/fop/fo/pagination/RegionSE.java b/src/java/org/apache/fop/fo/pagination/RegionSE.java
index 454742dac..596560237 100644
--- a/src/java/org/apache/fop/fo/pagination/RegionSE.java
+++ b/src/java/org/apache/fop/fo/pagination/RegionSE.java
@@ -53,15 +53,15 @@ public abstract class RegionSE extends Region {
* regions only go to the limits of their extents, otherwise
* they extend in the BPD to the page reference rectangle
* diminish by extend of start and end if present.
- * @param refRect reference rectangle
+ * @param vpRefRect viewport reference rectangle
* @param wm writing mode
*/
- protected void adjustIPD(Rectangle refRect, int wm) {
+ protected void adjustIPD(Rectangle vpRefRect, int wm) {
int offset = 0;
Region before = getSiblingRegion(Region.BEFORE);
if (before != null && before.getPrecedence()) {
offset = before.getExtent();
- refRect.translate(0, offset);
+ vpRefRect.translate(0, offset);
}
Region after = getSiblingRegion(Region.AFTER);
if (after != null && after.getPrecedence()) {
@@ -69,9 +69,9 @@ public abstract class RegionSE extends Region {
}
if (offset > 0) {
if (wm == WritingMode.LR_TB || wm == WritingMode.RL_TB) {
- refRect.height -= offset;
+ vpRefRect.height -= offset;
} else {
- refRect.width -= offset;
+ vpRefRect.width -= offset;
}
}
}