X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fgui%2FAnnotationLabels.java;h=b8c81ce0d592139aeee3a40a308319fc6398f453;hb=ecb2c593fb296f6908deb65492835fac476b2378;hp=740a13a75a9363acbefef86844473c6e05059bf8;hpb=ecbe6d4b89de40cd16d94e86ee5ecf68ba32e80c;p=jalview.git diff --git a/src/jalview/gui/AnnotationLabels.java b/src/jalview/gui/AnnotationLabels.java index 740a13a..b8c81ce 100755 --- a/src/jalview/gui/AnnotationLabels.java +++ b/src/jalview/gui/AnnotationLabels.java @@ -58,7 +58,7 @@ public class AnnotationLabels extends JPanel implements MouseListener, Image image; AlignmentPanel ap; - + AlignViewport av; boolean resizing = false; @@ -197,11 +197,6 @@ public class AnnotationLabels extends JPanel implements MouseListener, else if (evt.getActionCommand().equals(HIDE)) { aa[selectedRow].visible = false; - - if (aa[selectedRow].label.equals("Quality")) - { - ap.av.quality = null; - } } else if (evt.getActionCommand().equals(DELETE)) { @@ -245,9 +240,11 @@ public class AnnotationLabels extends JPanel implements MouseListener, aa[selectedRow].scaleColLabel = !aa[selectedRow].scaleColLabel; } - ap.annotationPanel.adjustPanelHeight(); - ap.annotationScroller.validate(); - ap.paintAlignment(true); + ap.validateAnnotationDimensions(false); + ap.addNotify(); + ap.repaint(); + //validate(); + //ap.paintAlignment(true); } /** @@ -442,6 +439,7 @@ public class AnnotationLabels extends JPanel implements MouseListener, public void mouseClicked(MouseEvent evt) { AlignmentAnnotation[] aa = ap.av.alignment.getAlignmentAnnotation(); + if (SwingUtilities.isLeftMouseButton(evt)) { if (selectedRow > -1 && selectedRow < aa.length) @@ -497,6 +495,7 @@ public class AnnotationLabels extends JPanel implements MouseListener, JMenuItem item = new JMenuItem(ADDNEW); item.addActionListener(this); pop.add(item); + if (selectedRow < 0) { if (hasHiddenRows)