From b0e7370d001804e563320570d2a11453954c393e Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Wed, 1 Dec 2004 16:57:56 +0000 Subject: [PATCH] New function to highlight text search results --- src/jalview/gui/SequenceRenderer.java | 34 ++++++++++++++++++++++++++++++--- 1 file changed, 31 insertions(+), 3 deletions(-) diff --git a/src/jalview/gui/SequenceRenderer.java b/src/jalview/gui/SequenceRenderer.java index 0c1bfdc..192e252 100755 --- a/src/jalview/gui/SequenceRenderer.java +++ b/src/jalview/gui/SequenceRenderer.java @@ -9,6 +9,12 @@ import java.util.*; public class SequenceRenderer implements RendererI { FontMetrics fm; + boolean renderGaps = true; + + public void renderGaps(boolean b) + { + renderGaps = b; + } public Color getResidueBoxColour(ColourSchemeI cs, SequenceI seq, int i) { @@ -104,13 +110,14 @@ public class SequenceRenderer implements RendererI // Need to find the sequence position here. for (int i = start; i <= end; i++) { - if (i < end && i < seq.getLength()) - s = seq.getSequence().charAt(i); - else if(i