JAL-2321 use configured values for structure derived annotation
[jalview.git] / src / jalview / datamodel / SequenceI.java
index 52072bb..b22e48f 100755 (executable)
@@ -543,4 +543,14 @@ public interface SequenceI extends ASequenceI
    * @return a String corresponding to the sequence
    */
   public String getSequenceStringFromIterator(Iterator<int[]> it);
+
+  /**
+   * Locate the first position in this sequence which is not contained in an
+   * iterator region. If no such position exists, return 0
+   * 
+   * @param it
+   *          iterator over regions
+   * @return first residue not contained in regions
+   */
+  public int firstResidueOutsideIterator(Iterator<int[]> it);
 }