Author: acumiskey
Date: Wed Jan 9 07:40:25 2008
New Revision: 610420
URL: http://svn.apache.org/viewvc?rev=610420&view=rev
Log:
cleanup
Modified:
xmlgraphics/fop/trunk/src/java/org/apache/fop/render/afp/modca/IncludePageSegment.java
Modified:
xmlgraphics/fop/trunk/src/java/org/apache/fop/render/afp/modca/IncludePageSegment.java
URL:
http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/render/afp/modca/IncludePageSegment.java?rev=610420&r1=610419&r2=610420&view=diff
==============================================================================
---
xmlgraphics/fop/trunk/src/java/org/apache/fop/render/afp/modca/IncludePageSegment.java
(original)
+++
xmlgraphics/fop/trunk/src/java/org/apache/fop/render/afp/modca/IncludePageSegment.java
Wed Jan 9 07:40:25 2008
@@ -45,24 +45,24 @@
/**
* 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 @@
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[20] = yCoor[0]; // y coordinate
- data[21] = yCoor[1];
- data[22] = yCoor[2];
+ data[17] = x[0]; // x coordinate
+ data[18] = x[1];
+ data[19] = x[2];
+
+ data[20] = y[0]; // y coordinate
+ data[21] = y[1];
+ data[22] = y[2];
os.write(data);
-
}
-
-
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]