JAL-2899 update structure and overview on slider drag release
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Thu, 1 Feb 2018 15:16:12 +0000 (15:16 +0000)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Thu, 1 Feb 2018 15:16:12 +0000 (15:16 +0000)
src/jalview/gui/AnnotationColourChooser.java
src/jalview/gui/AnnotationRowFilter.java

index 153f70c..384635b 100644 (file)
@@ -459,4 +459,11 @@ public class AnnotationColourChooser extends AnnotationRowFilter
     }
   }
 
+  @Override
+  protected void sliderDragReleased()
+  {
+    super.sliderDragReleased();
+    ap.paintAlignment(true, true);
+  }
+
 }
index 71ad6a5..f13cb10 100644 (file)
@@ -172,11 +172,7 @@ public abstract class AnnotationRowFilter extends JPanel
       @Override
       public void mouseReleased(MouseEvent evt)
       {
-        if (sliderDragging)
-        {
-          sliderDragging = false;
-          valueChanged(true);
-        }
+        sliderDragReleased();
       }
     });
   }
@@ -523,4 +519,13 @@ public abstract class AnnotationRowFilter extends JPanel
   {
     this.annotations = anns;
   }
+
+  protected void sliderDragReleased()
+  {
+    if (sliderDragging)
+    {
+      sliderDragging = false;
+      valueChanged(true);
+    }
+  }
 }