formatting
[jalview.git] / src / jalview / appletgui / AnnotationPanel.java
index 45a5f1e..59cdb11 100755 (executable)
@@ -27,8 +27,9 @@ import jalview.datamodel.*;
 import jalview.renderer.AnnotationRenderer;
 import jalview.renderer.AwtRenderPanelI;
 
-public class AnnotationPanel extends Panel implements AwtRenderPanelI, AdjustmentListener,
-        ActionListener, MouseListener, MouseMotionListener
+public class AnnotationPanel extends Panel implements AwtRenderPanelI,
+        AdjustmentListener, ActionListener, MouseListener,
+        MouseMotionListener
 {
   AlignViewport av;
 
@@ -110,7 +111,7 @@ public class AnnotationPanel extends Panel implements AwtRenderPanelI, Adjustmen
 
   /**
    * DOCUMENT ME!
-   *
+   * 
    * @param evt
    *          DOCUMENT ME!
    */
@@ -133,7 +134,8 @@ public class AnnotationPanel extends Panel implements AwtRenderPanelI, Adjustmen
     }
 
     String label = "";
-    if (av.getColumnSelection() != null && av.getColumnSelection().size() > 0
+    if (av.getColumnSelection() != null
+            && av.getColumnSelection().size() > 0
             && anot[av.getColumnSelection().getMin()] != null)
       label = anot[av.getColumnSelection().getMin()].displayCharacter;
 
@@ -326,7 +328,9 @@ public class AnnotationPanel extends Panel implements AwtRenderPanelI, Adjustmen
         item = new MenuItem(STEM);
         item.addActionListener(this);
         pop.add(item);
-      } else {
+      }
+      else
+      {
         item = new MenuItem(HELIX);
         item.addActionListener(this);
         pop.add(item);
@@ -472,9 +476,11 @@ public class AnnotationPanel extends Panel implements AwtRenderPanelI, Adjustmen
     }
     return height;
   }
+
   /**
-   * calculate the height for visible annotation, revalidating bounds where necessary
-   * ABSTRACT GUI METHOD
+   * calculate the height for visible annotation, revalidating bounds where
+   * necessary ABSTRACT GUI METHOD
+   * 
    * @return total height of annotation
    */
 
@@ -520,11 +526,12 @@ public class AnnotationPanel extends Panel implements AwtRenderPanelI, Adjustmen
     Dimension d = getSize();
     imgWidth = d.width;
     // (av.endRes - av.startRes + 1) * av.charWidth;
-    if (imgWidth<1 || d.height<1)
+    if (imgWidth < 1 || d.height < 1)
     {
       return;
     }
-    if (image == null || imgWidth != image.getWidth(this) || d.height != image.getHeight(this))
+    if (image == null || imgWidth != image.getWidth(this)
+            || d.height != image.getHeight(this))
     {
       image = createImage(imgWidth, d.height);
       gg = image.getGraphics();
@@ -549,7 +556,8 @@ public class AnnotationPanel extends Panel implements AwtRenderPanelI, Adjustmen
 
   public void fastPaint(int horizontal)
   {
-    if (horizontal == 0 || av.getAlignment().getAlignmentAnnotation() == null
+    if (horizontal == 0
+            || av.getAlignment().getAlignmentAnnotation() == null
             || av.getAlignment().getAlignmentAnnotation().length < 1)
     {
       repaint();
@@ -582,7 +590,7 @@ public class AnnotationPanel extends Panel implements AwtRenderPanelI, Adjustmen
 
   /**
    * DOCUMENT ME!
-   *
+   * 
    * @param g
    *          DOCUMENT ME!
    * @param startRes