JAL-3438 spotless for 2.11.2.0
[jalview.git] / test / jalview / schemes / AnnotationColourGradientTest.java
index c56da59..3c49ec2 100644 (file)
@@ -50,8 +50,8 @@ public class AnnotationColourGradientTest
     }
 
     seq = new Sequence("Seq", "");
-    al = new Alignment(new SequenceI[]{ seq});
-    
+    al = new Alignment(new SequenceI[] { seq });
+
     /*
      * AlignmentAnnotation constructor works out min-max range
      */
@@ -217,12 +217,10 @@ public class AnnotationColourGradientTest
        * expect white at or below threshold of 5
        */
       Color expected = col <= 5 ? Color.white
-              : new Color(50 + 10 * col,
-              200 - 10 * col,
-              150 + 10 * col);
+              : new Color(50 + 10 * col, 200 - 10 * col, 150 + 10 * col);
       assertEquals(result, expected, "for column " + col);
     }
-  
+
     /*
      * now make 6-10 the span of the colour range
      * (annotation value == column number in this test)
@@ -236,9 +234,8 @@ public class AnnotationColourGradientTest
        */
       int factor = col - THRESHOLD_FIVE;
       Color expected = col <= 5 ? Color.white
-              : new Color(50 + 20 * factor,
-              200 - 20 * factor,
-              150 + 20 * factor);
+              : new Color(50 + 20 * factor, 200 - 20 * factor,
+                      150 + 20 * factor);
       Color result = testee.findColour('a', col, seq);
       assertEquals(result, expected, "for column " + col);
     }
@@ -253,16 +250,15 @@ public class AnnotationColourGradientTest
     AnnotationColourGradient testee = new AnnotationColourGradient(ann,
             minColour, maxColour, AnnotationColourGradient.BELOW_THRESHOLD);
     testee = (AnnotationColourGradient) testee.getInstance(null, al);
-  
+
     for (int col = 0; col < WIDTH; col++)
     {
       Color result = testee.findColour('a', col, seq);
       Color expected = col >= 5 ? Color.white
-              : new Color(50 + 10 * col,
-              200 - 10 * col, 150 + 10 * col);
+              : new Color(50 + 10 * col, 200 - 10 * col, 150 + 10 * col);
       assertEquals(result, expected, "for column " + col);
     }
-  
+
     /*
      * now make 0-5 the span of the colour range
      * (annotation value == column number in this test)
@@ -275,8 +271,7 @@ public class AnnotationColourGradientTest
        * range is 0-5 so steps of 100/5 = 20
        */
       Color expected = col >= 5 ? Color.white
-              : new Color(50 + 20 * col,
-              200 - 20 * col, 150 + 20 * col);
+              : new Color(50 + 20 * col, 200 - 20 * col, 150 + 20 * col);
       Color result = testee.findColour('a', col, seq);
       assertEquals(result, expected, "for column " + col);
     }
@@ -322,7 +317,8 @@ public class AnnotationColourGradientTest
     {
       int hue = col * 20;
       Color c = col == 0 ? minColour : new Color(hue, hue, hue);
-      assertEquals(testee.findColour('a', col, seq), c, "for column " + col);
+      assertEquals(testee.findColour('a', col, seq), c,
+              "for column " + col);
     }
   }
 }