Merge branch 'features/JAL-2446NCList' into
[jalview.git] / src / jalview / datamodel / SequenceI.java
index 0f78bdb..38be37f 100755 (executable)
@@ -22,6 +22,7 @@ package jalview.datamodel;
 
 import jalview.datamodel.features.SequenceFeaturesI;
 
+import java.util.BitSet;
 import java.util.List;
 import java.util.Vector;
 
@@ -522,7 +523,16 @@ public interface SequenceI extends ASequenceI
   List<SequenceFeature> findFeatures(int from, int to, String... types);
 
   /**
-   * Invalidate any cursors on the sequence (e.g. after an edit)
+   * 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.
    */
-  public void zapCursor();
+  void sequenceChanged();
+  
+  /**
+   * 
+   * @return BitSet corresponding to index [0,length) where Comparison.isGap()
+   *         returns true.
+   */
+  BitSet getInsertionsAsBits();
 }