JAL-4134 propagate column selection changes in tree and alignment views
authorJames Procter <j.procter@dundee.ac.uk>
Mon, 20 Mar 2023 15:29:34 +0000 (15:29 +0000)
committerJames Procter <j.procter@dundee.ac.uk>
Mon, 20 Mar 2023 15:29:34 +0000 (15:29 +0000)
src/jalview/gui/AlignFrame.java
src/jalview/gui/AnnotationPanel.java
src/jalview/gui/ScalePanel.java
src/jalview/gui/SeqPanel.java

index 92a18ec..2d02e79 100644 (file)
@@ -2636,6 +2636,7 @@ public class AlignFrame extends GAlignFrame implements DropTargetListener,
   {
     viewport.invertColumnSelection();
     alignPanel.paintAlignment(true, false);
+    PaintRefresher.Refresh(alignPanel, viewport.getSequenceSetId());
     viewport.sendSelection();
   }
 
index c7751e3..13c0e5a 100755 (executable)
@@ -746,7 +746,8 @@ public class AnnotationPanel extends JPanel implements AwtRenderPanelI,
       }
     }
     ap.paintAlignment(false, false);
-
+    PaintRefresher.Refresh(ap, av.getSequenceSetId());
+    av.sendSelection();
     return true;
   }
   /**
index 4e4a274..930ba79 100755 (executable)
@@ -333,6 +333,7 @@ public class ScalePanel extends JPanel
     ap.paintAlignment(false, false);
     av.isSelectionGroupChanged(true);
     av.isColSelChanged(true);
+    PaintRefresher.Refresh(ap, av.getSequenceSetId());
     av.sendSelection();
   }
 
index 20ec5e4..55f06fc 100644 (file)
@@ -2931,6 +2931,8 @@ public class SeqPanel extends JPanel
      * if hidden column selection has changed
      */
     ap.paintAlignment(hiddenChanged, hiddenChanged);
+    // propagate any selection changes
+    PaintRefresher.Refresh(ap, av.getSequenceSetId());
 
     return true;
   }