JAL-1807 Bob's JalviewJS prototype first commit
[jalviewjs.git] / bin / jalview / viewmodel / annotationfilter / AnnotationFilterParameter.js
1 Clazz.declarePackage ("jalview.viewmodel.annotationfilter");\r
2 Clazz.load (["java.lang.Enum", "java.util.ArrayList"], "jalview.viewmodel.annotationfilter.AnnotationFilterParameter", null, function () {\r
3 c$ = Clazz.decorateAsClass (function () {\r
4 this.thresholdType = null;\r
5 this.thresholdValue = 0;\r
6 this.filterAlphaHelix = false;\r
7 this.filterBetaSheet = false;\r
8 this.filterTurn = false;\r
9 this.regexString = null;\r
10 this.regexSearchFields = null;\r
11 Clazz.instantialize (this, arguments);\r
12 }, jalview.viewmodel.annotationfilter, "AnnotationFilterParameter");\r
13 Clazz.prepareFields (c$, function () {\r
14 this.regexSearchFields =  new java.util.ArrayList ();\r
15 });\r
16 Clazz.defineMethod (c$, "getThresholdType", \r
17 function () {\r
18 return this.thresholdType;\r
19 });\r
20 Clazz.defineMethod (c$, "setThresholdType", \r
21 function (thresholdType) {\r
22 this.thresholdType = thresholdType;\r
23 }, "jalview.viewmodel.annotationfilter.AnnotationFilterParameter.ThresholdType");\r
24 Clazz.defineMethod (c$, "getThresholdValue", \r
25 function () {\r
26 return this.thresholdValue;\r
27 });\r
28 Clazz.defineMethod (c$, "setThresholdValue", \r
29 function (thresholdValue) {\r
30 this.thresholdValue = thresholdValue;\r
31 }, "~N");\r
32 Clazz.defineMethod (c$, "getRegexString", \r
33 function () {\r
34 return this.regexString;\r
35 });\r
36 Clazz.defineMethod (c$, "setRegexString", \r
37 function (regexString) {\r
38 this.regexString = regexString;\r
39 }, "~S");\r
40 Clazz.defineMethod (c$, "getRegexSearchFields", \r
41 function () {\r
42 return this.regexSearchFields;\r
43 });\r
44 Clazz.defineMethod (c$, "addRegexSearchField", \r
45 function (regexSearchField) {\r
46 this.regexSearchFields.add (regexSearchField);\r
47 }, "jalview.viewmodel.annotationfilter.AnnotationFilterParameter.SearchableAnnotationField");\r
48 Clazz.defineMethod (c$, "isFilterAlphaHelix", \r
49 function () {\r
50 return this.filterAlphaHelix;\r
51 });\r
52 Clazz.defineMethod (c$, "setFilterAlphaHelix", \r
53 function (alphaHelix) {\r
54 this.filterAlphaHelix = alphaHelix;\r
55 }, "~B");\r
56 Clazz.defineMethod (c$, "isFilterBetaSheet", \r
57 function () {\r
58 return this.filterBetaSheet;\r
59 });\r
60 Clazz.defineMethod (c$, "setFilterBetaSheet", \r
61 function (betaSheet) {\r
62 this.filterBetaSheet = betaSheet;\r
63 }, "~B");\r
64 Clazz.defineMethod (c$, "isFilterTurn", \r
65 function () {\r
66 return this.filterTurn;\r
67 });\r
68 Clazz.defineMethod (c$, "setFilterTurn", \r
69 function (turn) {\r
70 this.filterTurn = turn;\r
71 }, "~B");\r
72 Clazz.pu$h ();\r
73 c$ = Clazz.declareType (jalview.viewmodel.annotationfilter.AnnotationFilterParameter, "ThresholdType", Enum);\r
74 Clazz.defineEnumConstant (c$, "NO_THRESHOLD", 0, []);\r
75 Clazz.defineEnumConstant (c$, "BELOW_THRESHOLD", 1, []);\r
76 Clazz.defineEnumConstant (c$, "ABOVE_THRESHOLD", 2, []);\r
77 c$ = Clazz.p0p ();\r
78 Clazz.pu$h ();\r
79 c$ = Clazz.declareType (jalview.viewmodel.annotationfilter.AnnotationFilterParameter, "SearchableAnnotationField", Enum);\r
80 Clazz.defineEnumConstant (c$, "DISPLAY_STRING", 0, []);\r
81 Clazz.defineEnumConstant (c$, "DESCRIPTION", 1, []);\r
82 c$ = Clazz.p0p ();\r
83 });\r