1 package jalview.viewmodel.annotationfilter;
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;
18 private ThresholdType thresholdType;
20 private float thresholdValue;
22 private boolean filterAlphaHelix = false;
24 private boolean filterBetaSheet = false;
26 private boolean filterTurn = false;
28 private String regexString;
30 private List<SearchableAnnotationField> regexSearchFields = new ArrayList<SearchableAnnotationField>();
32 public ThresholdType getThresholdType()
37 public void setThresholdType(ThresholdType thresholdType)
39 this.thresholdType = thresholdType;
42 public float getThresholdValue()
44 return thresholdValue;
47 public void setThresholdValue(float thresholdValue)
49 this.thresholdValue = thresholdValue;
52 public String getRegexString()
57 public void setRegexString(String regexString)
59 this.regexString = regexString;
62 public List<SearchableAnnotationField> getRegexSearchFields()
64 return regexSearchFields;
67 public void addRegexSearchField(SearchableAnnotationField regexSearchField)
69 this.regexSearchFields.add(regexSearchField);
72 public boolean isFilterAlphaHelix()
74 return filterAlphaHelix;
77 public void setFilterAlphaHelix(boolean alphaHelix)
79 this.filterAlphaHelix = alphaHelix;
82 public boolean isFilterBetaSheet()
84 return filterBetaSheet;
87 public void setFilterBetaSheet(boolean betaSheet)
89 this.filterBetaSheet = betaSheet;
92 public boolean isFilterTurn()
97 public void setFilterTurn(boolean turn)
99 this.filterTurn = turn;