From 27b78e7d308dd52df87135dd815740ad1a64b1ab Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Tue, 4 Apr 2006 09:31:35 +0000 Subject: [PATCH] Cursor colour --- src/jalview/gui/SequenceRenderer.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/jalview/gui/SequenceRenderer.java b/src/jalview/gui/SequenceRenderer.java index ab6c1ab..ec93abf 100755 --- a/src/jalview/gui/SequenceRenderer.java +++ b/src/jalview/gui/SequenceRenderer.java @@ -224,7 +224,13 @@ public class SequenceRenderer if(monospacedFont && av.showText && allGroups.length==0 && !av.getColourText()) { + if(av.renderGaps) graphics.drawString(seq.getSequence(start, end + 1), 0, y1); + else + { + char gap = av.getGapCharacter(); + graphics.drawString( seq.getSequence(start, end+1).replace(gap, ' '), 0, y1); + } } else { @@ -352,7 +358,7 @@ public class SequenceRenderer { int pady = av.charHeight / 5; int charOffset = 0; - graphics.setColor(Color.lightGray); + graphics.setColor(Color.black); graphics.fillRect(x1, y1, av.charWidth, av.charHeight); graphics.setColor(Color.white); -- 1.7.10.2