From 1ab3e8a6a95b9ce900740a603bd978b2581eb1bb Mon Sep 17 00:00:00 2001 From: Adrian Cumiskey Date: Wed, 9 Jan 2008 15:40:25 +0000 Subject: [PATCH] cleanup git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@610420 13f79535-47bb-0310-9956-ffa450edef68 --- .../render/afp/modca/IncludePageSegment.java | 31 ++++++++----------- 1 file 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); - } - - } -- 2.39.5