Revision: 757
Author: allain.lalonde
Date: Mon Oct 19 23:13:22 2009
Log: Some low hanging CheckStyle fruit.
http://code.google.com/p/piccolo2d/source/detail?r=757

Modified:
   
/piccolo2d.java/trunk/extras/src/main/java/edu/umd/cs/piccolox/util/PFixedWidthStroke.java
   
/piccolo2d.java/trunk/extras/src/main/java/edu/umd/cs/piccolox/util/ShadowUtils.java
   
/piccolo2d.java/trunk/swt/src/main/java/edu/umd/cs/piccolox/swt/SWTGraphics2D.java

=======================================
---  
/piccolo2d.java/trunk/extras/src/main/java/edu/umd/cs/piccolox/util/PFixedWidthStroke.java
       
Wed Oct 14 08:47:49 2009
+++  
/piccolo2d.java/trunk/extras/src/main/java/edu/umd/cs/piccolox/util/PFixedWidthStroke.java
       
Mon Oct 19 23:13:22 2009
@@ -112,8 +112,8 @@
      }

      public PFixedWidthStroke(final float width, final int cap, final int  
join, final float miterlimit,
-            final float[] dash, final float dash_phase) {
-        this(new BasicStroke(width, cap, join, miterlimit, dash,  
dash_phase));
+            final float[] dash, final float dashPhase) {
+        this(new BasicStroke(width, cap, join, miterlimit, dash,  
dashPhase));
      }

      /**
=======================================
---  
/piccolo2d.java/trunk/extras/src/main/java/edu/umd/cs/piccolox/util/ShadowUtils.java
     
Mon Oct 19 07:28:52 2009
+++  
/piccolo2d.java/trunk/extras/src/main/java/edu/umd/cs/piccolox/util/ShadowUtils.java
     
Mon Oct 19 23:13:22 2009
@@ -124,9 +124,9 @@

              double sum = 0.0d;
              for (int x = 0; x < w; x++) {
-                int xr2 = (x-r) * (x-r);
+                int xr2 = (x - r) * (x - r);
                  for (int y = 0; y < w; y++) {
-                    int yr2 = (y-r) * (y-r);
+                    int yr2 = (y - r) * (y - r);
                      kernel[x * w + y] = (float) (Math.pow(Math.E, -(yr2 +  
xr2) / m) / n);
                      sum += kernel[x * w + y];
                  }
=======================================
---  
/piccolo2d.java/trunk/swt/src/main/java/edu/umd/cs/piccolox/swt/SWTGraphics2D.java
       
Mon Oct 19 11:14:19 2009
+++  
/piccolo2d.java/trunk/swt/src/main/java/edu/umd/cs/piccolox/swt/SWTGraphics2D.java
       
Mon Oct 19 23:13:22 2009
@@ -452,14 +452,14 @@
      }

      /** {...@inheritdoc} */
-    public void transform(final AffineTransform Tx) {
-        transform.concatenate(Tx);
+    public void transform(final AffineTransform srcTransform) {
+        transform.concatenate(srcTransform);
          updateSWTTransform();
      }

      /** {...@inheritdoc} */
-    public void setTransform(final AffineTransform Tx) {
-        transform = (AffineTransform) Tx.clone();
+    public void setTransform(final AffineTransform newTransform) {
+        transform = (AffineTransform) newTransform.clone();
          updateSWTTransform();
      }


--~--~---------~--~----~------------~-------~--~----~
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to