JAL-2346 remove refactored fields, fix test for above threshold
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Tue, 14 Feb 2017 14:02:03 +0000 (14:02 +0000)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Tue, 14 Feb 2017 14:02:03 +0000 (14:02 +0000)
src/jalview/gui/AnnotationRowFilter.java
src/jalview/schemes/AnnotationColourGradient.java

index c1dcee7..bc5bc54 100644 (file)
@@ -59,17 +59,9 @@ public abstract class AnnotationRowFilter extends JPanel
   protected int[] annmap;
 
   protected boolean adjusting = false;
-  
-  protected JCheckBox currentColours = new JCheckBox();
-
-  protected JPanel minColour = new JPanel();
-
-  protected JPanel maxColour = new JPanel();
 
   protected JCheckBox seqAssociated = new JCheckBox();
 
-  protected JCheckBox thresholdIsMin = new JCheckBox();
-
   protected JSlider slider = new JSlider();
 
   protected JTextField thresholdValue = new JTextField(20);
index a5d779d..220d3ab 100755 (executable)
@@ -316,7 +316,7 @@ public class AnnotationColourGradient extends FollowerColourScheme
      */
     if (annotationThreshold != null)
     {
-      if ((aboveAnnotationThreshold == ABOVE_THRESHOLD && aj.value >= annotationThreshold.value)
+      if ((aboveAnnotationThreshold == ABOVE_THRESHOLD && aj.value < annotationThreshold.value)
               || (aboveAnnotationThreshold == BELOW_THRESHOLD && aj.value > annotationThreshold.value))
       {
         return Color.white;