diff options
author | Adrian Cumiskey <acumiskey@apache.org> | 2008-01-09 15:40:25 +0000 |
---|---|---|
committer | Adrian Cumiskey <acumiskey@apache.org> | 2008-01-09 15:40:25 +0000 |
commit | 1ab3e8a6a95b9ce900740a603bd978b2581eb1bb (patch) | |
tree | 51aa34e144f16140a267bb5df214ed2bd89ac0b9 /src/java/org | |
parent | b59f42a3208bb67205e36e5ef4e95811b58de3e4 (diff) | |
download | xmlgraphics-fop-1ab3e8a6a95b9ce900740a603bd978b2581eb1bb.tar.gz xmlgraphics-fop-1ab3e8a6a95b9ce900740a603bd978b2581eb1bb.zip |
cleanup
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@610420 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org')
-rw-r--r-- | src/java/org/apache/fop/render/afp/modca/IncludePageSegment.java | 31 |
1 files changed, 13 insertions, 18 deletions
diff --git a/src/java/org/apache/fop/render/afp/modca/IncludePageSegment.java b/src/java/org/apache/fop/render/afp/modca/IncludePageSegment.java index 518904878..7792a7162 100644 --- a/src/java/org/apache/fop/render/afp/modca/IncludePageSegment.java +++ b/src/java/org/apache/fop/render/afp/modca/IncludePageSegment.java @@ -45,24 +45,24 @@ public class IncludePageSegment extends AbstractNamedAFPObject { /** * The x position where we need to put this object on the page */ - private byte[] xCoor; + private byte[] x; /** * The y position where we need to put this object on the page */ - private byte[] yCoor; + private byte[] y; /** * Constructor for the Include Page Segment * @param name Name of the page segment - * @param xVal The x position - * @param yVal The y position + * @param x The x position + * @param y The y position */ - public IncludePageSegment(String name, int xVal, int yVal) { + public IncludePageSegment(String name, int x, int y) { super(name); - this.xCoor = BinaryUtils.convert(xVal, 3); - this.yCoor = BinaryUtils.convert(yVal, 3); + this.x = BinaryUtils.convert(x, 3); + this.y = BinaryUtils.convert(y, 3); } @@ -93,22 +93,17 @@ public class IncludePageSegment extends AbstractNamedAFPObject { data[8] = 0x00; // Reserved for (int i = 0; i < nameBytes.length; i++) { - data[9 + i] = nameBytes[i]; - } - data[17] = xCoor[0]; // x coordinate - data[18] = xCoor[1]; - data[19] = xCoor[2]; + data[17] = x[0]; // x coordinate + data[18] = x[1]; + data[19] = x[2]; - data[20] = yCoor[0]; // y coordinate - data[21] = yCoor[1]; - data[22] = yCoor[2]; + data[20] = y[0]; // y coordinate + data[21] = y[1]; + data[22] = y[2]; os.write(data); - } - - } |