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
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