1 package jalview.api.analysis;
3 import java.util.ArrayList;
6 public class AnnotationFilterParameter
8 public enum ThresholdType
10 NO_THRESHOLD, BELOW_THRESHOLD, ABOVE_THRESHOLD;
13 public enum SearchableAnnotationField
15 DISPLAY_STRING, DESCRIPTION;
17 private ThresholdType thresholdType;
19 private float thresholdValue;
21 private boolean filterAlphaHelix = false;
23 private boolean filterBetaSheet = false;
25 private boolean filterTurn = false;
27 private String regexString;
29 private List<SearchableAnnotationField> regexSearchFields = new ArrayList<SearchableAnnotationField>();
31 public ThresholdType getThresholdType()
36 public void setThresholdType(ThresholdType thresholdType)
38 this.thresholdType = thresholdType;
41 public float getThresholdValue()
43 return thresholdValue;
46 public void setThresholdValue(float thresholdValue)
48 this.thresholdValue = thresholdValue;
51 public String getRegexString()
56 public void setRegexString(String regexString)
58 this.regexString = regexString;
61 public List<SearchableAnnotationField> getRegexSearchFields()
63 return regexSearchFields;
66 public void addRegexSearchField(SearchableAnnotationField regexSearchField)
68 this.regexSearchFields.add(regexSearchField);
71 public boolean isFilterAlphaHelix()
73 return filterAlphaHelix;
76 public void setFilterAlphaHelix(boolean alphaHelix)
78 this.filterAlphaHelix = alphaHelix;
81 public boolean isFilterBetaSheet()
83 return filterBetaSheet;
86 public void setFilterBetaSheet(boolean betaSheet)
88 this.filterBetaSheet = betaSheet;
91 public boolean isFilterTurn()
96 public void setFilterTurn(boolean turn)
98 this.filterTurn = turn;