You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by kl...@apache.org on 2001/04/11 23:44:36 UTC
cvs commit: xml-fop/src/org/apache/fop/layout AreaContainer.java
klease 01/04/11 14:44:36
Modified: src/org/apache/fop/layout AreaContainer.java
Log:
Remove offset of X and Y position by border and padding
Revision Changes Path
1.11 +10 -3 xml-fop/src/org/apache/fop/layout/AreaContainer.java
Index: AreaContainer.java
===================================================================
RCS file: /home/cvs/xml-fop/src/org/apache/fop/layout/AreaContainer.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- AreaContainer.java 2001/03/04 21:38:41 1.10
+++ AreaContainer.java 2001/04/11 21:44:35 1.11
@@ -1,4 +1,4 @@
-/*-- $Id: AreaContainer.java,v 1.10 2001/03/04 21:38:41 klease Exp $ --
+/*-- $Id: AreaContainer.java,v 1.11 2001/04/11 21:44:35 klease Exp $ --
============================================================================
The Apache Software License, Version 1.1
@@ -71,6 +71,7 @@
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 int getXPosition() {
- return xPosition + getPaddingLeft() + getBorderLeftWidth();
+ //return xPosition + getPaddingLeft() + getBorderLeftWidth();
+ return xPosition ;
}
public void setXPosition(int value) {
@@ -90,7 +92,8 @@
}
public int getYPosition() {
- return yPosition + getPaddingTop() + getBorderTopWidth();
+ //return yPosition + getPaddingTop() + getBorderTopWidth();
+ return yPosition ;
}
public int getCurrentYPosition() {
@@ -99,5 +102,9 @@
public void setYPosition(int value) {
yPosition = value;
+ }
+
+ public void shiftYPosition(int value) {
+ yPosition += value;
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-cvs-help@xml.apache.org