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 ac...@apache.org on 2007/12/05 18:31:20 UTC

svn commit: r601434 - /xmlgraphics/fop/trunk/src/java/org/apache/fop/render/afp/modca/ImageOutputControl.java

Author: acumiskey
Date: Wed Dec  5 09:31:20 2007
New Revision: 601434

URL: http://svn.apache.org/viewvc?rev=601434&view=rev
Log:
Checkstyle fixes

Modified:
    xmlgraphics/fop/trunk/src/java/org/apache/fop/render/afp/modca/ImageOutputControl.java

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/render/afp/modca/ImageOutputControl.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/render/afp/modca/ImageOutputControl.java?rev=601434&r1=601433&r2=601434&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/render/afp/modca/ImageOutputControl.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/render/afp/modca/ImageOutputControl.java Wed Dec  5 09:31:20 2007
@@ -34,24 +34,24 @@
     /**
      * The orientation of the image
      */
-    private int _orientation = 0;
+    private int orientation = 0;
 
     /**
      * Specifies the offset, along the X-axis, of the IM image object area
      * origin to the origin of the including page
      */
-    private int _Xcoordinate = 0;
+    private int xCoord = 0;
 
     /**
      * Specifies the offset, along the Y-axis, of the IM image object area
      * origin to the origin of the including page
      */
-    private int _Ycoordinate = 0;
+    private int yCoord = 0;
 
     /**
-     * Map an image point to a single presentation device pel
+     * Map an image point to a single presentation device
      */
-    private boolean _singlepoint = true;
+    private boolean singlePoint = true;
 
     /**
      * Constructor for the ImageOutputControl The x parameter specifies the
@@ -68,18 +68,17 @@
      */
     public ImageOutputControl(int x, int y) {
 
-        _Xcoordinate = x;
-        _Ycoordinate = y;
+        xCoord = x;
+        yCoord = y;
 
     }
 
     /**
      * Accessor method to write the AFP datastream for the Image Output Control
      * @param os The stream to write to
-     * @throws java.io.IOException
+     * @throws java.io.IOException if an I/O exception occured
      */
-    public void writeDataStream(OutputStream os)
-        throws IOException {
+    public void writeDataStream(OutputStream os) throws IOException {
 
         byte[] data = new byte[33];
 
@@ -94,18 +93,18 @@
         data[8] = 0x00;
 
         // XoaOset
-        byte[] x1 = BinaryUtils.convert(_Xcoordinate, 3);
+        byte[] x1 = BinaryUtils.convert(xCoord, 3);
         data[9] = x1[0];
         data[10] = x1[1];
         data[11] = x1[2];
 
         // YoaOset
-        byte[] x2 = BinaryUtils.convert(_Ycoordinate, 3);
+        byte[] x2 = BinaryUtils.convert(yCoord, 3);
         data[12] = x2[0];
         data[13] = x2[1];
         data[14] = x2[2];
 
-        switch (_orientation) {
+        switch (orientation) {
             case 0:
                 // 0 and 90 degrees respectively
                 data[15] = 0x00;
@@ -154,7 +153,7 @@
         data[25] = 0x00;
         data[26] = 0x00;
 
-        if (_singlepoint) {
+        if (singlePoint) {
             data[27] = 0x03;
             data[28] = (byte) 0xE8;
             data[29] = 0x03;
@@ -185,12 +184,11 @@
 
         if (orientation == 0 || orientation == 90 || orientation == 180
             || orientation == 270) {
-            _orientation = orientation;
+            this.orientation = orientation;
         } else {
             throw new IllegalArgumentException(
                 "The orientation must be one of the values 0, 90, 180, 270");
         }
-
     }
 
     /**
@@ -202,7 +200,6 @@
      *            Use the singlepoint basis when true.
      */
     public void setSinglepoint(boolean singlepoint) {
-        _singlepoint = singlepoint;
+        singlePoint = singlepoint;
     }
-
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-commits-help@xmlgraphics.apache.org