X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fdatamodel%2FSearchResultsI.java;h=52a0467d841304c1e41b30de5f229634339101c3;hb=46406ae21c62b964714ce136c9d692985c17211d;hp=d59f45301b9d778a7cdac5e67b9f8d6eedaa8af6;hpb=1ec9d94e07c346fa2094908074a1d2518861ffe3;p=jalview.git
diff --git a/src/jalview/datamodel/SearchResultsI.java b/src/jalview/datamodel/SearchResultsI.java
index d59f453..52a0467 100644
--- a/src/jalview/datamodel/SearchResultsI.java
+++ b/src/jalview/datamodel/SearchResultsI.java
@@ -1,17 +1,37 @@
+/*
+ * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$)
+ * Copyright (C) $$Year-Rel$$ The Jalview Authors
+ *
+ * This file is part of Jalview.
+ *
+ * Jalview is free software: you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation, either version 3
+ * of the License, or (at your option) any later version.
+ *
+ * Jalview is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty
+ * of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with Jalview. If not, see
+ * Implementations should provide an optimised method to return locations to
+ * highlight on a visible portion of an alignment.
*
* @param sequence
- * sequence to highlight columns according to matches
* @param start
- * - first column of visible region
+ * first column of range (base 0, inclusive)
* @param end
- * - last column of visible region
- * @return int[] ranges within start/end index on sequence
- */
- public abstract int[] getResults(SequenceI sequence, int start, int end);
-
- public abstract int getSize();
-
- public abstract SequenceI getResultSequence(int index);
-
- /**
- * Returns the start position of the i'th match in the search results.
- *
- * @param i
- * @return
+ * last column of range base 0, inclusive)
+ * @return int[]
*/
- public abstract int getResultStart(int i);
+ int[] getResults(SequenceI sequence, int start, int end);
/**
- * Returns the end position of the i'th match in the search results.
+ * Returns the number of matches found
*
- * @param i
* @return
*/
- public abstract int getResultEnd(int i);
+ int getSize();
/**
* Returns true if no search result matches are held.
*
* @return
*/
- public abstract boolean isEmpty();
+ boolean isEmpty();
/**
* Returns the list of matches.
*
* @return
*/
- public abstract List