From 5830c6b18969d8eb7801b9df28ea9fb2c4dd5152 Mon Sep 17 00:00:00 2001 From: James Procter Date: Wed, 22 Feb 2023 12:42:58 +0000 Subject: [PATCH] JAL-4095 magic fill behaviour is PAE specific --- src/jalview/gui/AnnotationPanel.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/jalview/gui/AnnotationPanel.java b/src/jalview/gui/AnnotationPanel.java index a97e0e4..82021ac 100755 --- a/src/jalview/gui/AnnotationPanel.java +++ b/src/jalview/gui/AnnotationPanel.java @@ -70,6 +70,7 @@ import jalview.util.MessageManager; import jalview.util.Platform; import jalview.viewmodel.ViewportListenerI; import jalview.viewmodel.ViewportRanges; +import jalview.ws.datamodel.alphafold.PAEContactMatrix; /** * AnnotationPanel displays visible portion of annotation rows below unwrapped @@ -591,6 +592,7 @@ public class AnnotationPanel extends JPanel implements AwtRenderPanelI, if (aa[graphStretch].graph == AlignmentAnnotation.CONTACT_MAP) { + // data in row has position on y as well as x axis if (evt.isAltDown() || evt.isAltGraphDown()) { dragMode = DragMode.MatrixSelect; @@ -620,8 +622,10 @@ public class AnnotationPanel extends JPanel implements AwtRenderPanelI, } av.getColumnSelection().addElement(currentX); } + // PAE SPECIFIC // and also select everything lower than the max range adjacent // (kind of works) + if (PAEContactMatrix.PAEMATRIX.equals(aa[graphStretch].getCalcId())) { int c = fr - 1; ContactRange cr = forCurrentX.getRangeFor(fr, to); -- 1.7.10.2