Further structure accessing feature
[jalview.git] / src / jalview / gui / AnnotationLabels.java
index 740a13a..b8c81ce 100755 (executable)
@@ -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)