aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKaren Lease <klease@apache.org>2001-04-11 21:44:35 +0000
committerKaren Lease <klease@apache.org>2001-04-11 21:44:35 +0000
commit52b192f408c5dba675f072ceaa49dad160bd0eab (patch)
treeeb3e12e4c90148aaf69f507cfddb1ed45cc406fc /src
parentb18a93c6e5519bc2dedc2196d3dde7e90c7b5766 (diff)
downloadxmlgraphics-fop-52b192f408c5dba675f072ceaa49dad160bd0eab.tar.gz
xmlgraphics-fop-52b192f408c5dba675f072ceaa49dad160bd0eab.zip
Remove offset of X and Y position by border and padding
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194205 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r--src/org/apache/fop/layout/AreaContainer.java11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/org/apache/fop/layout/AreaContainer.java b/src/org/apache/fop/layout/AreaContainer.java
index 79822f7d2..3f0dede76 100644
--- a/src/org/apache/fop/layout/AreaContainer.java
+++ b/src/org/apache/fop/layout/AreaContainer.java
@@ -71,6 +71,7 @@ public class AreaContainer extends Area {
this.xPosition = xPosition;
this.yPosition = yPosition;
this.position = position;
+ //setIsReferenceArea(true); // Should always be true!
}
public void render(Renderer renderer) {
@@ -82,7 +83,8 @@ public class AreaContainer extends Area {
}
public int getXPosition() {
- return xPosition + getPaddingLeft() + getBorderLeftWidth();
+ //return xPosition + getPaddingLeft() + getBorderLeftWidth();
+ return xPosition ;
}
public void setXPosition(int value) {
@@ -90,7 +92,8 @@ public class AreaContainer extends Area {
}
public int getYPosition() {
- return yPosition + getPaddingTop() + getBorderTopWidth();
+ //return yPosition + getPaddingTop() + getBorderTopWidth();
+ return yPosition ;
}
public int getCurrentYPosition() {
@@ -100,4 +103,8 @@ public class AreaContainer extends Area {
public void setYPosition(int value) {
yPosition = value;
}
+
+ public void shiftYPosition(int value) {
+ yPosition += value;
+ }
}