From 20c71abb4d963ff528c2cbad48d53ce85e7055c5 Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Wed, 25 May 2005 16:39:37 +0000 Subject: [PATCH] all colours can threshold --- src/jalview/gui/SliderPanel.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/jalview/gui/SliderPanel.java b/src/jalview/gui/SliderPanel.java index eba89e8..5a87102 100755 --- a/src/jalview/gui/SliderPanel.java +++ b/src/jalview/gui/SliderPanel.java @@ -21,11 +21,10 @@ public class SliderPanel extends GSliderPanel { SliderPanel sp = null; ConservationColourScheme ccs = (ConservationColourScheme)cs; - int value = ccs.inc; if(conservationSlider == null) { - sp = new SliderPanel(ap, value, true, cs); + sp = new SliderPanel(ap, ccs.inc, true, cs); conservationSlider = new JInternalFrame(); conservationSlider.setContentPane(sp); conservationSlider.setLayer(JLayeredPane.PALETTE_LAYER); @@ -34,7 +33,6 @@ public class SliderPanel extends GSliderPanel { sp = (SliderPanel)conservationSlider.getContentPane(); sp.cs = cs; - sp.setValue(value); } conservationSlider.setTitle("Conservation Colour Increment ("+source+")"); @@ -194,7 +192,6 @@ public class SliderPanel extends GSliderPanel } else { - if (toChange.canThreshold()) ( (ResidueColourScheme) toChange).setThreshold(i); } -- 1.7.10.2