From: amwaterhouse Date: Wed, 25 May 2005 16:39:37 +0000 (+0000) Subject: all colours can threshold X-Git-Tag: Release_2_0~191 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=20c71abb4d963ff528c2cbad48d53ce85e7055c5;p=jalview.git all colours can threshold --- 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); }