X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fdatamodel%2FSearchResultsI.java;h=ec6f5ee68f343d80a51ce4b19dd7e71e95cfe2a4;hb=refs%2Fheads%2Fbug%2FJAL-2934proportionalScrolling;hp=794682412897ea634ba901595a832119749adaf8;hpb=41fe43633ee3cc43a45a356176689731ff73ba67;p=jalview.git diff --git a/src/jalview/datamodel/SearchResultsI.java b/src/jalview/datamodel/SearchResultsI.java index 7946824..ec6f5ee 100644 --- a/src/jalview/datamodel/SearchResultsI.java +++ b/src/jalview/datamodel/SearchResultsI.java @@ -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