JAL-3383 minor code tidying and commenting
[jalview.git] / src / jalview / renderer / OverviewRenderer.java
index 873fdac..0768681 100644 (file)
@@ -51,7 +51,7 @@ import javax.swing.Timer;
 public class OverviewRenderer
 {
   // transparency of hidden cols/seqs overlay
-  private final float TRANSPARENCY = 0.5f;
+  private static final float TRANSPARENCY = 0.5f;
 
   public static final String UPDATE = "OverviewUpdate";
 
@@ -67,9 +67,7 @@ public class OverviewRenderer
 
   private Timer timer;
 
-  private boolean isJS = Platform.isJS();
-
-  private int delay = (isJS ? 1 : 0);
+  private int delay = (Platform.isJS() ? 1 : 0);
 
   private int seqIndex;
 
@@ -480,6 +478,7 @@ public class OverviewRenderer
         sendProgressUpdate(1, 1, 0, 0);
       }
     }
+
     panel.overviewDone(miniMe);
   }
 
@@ -536,9 +535,9 @@ public class OverviewRenderer
           int icol)
   {
     return (seq == null || icol >= seq.getLength()
-            ? resColFinder.GAP_COLOUR
-            : resColFinder.getResidueColourInt(true, shader, allGroups, seq,
-                    icol, finder));
+            ? resColFinder.gapColourInt
+             : resColFinder.getResidueColourInt(true, shader, allGroups, seq,
+             icol, finder));
   }
 
   /**