1 package jalview.datamodel;
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("Display Character"), DESCRIPTION("Description");
16 private String fieldName;
18 SearchableAnnotationField(String fieldName)
20 this.fieldName = fieldName;
23 private ThresholdType thresholdType;
25 private float thresholdValue;
27 private boolean filterAlphaHelix = false;
29 private boolean filterBetaSheet = false;
31 private boolean filterTurn = false;
33 private String regexString;
35 private List<SearchableAnnotationField> regexSearchFields = new ArrayList<SearchableAnnotationField>();
37 public ThresholdType getThresholdType()
42 public void setThresholdType(ThresholdType thresholdType)
44 this.thresholdType = thresholdType;
47 public float getThresholdValue()
49 return thresholdValue;
52 public void setThresholdValue(float thresholdValue)
54 this.thresholdValue = thresholdValue;
57 public String getRegexString()
62 public void setRegexString(String regexString)
64 this.regexString = regexString;
67 public List<SearchableAnnotationField> getRegexSearchFields()
69 return regexSearchFields;
72 public void addRegexSearchField(SearchableAnnotationField regexSearchField)
74 this.regexSearchFields.add(regexSearchField);
77 public boolean isFilterAlphaHelix()
79 return filterAlphaHelix;
82 public void setFilterAlphaHelix(boolean alphaHelix)
84 this.filterAlphaHelix = alphaHelix;
87 public boolean isFilterBetaSheet()
89 return filterBetaSheet;
92 public void setFilterBetaSheet(boolean betaSheet)
94 this.filterBetaSheet = betaSheet;
97 public boolean isFilterTurn()
102 public void setFilterTurn(boolean turn)
104 this.filterTurn = turn;