You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pivot.apache.org by no...@apache.org on 2012/03/16 09:19:14 UTC

svn commit: r1301368 - /pivot/trunk/wtk/src/org/apache/pivot/wtk/effects/DropShadowDecorator.java

Author: noelgrandin
Date: Fri Mar 16 08:19:14 2012
New Revision: 1301368

URL: http://svn.apache.org/viewvc?rev=1301368&view=rev
Log:
clean comments

Modified:
    pivot/trunk/wtk/src/org/apache/pivot/wtk/effects/DropShadowDecorator.java

Modified: pivot/trunk/wtk/src/org/apache/pivot/wtk/effects/DropShadowDecorator.java
URL: http://svn.apache.org/viewvc/pivot/trunk/wtk/src/org/apache/pivot/wtk/effects/DropShadowDecorator.java?rev=1301368&r1=1301367&r2=1301368&view=diff
==============================================================================
--- pivot/trunk/wtk/src/org/apache/pivot/wtk/effects/DropShadowDecorator.java (original)
+++ pivot/trunk/wtk/src/org/apache/pivot/wtk/effects/DropShadowDecorator.java Fri Mar 16 08:19:14 2012
@@ -16,7 +16,9 @@
  */
 package org.apache.pivot.wtk.effects;
 
-import java.awt.*;
+import java.awt.Color;
+import java.awt.Graphics2D;
+import java.awt.Transparency;
 import java.awt.geom.AffineTransform;
 import java.awt.image.BufferedImage;
 import java.awt.image.Raster;
@@ -294,7 +296,7 @@ public class DropShadowDecorator impleme
                 // in the next pass
                 dstBuffer[dstOffset++] = a << 24;
 
-                // Substract the oldest pixel from the sum
+                // Subtract the oldest pixel from the sum
                 aSum -= aHistory[historyIdx];
 
                 // Extract the new pixel and store its value into history...
@@ -314,7 +316,7 @@ public class DropShadowDecorator impleme
                 int a = hSumLookup[aSum];
                 dstBuffer[dstOffset++] = a << 24;
 
-                // Substract the oldest pixel from the sum...and nothing new
+                // Subtract the oldest pixel from the sum...and nothing new
                 // to add!
                 aSum -= aHistory[historyIdx];
 
@@ -346,13 +348,13 @@ public class DropShadowDecorator impleme
             bufferOffset = x;
             historyIdx = 0;
 
-            // Compute the blur avera`ge with pixels from the previous pass
+            // Compute the blur average with pixels from the previous pass
             for (int y = 0; y < yStop; y++, bufferOffset += dstWidth) {
                 // Store alpha value + shadow color
                 int a = vSumLookup[aSum];
                 dstBuffer[bufferOffset] = a << 24 | shadowRgb;
 
-                // Substract the oldest pixel from the sum
+                // Subtract the oldest pixel from the sum
                 aSum -= aHistory[historyIdx];
 
                 // Extract the new pixel and store its value into history...
@@ -372,7 +374,7 @@ public class DropShadowDecorator impleme
                 int a = vSumLookup[aSum];
                 dstBuffer[bufferOffset] = a << 24 | shadowRgb;
 
-                // Substract the oldest pixel from the sum
+                // Subtract the oldest pixel from the sum
                 aSum -= aHistory[historyIdx];
 
                 if (++historyIdx >= shadowSize) {