1 Clazz.declarePackage ("jalview.viewmodel.annotationfilter");
2 Clazz.load (["java.lang.Enum", "java.util.ArrayList"], "jalview.viewmodel.annotationfilter.AnnotationFilterParameter", null, function () {
3 c$ = Clazz.decorateAsClass (function () {
4 this.thresholdType = null;
5 this.thresholdValue = 0;
6 this.filterAlphaHelix = false;
7 this.filterBetaSheet = false;
8 this.filterTurn = false;
9 this.regexString = null;
10 this.regexSearchFields = null;
11 Clazz.instantialize (this, arguments);
12 }, jalview.viewmodel.annotationfilter, "AnnotationFilterParameter");
13 Clazz.prepareFields (c$, function () {
14 this.regexSearchFields = new java.util.ArrayList ();
16 Clazz.defineMethod (c$, "getThresholdType",
18 return this.thresholdType;
20 Clazz.defineMethod (c$, "setThresholdType",
21 function (thresholdType) {
22 this.thresholdType = thresholdType;
23 }, "jalview.viewmodel.annotationfilter.AnnotationFilterParameter.ThresholdType");
24 Clazz.defineMethod (c$, "getThresholdValue",
26 return this.thresholdValue;
28 Clazz.defineMethod (c$, "setThresholdValue",
29 function (thresholdValue) {
30 this.thresholdValue = thresholdValue;
32 Clazz.defineMethod (c$, "getRegexString",
34 return this.regexString;
36 Clazz.defineMethod (c$, "setRegexString",
37 function (regexString) {
38 this.regexString = regexString;
40 Clazz.defineMethod (c$, "getRegexSearchFields",
42 return this.regexSearchFields;
44 Clazz.defineMethod (c$, "addRegexSearchField",
45 function (regexSearchField) {
46 this.regexSearchFields.add (regexSearchField);
47 }, "jalview.viewmodel.annotationfilter.AnnotationFilterParameter.SearchableAnnotationField");
48 Clazz.defineMethod (c$, "isFilterAlphaHelix",
50 return this.filterAlphaHelix;
52 Clazz.defineMethod (c$, "setFilterAlphaHelix",
53 function (alphaHelix) {
54 this.filterAlphaHelix = alphaHelix;
56 Clazz.defineMethod (c$, "isFilterBetaSheet",
58 return this.filterBetaSheet;
60 Clazz.defineMethod (c$, "setFilterBetaSheet",
61 function (betaSheet) {
62 this.filterBetaSheet = betaSheet;
64 Clazz.defineMethod (c$, "isFilterTurn",
66 return this.filterTurn;
68 Clazz.defineMethod (c$, "setFilterTurn",
70 this.filterTurn = turn;
73 c$ = Clazz.declareType (jalview.viewmodel.annotationfilter.AnnotationFilterParameter, "ThresholdType", Enum);
74 Clazz.defineEnumConstant (c$, "NO_THRESHOLD", 0, []);
75 Clazz.defineEnumConstant (c$, "BELOW_THRESHOLD", 1, []);
76 Clazz.defineEnumConstant (c$, "ABOVE_THRESHOLD", 2, []);
79 c$ = Clazz.declareType (jalview.viewmodel.annotationfilter.AnnotationFilterParameter, "SearchableAnnotationField", Enum);
80 Clazz.defineEnumConstant (c$, "DISPLAY_STRING", 0, []);
81 Clazz.defineEnumConstant (c$, "DESCRIPTION", 1, []);