-
- /*
- * and repeat for the new search results
- */
- int[] visibleResults = results.getResults(seq, ranges.getStartRes(),
- ranges.getEndRes());
- if (visibleResults != null)
- {
- int firstMatchedColumn = visibleResults[0];
- int lastMatchedColumn = visibleResults[visibleResults.length - 1];
- if (firstMatchedColumn <= ranges.getEndRes()
- && lastMatchedColumn >= ranges.getStartRes())
- {
- matchFound = true;
- firstSeq = Math.min(firstSeq, seqNo);
- lastSeq = Math.max(lastSeq, seqNo);
- firstMatchedColumn = Math.max(firstMatchedColumn,
- ranges.getStartRes());
- lastMatchedColumn = Math.min(lastMatchedColumn,
- ranges.getEndRes());
- firstCol = Math.min(firstCol, firstMatchedColumn);
- lastCol = Math.max(lastCol, lastMatchedColumn);
- }
- }