From 961b10e4c895aadb7fc9df82a641c6c53c0d5c70 Mon Sep 17 00:00:00 2001 From: jprocter Date: Wed, 12 Nov 2008 11:03:07 +0000 Subject: [PATCH] javadoc and new method to get alignment sequence index using a SearchResults object --- src/jalview/datamodel/Alignment.java | 23 +++++++++++++++++++++-- src/jalview/datamodel/AlignmentI.java | 9 ++++++++- 2 files changed, 29 insertions(+), 3 deletions(-) diff --git a/src/jalview/datamodel/Alignment.java b/src/jalview/datamodel/Alignment.java index 1312e22..08c04f5 100755 --- a/src/jalview/datamodel/Alignment.java +++ b/src/jalview/datamodel/Alignment.java @@ -441,8 +441,9 @@ public class Alignment implements AlignmentI return result; } - - /** */ + /* (non-Javadoc) + * @see jalview.datamodel.AlignmentI#findIndex(jalview.datamodel.SequenceI) + */ public int findIndex(SequenceI s) { int i = 0; @@ -459,6 +460,23 @@ public class Alignment implements AlignmentI return -1; } + /* (non-Javadoc) + * @see jalview.datamodel.AlignmentI#findIndex(jalview.datamodel.SearchResults) + */ + public int findIndex(SearchResults results) + { + int i=0; + + while (i