JAL-2526 zapCursor() renamed sequenceChanged()
[jalview.git] / src / jalview / datamodel / SequenceI.java
index 163a4a0..18f0948 100755 (executable)
@@ -191,12 +191,13 @@ public interface SequenceI extends ASequenceI
   public int findIndex(int pos);
 
   /**
-   * Returns the sequence position for an alignment position
+   * Returns the sequence position for an alignment position.
    * 
    * @param i
    *          column index in alignment (from 0..<length)
    * 
-   * @return residue number for residue (left of and) nearest ith column
+   * @return TODO: JAL-2562 - residue number for residue (left of and) nearest
+   *         ith column
    */
   public int findPosition(int i);
 
@@ -519,4 +520,11 @@ public interface SequenceI extends ASequenceI
    * @return
    */
   List<SequenceFeature> findFeatures(int from, int to, String... types);
+
+  /**
+   * Method to call to indicate that the sequence (characters or alignment/gaps)
+   * has been modified. Provided to allow any cursors on residue/column
+   * positions to be invalidated.
+   */
+  void sequenceChanged();
 }