publicly accessible flag to indicate if a registry query thread is in progress
[jalview.git] / src / jalview / gui / AnnotationPanel.java
index afc09cc..676fecf 100755 (executable)
@@ -608,14 +608,14 @@ public class AnnotationPanel
     drawComponent(gg, av.startRes, av.endRes + 1);
     g.drawImage(image, 0, 0, this);
   }
-
   /**
-   * DOCUMENT ME!
+   * non-Thread safe repaint
    *
-   * @param horizontal DOCUMENT ME!
+   * @param horizontal repaint with horizontal shift in alignment
    */
   public void fastPaint(int horizontal)
   {
+
     if ( (horizontal == 0)
         || gg == null
         || av.alignment.getAlignmentAnnotation() == null
@@ -626,7 +626,6 @@ public class AnnotationPanel
       repaint();
       return;
     }
-
     gg.copyArea(0, 0, imgWidth, getHeight(), -horizontal * av.charWidth, 0);
 
     int sr = av.startRes;
@@ -650,7 +649,6 @@ public class AnnotationPanel
     gg.translate( -transX, 0);
 
     fastPaint = true;
-
     repaint();
 
   }