From: jprocter Date: Fri, 18 Jul 2008 15:03:36 +0000 (+0000) Subject: allow findSeq to begin *after* a given sequence in the alignment X-Git-Tag: Release_2_4~80 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=ed52d72ae281a74a5496a605e51159931caa925c;p=jalview.git allow findSeq to begin *after* a given sequence in the alignment --- diff --git a/src/jalview/datamodel/Alignment.java b/src/jalview/datamodel/Alignment.java index 3689433..a88fa9e 100755 --- a/src/jalview/datamodel/Alignment.java +++ b/src/jalview/datamodel/Alignment.java @@ -344,10 +344,35 @@ public class Alignment */ public SequenceI findName(String token, boolean b) { - + return findName(null, token, b); + } + + /* (non-Javadoc) + * @see jalview.datamodel.AlignmentI#findName(SequenceI, java.lang.String, boolean) + */ + public SequenceI findName(SequenceI startAfter, String token, boolean b) + { + int i = 0; SequenceI sq=null; String sqname=null; + if (startAfter!=null) + { + // try to find the sequence in the alignment + boolean matched=false; + while (ialso be tried + * @return matched sequence or null + */ + public SequenceI findName(SequenceI startAfter, String token, boolean b); }