From: Jim Procter Date: Thu, 22 Jul 2021 19:40:29 +0000 (+0100) Subject: JAL-3853 JAL-1870 patch tests for annotation colour gradient without transparency... X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=b207001ceedbf3b9d343ce1941226575da7974d2;p=jalview.git JAL-3853 JAL-1870 patch tests for annotation colour gradient without transparency/per sequence annotation score encoding --- diff --git a/src/jalview/schemes/AnnotationColourGradient.java b/src/jalview/schemes/AnnotationColourGradient.java index a84ea52..8526684 100755 --- a/src/jalview/schemes/AnnotationColourGradient.java +++ b/src/jalview/schemes/AnnotationColourGradient.java @@ -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; + } }