X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fappletgui%2FAnnotationPanel.java;h=34e8b443f2d63ca0974ae0169753f97f091a3a4a;hb=69b246bd6330f05271ca15a440c8442b03b7db6c;hp=c06f7b189dcb4c73a2a05894190aa7d84998fc1b;hpb=a57976ba40e1abe6d7c1940386e1a25419ef9c9d;p=jalview.git diff --git a/src/jalview/appletgui/AnnotationPanel.java b/src/jalview/appletgui/AnnotationPanel.java index c06f7b1..34e8b44 100755 --- a/src/jalview/appletgui/AnnotationPanel.java +++ b/src/jalview/appletgui/AnnotationPanel.java @@ -99,14 +99,14 @@ public class AnnotationPanel extends Panel public static int GRAPH_HEIGHT = 40; - boolean MAC = false; + // boolean MAC = false; public final AnnotationRenderer renderer; public AnnotationPanel(AlignmentPanel ap) { new jalview.util.Platform(); - MAC = Platform.isAMac(); + // MAC = Platform.isAMac(); this.ap = ap; av = ap.av; setLayout(null); @@ -354,8 +354,8 @@ public class AnnotationPanel extends Panel } } - if ((evt.getModifiers() - & InputEvent.BUTTON3_MASK) == InputEvent.BUTTON3_MASK + if ((evt.getModifiersEx() + & InputEvent.BUTTON3_DOWN_MASK) == InputEvent.BUTTON3_DOWN_MASK && activeRow != -1) { if (av.getColumnSelection() == null @@ -480,7 +480,7 @@ public class AnnotationPanel extends Panel if (av.hasHiddenColumns()) { column = av.getAlignment().getHiddenColumns() - .adjustForHiddenColumns(column); + .visibleToAbsoluteColumn(column); } if (row > -1 && column < aa[row].annotations.length @@ -778,5 +778,14 @@ public class AnnotationPanel extends Panel { fastPaint((int) evt.getNewValue() - (int) evt.getOldValue()); } + else if (evt.getPropertyName().equals(ViewportRanges.STARTRESANDSEQ)) + { + fastPaint(((int[]) evt.getNewValue())[0] + - ((int[]) evt.getOldValue())[0]); + } + else if (evt.getPropertyName().equals(ViewportRanges.MOVE_VIEWPORT)) + { + repaint(); + } } }