Cursor colour
authoramwaterhouse <Andrew Waterhouse>
Tue, 4 Apr 2006 09:31:35 +0000 (09:31 +0000)
committeramwaterhouse <Andrew Waterhouse>
Tue, 4 Apr 2006 09:31:35 +0000 (09:31 +0000)
src/jalview/gui/SequenceRenderer.java

index ab6c1ab..ec93abf 100755 (executable)
@@ -224,7 +224,13 @@ public class SequenceRenderer
 \r
         if(monospacedFont && av.showText && allGroups.length==0 && !av.getColourText())\r
         {\r
+          if(av.renderGaps)\r
           graphics.drawString(seq.getSequence(start, end + 1), 0, y1);\r
+         else\r
+         {\r
+           char gap = av.getGapCharacter();\r
+           graphics.drawString( seq.getSequence(start, end+1).replace(gap, ' '), 0, y1);\r
+         }\r
         }\r
         else\r
         {\r
@@ -352,7 +358,7 @@ public class SequenceRenderer
     {\r
       int pady = av.charHeight / 5;\r
       int charOffset = 0;\r
-      graphics.setColor(Color.lightGray);\r
+      graphics.setColor(Color.black);\r
       graphics.fillRect(x1, y1, av.charWidth, av.charHeight);\r
       graphics.setColor(Color.white);\r
 \r