/*
- * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8.2)
- * Copyright (C) 2014 The Jalview Authors
+ * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$)
+ * Copyright (C) $$Year-Rel$$ The Jalview Authors
*
* This file is part of Jalview.
*
JButton defColours = new JButton();
- JButton ok = new JButton();
-
- JButton cancel = new JButton();
JPanel jPanel1 = new JPanel();
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)
{