JAL-345 JAL-1738 SearchResultI method to mark columns in a bitset for highlighted...
[jalview.git] / src / jalview / datamodel / SearchResultsI.java
index dc18bb8..d59f453 100644 (file)
@@ -2,6 +2,7 @@ package jalview.datamodel;
 
 import jalview.datamodel.SearchResults.Match;
 
+import java.util.BitSet;
 import java.util.List;
 
 public interface SearchResultsI
@@ -79,4 +80,15 @@ public interface SearchResultsI
    */
   public abstract List<Match> getResults();
 
+  /**
+   * Set bits in a bitfield for all columns in the given sequence collection
+   * that are highlighted
+   * 
+   * @param sqcol
+   *          the set of sequences to search for highlighted regions
+   * @param bs
+   *          bitset to set
+   * @return number of bits set
+   */
+  public abstract int markColumns(SequenceCollectionI sqcol, BitSet bs);
 }
\ No newline at end of file