boolean caseSensitive=false;
boolean findAll=false;
com.stevesoft.pat.Regex regex=null;
+ /**
+ * hold's last-searched position between calles to find(false)
+ */
+ int seqIndex=0,resIndex=0;
public Finder(AlignmentI alignment, SequenceGroup selection) {
this.alignment=alignment;
this.selection = selection;
}
+
+ public Finder(AlignmentI alignment, SequenceGroup selectionGroup, int seqIndex, int resIndex) {
+ this(alignment, selectionGroup);
+ this.seqIndex=seqIndex;
+ this.resIndex=resIndex;
+ }
+
public boolean find(String searchString) {
boolean hasResults=false;
if(!caseSensitive)
searchResults = new SearchResults();
idMatch = new Vector();
Sequence seq;
- int seqIndex=0,resIndex=0;
String item = null;
boolean found = false;
public SearchResults getSearchResults() {
return searchResults;
}
+
+ /**
+ * @return the resIndex
+ */
+ public int getResIndex() {
+ return resIndex;
+ }
+
+ /**
+ * @param resIndex the resIndex to set
+ */
+ public void setResIndex(int resIndex) {
+ this.resIndex = resIndex;
+ }
+
+ /**
+ * @return the seqIndex
+ */
+ public int getSeqIndex() {
+ return seqIndex;
+ }
+
+ /**
+ * @param seqIndex the seqIndex to set
+ */
+ public void setSeqIndex(int seqIndex) {
+ this.seqIndex = seqIndex;
+ }
}