1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
|
21 |
|
package jalview.viewmodel.annotationfilter; |
22 |
|
|
23 |
|
import java.util.ArrayList; |
24 |
|
import java.util.List; |
25 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (28) |
Complexity: 14 |
Complexity Density: 1 |
|
26 |
|
public class AnnotationFilterParameter |
27 |
|
{ |
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 0 |
Complexity Density: - |
|
28 |
|
public enum ThresholdType |
29 |
|
{ |
30 |
|
NO_THRESHOLD, BELOW_THRESHOLD, ABOVE_THRESHOLD; |
31 |
|
} |
32 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 0 |
Complexity Density: - |
|
33 |
|
public enum SearchableAnnotationField |
34 |
|
{ |
35 |
|
DISPLAY_STRING, DESCRIPTION; |
36 |
|
} |
37 |
|
|
38 |
|
private ThresholdType thresholdType; |
39 |
|
|
40 |
|
private float thresholdValue; |
41 |
|
|
42 |
|
private boolean filterAlphaHelix = false; |
43 |
|
|
44 |
|
private boolean filterBetaSheet = false; |
45 |
|
|
46 |
|
private boolean filterTurn = false; |
47 |
|
|
48 |
|
private String regexString; |
49 |
|
|
50 |
|
private List<SearchableAnnotationField> regexSearchFields = new ArrayList<SearchableAnnotationField>(); |
51 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
52 |
88 |
public ThresholdType getThresholdType()... |
53 |
|
{ |
54 |
88 |
return thresholdType; |
55 |
|
} |
56 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
57 |
3 |
public void setThresholdType(ThresholdType thresholdType)... |
58 |
|
{ |
59 |
3 |
this.thresholdType = thresholdType; |
60 |
|
} |
61 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
62 |
16 |
public float getThresholdValue()... |
63 |
|
{ |
64 |
16 |
return thresholdValue; |
65 |
|
} |
66 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
67 |
2 |
public void setThresholdValue(float thresholdValue)... |
68 |
|
{ |
69 |
2 |
this.thresholdValue = thresholdValue; |
70 |
|
} |
71 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
72 |
45 |
public String getRegexString()... |
73 |
|
{ |
74 |
45 |
return regexString; |
75 |
|
} |
76 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
77 |
2 |
public void setRegexString(String regexString)... |
78 |
|
{ |
79 |
2 |
this.regexString = regexString; |
80 |
|
} |
81 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
82 |
4 |
public List<SearchableAnnotationField> getRegexSearchFields()... |
83 |
|
{ |
84 |
4 |
return regexSearchFields; |
85 |
|
} |
86 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
87 |
2 |
public void addRegexSearchField(... |
88 |
|
SearchableAnnotationField regexSearchField) |
89 |
|
{ |
90 |
2 |
this.regexSearchFields.add(regexSearchField); |
91 |
|
} |
92 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
93 |
40 |
public boolean isFilterAlphaHelix()... |
94 |
|
{ |
95 |
40 |
return filterAlphaHelix; |
96 |
|
} |
97 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
98 |
3 |
public void setFilterAlphaHelix(boolean alphaHelix)... |
99 |
|
{ |
100 |
3 |
this.filterAlphaHelix = alphaHelix; |
101 |
|
} |
102 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
103 |
37 |
public boolean isFilterBetaSheet()... |
104 |
|
{ |
105 |
37 |
return filterBetaSheet; |
106 |
|
} |
107 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
108 |
1 |
public void setFilterBetaSheet(boolean betaSheet)... |
109 |
|
{ |
110 |
1 |
this.filterBetaSheet = betaSheet; |
111 |
|
} |
112 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
113 |
35 |
public boolean isFilterTurn()... |
114 |
|
{ |
115 |
35 |
return filterTurn; |
116 |
|
} |
117 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
118 |
1 |
public void setFilterTurn(boolean turn)... |
119 |
|
{ |
120 |
1 |
this.filterTurn = turn; |
121 |
|
} |
122 |
|
|
123 |
|
} |