public void valueChanged(boolean updateAllAnnotation)
{
- if (currentColours.isSelected()
- && !(av.getGlobalColourScheme() instanceof AnnotationColourGradient))
+ if (slider.isEnabled())
{
- updateView();
+ if (currentColours.isSelected()
+ && !(av.getGlobalColourScheme() instanceof AnnotationColourGradient))
+ {
+ updateView();
+ }
+ getCurrentAnnotation().threshold.value = slider.getValue() / 1000f;
+ propagateSeqAssociatedThreshold(updateAllAnnotation,
+ getCurrentAnnotation());
+ ap.paintAlignment(false);
}
- getCurrentAnnotation().threshold.value = slider.getValue() / 1000f;
- propagateSeqAssociatedThreshold(updateAllAnnotation,
- getCurrentAnnotation());
- ap.paintAlignment(false);
}
public JComboBox<String> getThreshold()
@Override
public void updateView()
{
- changeColour();
- }
- void changeColour()
- {
// Check if combobox is still adjusting
if (adjusting)
{