X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fgui%2FAnnotationPanel.java;h=c3b44ce4881e5268b85a21c5d93f0ecfaf53810a;hb=4ec172090b6db4dda4433e9faf3f658058b994e4;hp=d31e52d5999c1392e7c5afd08d21ae35d1ce83d1;hpb=0c0bb79aa6b14a3232dc63507f4353a07c89d9e5;p=jalview.git diff --git a/src/jalview/gui/AnnotationPanel.java b/src/jalview/gui/AnnotationPanel.java index d31e52d..c3b44ce 100755 --- a/src/jalview/gui/AnnotationPanel.java +++ b/src/jalview/gui/AnnotationPanel.java @@ -150,6 +150,8 @@ public class AnnotationPanel extends JPanel implements AwtRenderPanelI, private MouseWheelListener[] _mwl; + private boolean notJustOne; + /** * Creates a new AnnotationPanel object. * @@ -776,6 +778,7 @@ public class AnnotationPanel extends JPanel implements AwtRenderPanelI, * mostly vertical drag */ dragMode = DragMode.Resize; + notJustOne = evt.isShiftDown(); /* * but could also be a matrix drag @@ -816,7 +819,20 @@ public class AnnotationPanel extends JPanel implements AwtRenderPanelI, AlignmentAnnotation graphAnnotation = av.getAlignment() .getAlignmentAnnotation()[graphStretch]; int newHeight = Math.max(0, graphAnnotation.graphHeight + deltaY); - graphAnnotation.graphHeight = newHeight; + if (notJustOne) + { + for (AlignmentAnnotation similar : av.getAlignment() + .findAnnotations(null, graphAnnotation.getCalcId(), + graphAnnotation.label)) + { + similar.graphHeight = newHeight; + } + + } + else + { + graphAnnotation.graphHeight = newHeight; + } adjustPanelHeight(); ap.paintAlignment(false, false); }