dont color gaps in sequence features
authoramwaterhouse <Andrew Waterhouse>
Tue, 8 Mar 2005 14:32:21 +0000 (14:32 +0000)
committeramwaterhouse <Andrew Waterhouse>
Tue, 8 Mar 2005 14:32:21 +0000 (14:32 +0000)
src/jalview/gui/FeatureRenderer.java

index 59f446e..fc31fdf 100755 (executable)
@@ -55,11 +55,15 @@ public class FeatureRenderer implements RendererI
         {\r
           for (int i = fstart; i <= fend; i++)\r
           {\r
+            char s = seq.getSequence().charAt(i);\r
+            if( jalview.util.Comparison.isGap(s) )\r
+              continue;\r
+\r
             g.setColor(Color.blue);\r
             g.fillRect( (i-start) * width, y1, width, height);\r
 \r
             g.setColor(Color.white);\r
-            char s = seq.getSequence().charAt(i);\r
+\r
             FontMetrics fm = g.getFontMetrics();\r
             int charOffset = (width - fm.charWidth(s)) / 2;\r
             int pady = height / 5;\r