JAL-3853 JAL-1870 patch tests for annotation colour gradient without transparency...
authorJim Procter <j.procter@dundee.ac.uk>
Thu, 22 Jul 2021 19:40:29 +0000 (20:40 +0100)
committerJim Procter <j.procter@dundee.ac.uk>
Thu, 22 Jul 2021 19:40:29 +0000 (20:40 +0100)
src/jalview/schemes/AnnotationColourGradient.java

index a84ea52..8526684 100755 (executable)
@@ -40,12 +40,12 @@ public class AnnotationColourGradient extends FollowerColourScheme
   /**
    * map positional scores to transparency rather than colour
    */
-  boolean positionToTransparency = true;
+  boolean positionToTransparency = false;
 
   /**
    * compute shade based on annotation row score
    */
-  boolean perLineScore = true;
+  boolean perLineScore = false;
 
   public static final int NO_THRESHOLD = -1;
 
@@ -245,7 +245,7 @@ public class AnnotationColourGradient extends FollowerColourScheme
       }
       if (plcount > 0 && plcount == ancount)
       {
-        perLineScore = plcount == ancount;
+        perLineScore = plmax!=plmin;
         aamax=plmax;
       }
       else
@@ -545,4 +545,14 @@ public class AnnotationColourGradient extends FollowerColourScheme
   {
     return false;
   }
+
+  public boolean isPositionToTransparency()
+  {
+    return positionToTransparency;
+  }
+
+  public void setPositionToTransparency(boolean positionToTransparency)
+  {
+    this.positionToTransparency = positionToTransparency;
+  }
 }