commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brit...@apache.org
Subject svn commit: r1649357 - /commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/palette/
Date Sun, 04 Jan 2015 16:51:57 GMT
Author: britter
Date: Sun Jan  4 16:51:57 2015
New Revision: 1649357

URL: http://svn.apache.org/r1649357
Log:
No need to add an implementation suffix to an abstract class

Added:
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/palette/MedianCut.java
      - copied, changed from r1648980, commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/palette/MedianCutImplementation.java
Removed:
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/palette/MedianCutImplementation.java
Modified:
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/palette/MedianCutLongestAxisImplementation.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/palette/MedianCutMostPopulatedBoxesImplementation.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/palette/MedianCutQuantizer.java

Copied: commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/palette/MedianCut.java
(from r1648980, commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/palette/MedianCutImplementation.java)
URL: http://svn.apache.org/viewvc/commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/palette/MedianCut.java?p2=commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/palette/MedianCut.java&p1=commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/palette/MedianCutImplementation.java&r1=1648980&r2=1649357&rev=1649357&view=diff
==============================================================================
--- commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/palette/MedianCutImplementation.java
(original)
+++ commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/palette/MedianCut.java
Sun Jan  4 16:51:57 2015
@@ -20,7 +20,7 @@ import java.util.List;
 
 import org.apache.commons.imaging.ImageWriteException;
 
-public abstract class MedianCutImplementation {
+public abstract class MedianCut {
     public abstract boolean performNextMedianCut(final List<ColorGroup> colorGroups,
final boolean ignoreAlpha)
             throws ImageWriteException;
 }

Modified: commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/palette/MedianCutLongestAxisImplementation.java
URL: http://svn.apache.org/viewvc/commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/palette/MedianCutLongestAxisImplementation.java?rev=1649357&r1=1649356&r2=1649357&view=diff
==============================================================================
--- commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/palette/MedianCutLongestAxisImplementation.java
(original)
+++ commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/palette/MedianCutLongestAxisImplementation.java
Sun Jan  4 16:51:57 2015
@@ -23,7 +23,7 @@ import java.util.List;
 
 import org.apache.commons.imaging.ImageWriteException;
 
-public class MedianCutLongestAxisImplementation extends MedianCutImplementation {
+public class MedianCutLongestAxisImplementation extends MedianCut {
     private static final Comparator<ColorGroup> COMPARATOR = new Comparator<ColorGroup>()
{
         public int compare(final ColorGroup cg1, final ColorGroup cg2) {
             if (cg1.maxDiff == cg2.maxDiff) {

Modified: commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/palette/MedianCutMostPopulatedBoxesImplementation.java
URL: http://svn.apache.org/viewvc/commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/palette/MedianCutMostPopulatedBoxesImplementation.java?rev=1649357&r1=1649356&r2=1649357&view=diff
==============================================================================
--- commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/palette/MedianCutMostPopulatedBoxesImplementation.java
(original)
+++ commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/palette/MedianCutMostPopulatedBoxesImplementation.java
Sun Jan  4 16:51:57 2015
@@ -24,7 +24,7 @@ import java.util.List;
 
 import org.apache.commons.imaging.ImageWriteException;
 
-public class MedianCutMostPopulatedBoxesImplementation extends MedianCutImplementation {
+public class MedianCutMostPopulatedBoxesImplementation extends MedianCut {
     @Override
     public boolean performNextMedianCut(final List<ColorGroup> colorGroups,
             final boolean ignoreAlpha) throws ImageWriteException {

Modified: commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/palette/MedianCutQuantizer.java
URL: http://svn.apache.org/viewvc/commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/palette/MedianCutQuantizer.java?rev=1649357&r1=1649356&r2=1649357&view=diff
==============================================================================
--- commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/palette/MedianCutQuantizer.java
(original)
+++ commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/palette/MedianCutQuantizer.java
Sun Jan  4 16:51:57 2015
@@ -83,7 +83,7 @@ public class MedianCutQuantizer {
     }
     
     public Palette process(final BufferedImage image, final int maxColors,
-            final MedianCutImplementation medianCutImplementation, final boolean verbose)
+            final MedianCut medianCut, final boolean verbose)
             throws ImageWriteException {
         final Map<Integer, ColorCount> colorMap = groupColors(image, maxColors);
 
@@ -117,7 +117,7 @@ public class MedianCutQuantizer {
         colorGroups.add(root);
 
         while (colorGroups.size() < maxColors) {
-            if (!medianCutImplementation.performNextMedianCut(colorGroups, ignoreAlpha))
{
+            if (!medianCut.performNextMedianCut(colorGroups, ignoreAlpha)) {
                 break;
             }
         }



Mime
View raw message