aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/render/ps/PSRenderer.java
diff options
context:
space:
mode:
authorFinn Bock <bckfnn@apache.org>2004-09-22 08:30:21 +0000
committerFinn Bock <bckfnn@apache.org>2004-09-22 08:30:21 +0000
commitec112b9794f6f424aa44e9c859fca495dedc77c7 (patch)
tree1bcf059202edb56b12523be70ef83ff9bfb427e4 /src/java/org/apache/fop/render/ps/PSRenderer.java
parentdb54754167ef28ce8ca2962a732d362501e165ce (diff)
downloadxmlgraphics-fop-ec112b9794f6f424aa44e9c859fca495dedc77c7.tar.gz
xmlgraphics-fop-ec112b9794f6f424aa44e9c859fca495dedc77c7.zip
Use content ipd/bpd instead of allocation width/height.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197959 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/render/ps/PSRenderer.java')
-rw-r--r--src/java/org/apache/fop/render/ps/PSRenderer.java18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/java/org/apache/fop/render/ps/PSRenderer.java b/src/java/org/apache/fop/render/ps/PSRenderer.java
index 904a1183c..4d5cd074b 100644
--- a/src/java/org/apache/fop/render/ps/PSRenderer.java
+++ b/src/java/org/apache/fop/render/ps/PSRenderer.java
@@ -522,8 +522,8 @@ public class PSRenderer extends AbstractRenderer {
saveGraphicsState();
int x = bv.getXOffset() + containingIPPosition;
int y = bv.getYOffset() + containingBPPosition;
- int width = bv.getWidth();
- int height = bv.getHeight();
+ int width = bv.getIPD();
+ int height = bv.getBPD();
clip(x, y, width, height);
}
@@ -556,11 +556,11 @@ public class PSRenderer extends AbstractRenderer {
double[] vals = ctm.toArray();
//boolean aclock = vals[2] == 1.0;
if (vals[2] == 1.0) {
- ctm = ctm.translate(-saveBP - bv.getHeight(), -saveIP);
+ ctm = ctm.translate(-saveBP - bv.getBPD(), -saveIP);
} else if (vals[0] == -1.0) {
- ctm = ctm.translate(-saveIP - bv.getWidth(), -saveBP - bv.getHeight());
+ ctm = ctm.translate(-saveIP - bv.getIPD(), -saveBP - bv.getBPD());
} else {
- ctm = ctm.translate(saveBP, saveIP - bv.getWidth());
+ ctm = ctm.translate(saveBP, saveIP - bv.getIPD());
}
}
@@ -573,8 +573,8 @@ public class PSRenderer extends AbstractRenderer {
saveGraphicsState();
int x = bv.getXOffset();
int y = bv.getYOffset();
- int width = bv.getWidth();
- int height = bv.getHeight();
+ int width = bv.getIPD();
+ int height = bv.getBPD();
clip(x, y, width, height);
}
@@ -599,7 +599,7 @@ public class PSRenderer extends AbstractRenderer {
currentIPPosition = saveIP;
currentBPPosition = saveBP;
- currentBPPosition += (int)(bv.getHeight());
+ currentBPPosition += (int)(bv.getAllocBPD());
}
currentFontName = saveFontName;
}
@@ -663,7 +663,7 @@ public class PSRenderer extends AbstractRenderer {
float startx = currentIPPosition;
float starty = currentBPPosition;
drawBackAndBorders(block, startx, starty,
- block.getWidth(), block.getHeight());
+ block.getIPD(), block.getBPD());
}
/**