From: amwaterhouse Date: Wed, 15 Feb 2006 15:23:49 +0000 (+0000) Subject: Threshold is single element X-Git-Tag: Root_VamJalview_2_07b+~133 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=29e4005910da86ce71244c274f97a17ee7070d64;p=jalview.git Threshold is single element --- diff --git a/src/jalview/gui/SliderPanel.java b/src/jalview/gui/SliderPanel.java index 59a6104..6a1ae97 100755 --- a/src/jalview/gui/SliderPanel.java +++ b/src/jalview/gui/SliderPanel.java @@ -96,14 +96,14 @@ public class SliderPanel extends GSliderPanel undoButton.setVisible(false); applyButton.setVisible(false); allGroupsCheck.setVisible(false); - label.setText("Adjust value - "+annotation.getGraphLine(0).label); + label.setText("Adjust value - "+annotation.threshold.label); float range = annotation.graphMax * 1000 - annotation.graphMin * 1000; slider.setMinimum( (int) (annotation.graphMin * 1000)); slider.setMaximum( (int) (annotation.graphMax * 1000)); - slider.setValue( (int) (annotation.getGraphLine(0).value * 1000)); - valueField.setText( annotation.getGraphLine(0).value + ""); + slider.setValue( (int) (annotation.threshold.value * 1000)); + valueField.setText( annotation.threshold.value + ""); slider.setMajorTickSpacing( (int) (range / 10f)); slider.setMinorTickSpacing( (int) (range / 100f)); slider.setPaintTicks(true); @@ -120,7 +120,7 @@ public class SliderPanel extends GSliderPanel public void stateChanged(ChangeEvent evt) { valueField.setText( ((float)slider.getValue()/1000f) + ""); - annotation.getGraphLine(0).value = (float)slider.getValue()/1000f; + annotation.threshold.value = (float)slider.getValue()/1000f; ap.repaint(); } });