Merge branch 'develop' into features/JAL-518_justify_seqs_in_region
[jalview.git] / src / jalview / datamodel / SearchResultsI.java
index c89f363..ec6f5ee 100644 (file)
@@ -52,6 +52,18 @@ public interface SearchResultsI
   void addResult(SequenceI seq, int[] positions);
 
   /**
+   * Adds the given start/end region to this search result. If sequence already
+   * has a search result and the range is adjacent to already highlighted
+   * positions, they will be merged
+   * 
+   * @param sequence
+   * @param start
+   * @param end
+   * @return true if an existing range was updated with this one
+   */
+  boolean appendResult(SequenceI sequence, int start, int end);
+
+  /**
    * adds all match results in the argument to this set
    * 
    * @param toAdd
@@ -118,4 +130,12 @@ public interface SearchResultsI
    * @return number of bits set
    */
   int markColumns(SequenceCollectionI sqcol, BitSet bs);
+
+  /**
+   * Return sub-sequences corresponding to distinct contiguous ranges in the
+   * matching set
+   * 
+   * @return list of sequence objects
+   */
+  List<SequenceI> getMatchingSubSequences();
 }
\ No newline at end of file