all colours can threshold
authoramwaterhouse <Andrew Waterhouse>
Wed, 25 May 2005 16:39:37 +0000 (16:39 +0000)
committeramwaterhouse <Andrew Waterhouse>
Wed, 25 May 2005 16:39:37 +0000 (16:39 +0000)
src/jalview/gui/SliderPanel.java

index eba89e8..5a87102 100755 (executable)
@@ -21,11 +21,10 @@ public class SliderPanel extends GSliderPanel
   {\r
     SliderPanel sp = null;\r
     ConservationColourScheme ccs = (ConservationColourScheme)cs;\r
-    int value = ccs.inc;\r
 \r
     if(conservationSlider == null)\r
     {\r
-      sp = new SliderPanel(ap, value, true, cs);\r
+      sp = new SliderPanel(ap, ccs.inc, true, cs);\r
       conservationSlider = new JInternalFrame();\r
       conservationSlider.setContentPane(sp);\r
       conservationSlider.setLayer(JLayeredPane.PALETTE_LAYER);\r
@@ -34,7 +33,6 @@ public class SliderPanel extends GSliderPanel
     {\r
         sp = (SliderPanel)conservationSlider.getContentPane();\r
         sp.cs = cs;\r
-        sp.setValue(value);\r
     }\r
 \r
     conservationSlider.setTitle("Conservation Colour Increment  ("+source+")");\r
@@ -194,7 +192,6 @@ public class SliderPanel extends GSliderPanel
       }\r
       else\r
       {\r
-        if (toChange.canThreshold())\r
           ( (ResidueColourScheme) toChange).setThreshold(i);\r
       }\r
 \r