JAL-2374 fix popup out by one and multiple groups bugs
[jalview.git] / src / jalview / datamodel / AlignmentI.java
index 7274e5f..2df099a 100755 (executable)
@@ -156,15 +156,16 @@ public interface AlignmentI extends AnnotatedCollectionI
   int findIndex(SequenceI s);
 
   /**
-   * Finds group that given sequence is part of.
+   * Returns the first group (in the order in which groups were added) that
+   * includes the given sequence and aligned position (base 0), or null if none
+   * found
    * 
-   * @param s
-   *          Sequence in alignment.
+   * @param seq
+   * @param position
    * 
-   * @return First group found for sequence. WARNING : Sequences may be members
-   *         of several groups. This method is incomplete.
+   * @return
    */
-  SequenceGroup findGroup(SequenceI s);
+  SequenceGroup findGroup(SequenceI seq, int position);
 
   /**
    * Finds all groups that a given sequence is part of.