From cc0681e25e04081ff98072750ad7eb041dcf3d18 Mon Sep 17 00:00:00 2001 From: gmungoc Date: Thu, 1 Feb 2018 15:16:12 +0000 Subject: [PATCH] JAL-2899 update structure and overview on slider drag release --- src/jalview/gui/AnnotationColourChooser.java | 7 +++++++ src/jalview/gui/AnnotationRowFilter.java | 15 ++++++++++----- 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/src/jalview/gui/AnnotationColourChooser.java b/src/jalview/gui/AnnotationColourChooser.java index 153f70c..384635b 100644 --- a/src/jalview/gui/AnnotationColourChooser.java +++ b/src/jalview/gui/AnnotationColourChooser.java @@ -459,4 +459,11 @@ public class AnnotationColourChooser extends AnnotationRowFilter } } + @Override + protected void sliderDragReleased() + { + super.sliderDragReleased(); + ap.paintAlignment(true, true); + } + } diff --git a/src/jalview/gui/AnnotationRowFilter.java b/src/jalview/gui/AnnotationRowFilter.java index 71ad6a5..f13cb10 100644 --- a/src/jalview/gui/AnnotationRowFilter.java +++ b/src/jalview/gui/AnnotationRowFilter.java @@ -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); + } + } } -- 1.7.10.2