From: amwaterhouse Date: Tue, 4 Apr 2006 09:31:35 +0000 (+0000) Subject: Cursor colour X-Git-Tag: Release_2_08~85 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=27b78e7d308dd52df87135dd815740ad1a64b1ab;p=jalview.git Cursor colour --- 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);