JAL-2588 Naive implementation of gaps as grey in overview
authorkiramt <k.mourao@dundee.ac.uk>
Mon, 5 Jun 2017 19:45:06 +0000 (20:45 +0100)
committerkiramt <k.mourao@dundee.ac.uk>
Mon, 5 Jun 2017 19:45:06 +0000 (20:45 +0100)
src/jalview/gui/SequenceRenderer.java

index 36825ea..a89d7ce 100755 (executable)
@@ -140,8 +140,15 @@ public class SequenceRenderer implements jalview.api.SequenceRenderer
   {
     if (shader.getColourScheme() != null)
     {
-      resBoxColour = shader.findColour(seq.getCharAt(i),
+      if (forOverview && Comparison.isGap(seq.getCharAt(i)))
+      {
+        resBoxColour = Color.lightGray;
+      }
+      else
+      {
+        resBoxColour = shader.findColour(seq.getCharAt(i),
               i, seq);
+      }
     }
     else if (forOverview && !Comparison.isGap(seq.getCharAt(i)))
     {