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
16 Clazz.defineMethod (c$, "getThresholdType",
\r
18 return this.thresholdType;
\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
26 return this.thresholdValue;
\r
28 Clazz.defineMethod (c$, "setThresholdValue",
\r
29 function (thresholdValue) {
\r
30 this.thresholdValue = thresholdValue;
\r
32 Clazz.defineMethod (c$, "getRegexString",
\r
34 return this.regexString;
\r
36 Clazz.defineMethod (c$, "setRegexString",
\r
37 function (regexString) {
\r
38 this.regexString = regexString;
\r
40 Clazz.defineMethod (c$, "getRegexSearchFields",
\r
42 return this.regexSearchFields;
\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
50 return this.filterAlphaHelix;
\r
52 Clazz.defineMethod (c$, "setFilterAlphaHelix",
\r
53 function (alphaHelix) {
\r
54 this.filterAlphaHelix = alphaHelix;
\r
56 Clazz.defineMethod (c$, "isFilterBetaSheet",
\r
58 return this.filterBetaSheet;
\r
60 Clazz.defineMethod (c$, "setFilterBetaSheet",
\r
61 function (betaSheet) {
\r
62 this.filterBetaSheet = betaSheet;
\r
64 Clazz.defineMethod (c$, "isFilterTurn",
\r
66 return this.filterTurn;
\r
68 Clazz.defineMethod (c$, "setFilterTurn",
\r
70 this.filterTurn = turn;
\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
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