- threshold.addItem("No Threshold");
- threshold.addItem("Above Threshold");
- threshold.addItem("Below Threshold");
+ threshold.addItem(MessageManager
+ .getString("label.threshold_feature_no_thereshold"));
+ threshold.addItem(MessageManager
+ .getString("label.threshold_feature_above_thereshold"));
+ threshold.addItem(MessageManager
+ .getString("label.threshold_feature_below_thereshold"));
+
+ if (oldcs instanceof AnnotationColourGradient)
+ {
+ AnnotationColourGradient acg = (AnnotationColourGradient) oldcs;
+ annotations.select(acg.getAnnotation());
+ switch (acg.getAboveThreshold())
+ {
+ case AnnotationColourGradient.NO_THRESHOLD:
+ threshold.select(0);
+ break;
+ case AnnotationColourGradient.ABOVE_THRESHOLD:
+ threshold.select(1);
+ break;
+ case AnnotationColourGradient.BELOW_THRESHOLD:
+ threshold.select(1);
+ break;
+ default:
+ throw new Error(MessageManager.getString("error.implementation_error_dont_know_thereshold_annotationcolourgradient"));
+ }
+ thresholdIsMin.setState(acg.thresholdIsMinMax);
+ thresholdValue.setText("" + acg.getAnnotationThreshold());
+ }