JAL-3438 spotless for 2.11.2.0
[jalview.git] / src / jalview / appletgui / SeqCanvas.java
index f055776..3b79f12 100755 (executable)
@@ -412,65 +412,65 @@ public class SeqCanvas extends Panel implements ViewportListenerI
           int canvasHeight, int startRes)
   {
     AlignmentI al = av.getAlignment();
-  
+
     FontMetrics fm = getFontMetrics(av.getFont());
-  
+
     LABEL_EAST = 0;
     LABEL_WEST = 0;
-  
+
     if (av.getScaleRightWrapped())
     {
       LABEL_EAST = fm.stringWidth(getMask());
     }
-  
+
     if (av.getScaleLeftWrapped())
     {
       LABEL_WEST = fm.stringWidth(getMask());
     }
-  
+
     int hgap = avcharHeight;
     if (av.getScaleAboveWrapped())
     {
       hgap += avcharHeight;
     }
-  
+
     int cWidth = (canvasWidth - LABEL_EAST - LABEL_WEST) / avcharWidth;
     int cHeight = av.getAlignment().getHeight() * avcharHeight;
-  
+
     av.setWrappedWidth(cWidth);
-  
+
     av.getRanges().setViewportStartAndWidth(startRes, cWidth);
-  
+
     int endx;
     int ypos = hgap;
-  
+
     int maxwidth = av.getAlignment().getVisibleWidth();
-  
+
     while ((ypos <= canvasHeight) && (startRes < maxwidth))
     {
       endx = startRes + cWidth - 1;
-  
+
       if (endx > maxwidth)
       {
         endx = maxwidth;
       }
-  
+
       g.setColor(Color.black);
-  
+
       if (av.getScaleLeftWrapped())
       {
         drawWestScale(g, startRes, endx, ypos);
       }
-  
+
       if (av.getScaleRightWrapped())
       {
         g.translate(canvasWidth - LABEL_EAST, 0);
         drawEastScale(g, startRes, endx, ypos);
         g.translate(-(canvasWidth - LABEL_EAST), 0);
       }
-  
+
       g.translate(LABEL_WEST, 0);
-  
+
       if (av.getScaleAboveWrapped())
       {
         drawNorthScale(g, startRes, endx, ypos);
@@ -487,20 +487,24 @@ public class SeqCanvas extends Panel implements ViewportListenerI
           res = it.next() - startRes;
           gg.fillPolygon(
                   new int[]
-                  { res * avcharWidth - avcharHeight / 4, res * avcharWidth + avcharHeight / 4, res * avcharWidth },
+                  { res * avcharWidth - avcharHeight / 4,
+                      res * avcharWidth + avcharHeight / 4,
+                      res * avcharWidth },
                   new int[]
-                  { ypos - (avcharHeight / 2), ypos - (avcharHeight / 2), ypos - (avcharHeight / 2) + 8 }, 3);
+                  { ypos - (avcharHeight / 2), ypos - (avcharHeight / 2),
+                      ypos - (avcharHeight / 2) + 8 },
+                  3);
         }
       }
-  
+
       if (g.getClip() == null)
       {
         g.setClip(0, 0, cWidth * avcharWidth, canvasHeight);
       }
-  
+
       drawPanel(g, startRes, endx, 0, al.getHeight() - 1, ypos);
       g.setClip(null);
-  
+
       if (av.isShowAnnotation())
       {
         g.translate(0, cHeight + ypos + 4);
@@ -508,17 +512,17 @@ public class SeqCanvas extends Panel implements ViewportListenerI
         {
           annotations = new AnnotationPanel(av);
         }
-  
+
         annotations.drawComponent(g, startRes, endx + 1);
         g.translate(0, -cHeight - ypos - 4);
       }
       g.translate(-LABEL_WEST, 0);
-  
+
       ypos += cHeight + getAnnotationHeight() + hgap;
-  
+
       startRes += cWidth;
     }
-  
+
   }
 
   AnnotationPanel annotations;