Threshold is single element
authoramwaterhouse <Andrew Waterhouse>
Wed, 15 Feb 2006 15:23:49 +0000 (15:23 +0000)
committeramwaterhouse <Andrew Waterhouse>
Wed, 15 Feb 2006 15:23:49 +0000 (15:23 +0000)
src/jalview/gui/SliderPanel.java

index 59a6104..6a1ae97 100755 (executable)
@@ -96,14 +96,14 @@ public class SliderPanel extends GSliderPanel
       undoButton.setVisible(false);\r
       applyButton.setVisible(false);\r
       allGroupsCheck.setVisible(false);\r
-      label.setText("Adjust value - "+annotation.getGraphLine(0).label);\r
+      label.setText("Adjust value - "+annotation.threshold.label);\r
 \r
       float range = annotation.graphMax * 1000 - annotation.graphMin * 1000;\r
 \r
       slider.setMinimum( (int) (annotation.graphMin * 1000));\r
       slider.setMaximum( (int) (annotation.graphMax * 1000));\r
-      slider.setValue( (int) (annotation.getGraphLine(0).value * 1000));\r
-      valueField.setText( annotation.getGraphLine(0).value + "");\r
+      slider.setValue( (int) (annotation.threshold.value * 1000));\r
+      valueField.setText( annotation.threshold.value + "");\r
       slider.setMajorTickSpacing( (int) (range / 10f));\r
       slider.setMinorTickSpacing( (int) (range / 100f));\r
       slider.setPaintTicks(true);\r
@@ -120,7 +120,7 @@ public class SliderPanel extends GSliderPanel
         public void stateChanged(ChangeEvent evt)\r
         {\r
           valueField.setText( ((float)slider.getValue()/1000f) + "");\r
-          annotation.getGraphLine(0).value = (float)slider.getValue()/1000f;\r
+          annotation.threshold.value = (float)slider.getValue()/1000f;\r
           ap.repaint();\r
         }\r
       });\r