aboutsummaryrefslogtreecommitdiffstats
path: root/src/org/apache/fop/layout/AreaContainer.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/apache/fop/layout/AreaContainer.java')
-rw-r--r--src/org/apache/fop/layout/AreaContainer.java15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/org/apache/fop/layout/AreaContainer.java b/src/org/apache/fop/layout/AreaContainer.java
index af39677cf..45fedba8e 100644
--- a/src/org/apache/fop/layout/AreaContainer.java
+++ b/src/org/apache/fop/layout/AreaContainer.java
@@ -52,6 +52,7 @@ package org.apache.fop.layout;
// FOP
import org.apache.fop.render.Renderer;
+import org.apache.fop.fo.properties.*;
// Java
import java.util.Vector;
@@ -61,22 +62,28 @@ public class AreaContainer extends Area {
private int xPosition; // should be able to take value 'left' and 'right' too
private int yPosition; // should be able to take value 'top' and 'bottom' too
+ private int position;
- AreaContainer(int xPosition, int yPosition, int allocationWidth, int maxHeight) {
- super(null, allocationWidth, maxHeight);
+ public AreaContainer(FontState fontState, int xPosition, int yPosition, int allocationWidth, int maxHeight, int position) {
+ super(fontState, allocationWidth, maxHeight);
this.xPosition = xPosition;
this.yPosition = yPosition;
+ this.position = position;
}
public void render(Renderer renderer) {
renderer.renderAreaContainer(this);
}
+ public int getPosition() {
+ return position;
+ }
+
public int getXPosition() {
- return xPosition;
+ return xPosition + this.paddingLeft + this.borderWidthLeft;
}
public int getYPosition() {
- return yPosition;
+ return yPosition + this.paddingTop + this.borderWidthTop;
}
}