JAL-1645 source formatting and organise imports
[jalview.git] / src / jalview / gui / SeqCanvas.java
index 4c04ad3..5706fe7 100755 (executable)
@@ -106,6 +106,7 @@ public class SeqCanvas extends JComponent
     charHeight = av.getCharHeight();
     charWidth = av.getCharWidth();
   }
+
   /**
    * DOCUMENT ME!
    * 
@@ -138,8 +139,7 @@ public class SeqCanvas extends JComponent
 
       g.drawLine(((i - startx - 1) * charWidth) + (charWidth / 2),
               (ypos + 2) - (charHeight / 2), ((i - startx - 1) * charWidth)
-                      + (charWidth / 2),
-              ypos - 2);
+                      + (charWidth / 2), ypos - 2);
     }
   }
 
@@ -557,12 +557,12 @@ public class SeqCanvas extends JComponent
             continue;
           }
 
-          gg.fillPolygon(new int[]
-          { res * charWidth - charHeight / 4,
-              res * charWidth + charHeight / 4, res * charWidth },
-                  new int[]
-                  { ypos - (charHeight / 2), ypos - (charHeight / 2),
-                      ypos - (charHeight / 2) + 8 }, 3);
+          gg.fillPolygon(
+                  new int[] { res * charWidth - charHeight / 4,
+                      res * charWidth + charHeight / 4, res * charWidth },
+                  new int[] { ypos - (charHeight / 2),
+                      ypos - (charHeight / 2), ypos - (charHeight / 2) + 8 },
+                  3);
 
         }
       }
@@ -591,8 +591,8 @@ public class SeqCanvas extends JComponent
           annotations = new AnnotationPanel(av);
         }
 
-        annotations.renderer.drawComponent(annotations, av, g,
-                -1, startRes, endx + 1);
+        annotations.renderer.drawComponent(annotations, av, g, -1,
+                startRes, endx + 1);
         g.translate(0, -cHeight - ypos - 3);
       }
       g.setClip(clip);
@@ -638,8 +638,7 @@ public class SeqCanvas extends JComponent
    *          DOCUMENT ME!
    */
   public void drawPanel(Graphics g1, int startRes, int endRes,
-          int startSeq,
-          int endSeq, int offset)
+          int startSeq, int endSeq, int offset)
   {
     updateViewport();
     if (!av.hasHiddenColumns())
@@ -700,8 +699,7 @@ public class SeqCanvas extends JComponent
   // int startRes, int endRes, int startSeq, int endSeq, int x, int y,
   // int x1, int x2, int y1, int y2, int startx, int starty,
   private void draw(Graphics g, int startRes, int endRes, int startSeq,
-          int endSeq,
-          int offset)
+          int endSeq, int offset)
   {
     g.setFont(av.getFont());
     sr.prepare(g, av.isRenderGaps());
@@ -831,8 +829,8 @@ public class SeqCanvas extends JComponent
               if (group == av.getSelectionGroup())
               {
                 g.setStroke(new BasicStroke(1, BasicStroke.CAP_BUTT,
-                        BasicStroke.JOIN_ROUND, 3f, new float[]
-                        { 5f, 3f }, 0f));
+                        BasicStroke.JOIN_ROUND, 3f, new float[] { 5f, 3f },
+                        0f));
                 g.setColor(Color.RED);
               }
               else
@@ -941,8 +939,7 @@ public class SeqCanvas extends JComponent
           break;
         }
 
-        group = av.getAlignment().getGroups()
-                .get(groupIndex);
+        group = av.getAlignment().getGroups().get(groupIndex);
 
       } while (groupIndex < av.getAlignment().getGroups().size());