1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
package jalview.xml.binding.jalview; |
10 |
|
|
11 |
|
import java.util.ArrayList; |
12 |
|
import java.util.List; |
13 |
|
import javax.xml.bind.annotation.XmlAccessType; |
14 |
|
import javax.xml.bind.annotation.XmlAccessorType; |
15 |
|
import javax.xml.bind.annotation.XmlAttribute; |
16 |
|
import javax.xml.bind.annotation.XmlElement; |
17 |
|
import javax.xml.bind.annotation.XmlType; |
18 |
|
|
19 |
|
|
20 |
|
|
21 |
|
|
22 |
|
|
23 |
|
|
24 |
|
|
25 |
|
|
26 |
|
|
27 |
|
|
28 |
|
|
29 |
|
|
30 |
|
|
31 |
|
|
32 |
|
|
33 |
|
|
34 |
|
|
35 |
|
|
36 |
|
|
37 |
|
|
38 |
|
|
39 |
|
|
40 |
|
|
41 |
|
|
42 |
|
|
43 |
|
|
44 |
|
|
45 |
|
|
46 |
|
|
47 |
|
|
48 |
|
|
49 |
|
|
50 |
|
|
51 |
|
|
52 |
|
|
53 |
|
|
54 |
|
|
55 |
|
|
56 |
|
|
57 |
|
|
58 |
|
|
59 |
|
|
60 |
|
|
61 |
|
|
62 |
|
|
63 |
|
|
64 |
|
|
65 |
|
|
66 |
|
|
67 |
|
|
68 |
|
|
69 |
|
|
70 |
|
|
71 |
|
|
72 |
|
|
73 |
|
@XmlAccessorType(XmlAccessType.FIELD) |
74 |
|
@XmlType(name = "JalviewUserColours", namespace = "www.jalview.org/colours", propOrder = { |
75 |
|
"version", |
76 |
|
"colour", |
77 |
|
"filter" |
78 |
|
}) |
|
|
| 70% |
Uncovered Elements: 6 (20) |
Complexity: 8 |
Complexity Density: 0.8 |
|
79 |
|
public class JalviewUserColours { |
80 |
|
|
81 |
|
@XmlElement(name = "Version", namespace = "") |
82 |
|
protected String version; |
83 |
|
@XmlElement(namespace = "") |
84 |
|
protected List<JalviewUserColours.Colour> colour; |
85 |
|
@XmlElement(namespace = "") |
86 |
|
protected List<JalviewUserColours.Filter> filter; |
87 |
|
@XmlAttribute(name = "schemeName") |
88 |
|
protected String schemeName; |
89 |
|
|
90 |
|
|
91 |
|
|
92 |
|
|
93 |
|
@return |
94 |
|
|
95 |
|
@link |
96 |
|
|
97 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
98 |
0 |
public String getVersion() {... |
99 |
0 |
return version; |
100 |
|
} |
101 |
|
|
102 |
|
|
103 |
|
|
104 |
|
|
105 |
|
@param |
106 |
|
|
107 |
|
@link |
108 |
|
|
109 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
110 |
0 |
public void setVersion(String value) {... |
111 |
0 |
this.version = value; |
112 |
|
} |
113 |
|
|
114 |
|
|
115 |
|
|
116 |
|
|
117 |
|
|
118 |
|
|
119 |
|
|
120 |
|
|
121 |
|
|
122 |
|
|
123 |
|
|
124 |
|
|
125 |
|
|
126 |
|
|
127 |
|
|
128 |
|
|
129 |
|
|
130 |
|
|
131 |
|
|
132 |
|
@link |
133 |
|
|
134 |
|
|
135 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (5) |
Complexity: 2 |
Complexity Density: 0.67 |
|
136 |
16 |
public List<JalviewUserColours.Colour> getColour() {... |
137 |
16 |
if (colour == null) { |
138 |
1 |
colour = new ArrayList<JalviewUserColours.Colour>(); |
139 |
|
} |
140 |
16 |
return this.colour; |
141 |
|
} |
142 |
|
|
143 |
|
|
144 |
|
|
145 |
|
|
146 |
|
|
147 |
|
|
148 |
|
|
149 |
|
|
150 |
|
|
151 |
|
|
152 |
|
|
153 |
|
|
154 |
|
|
155 |
|
|
156 |
|
|
157 |
|
|
158 |
|
|
159 |
|
|
160 |
|
|
161 |
|
@link |
162 |
|
|
163 |
|
|
164 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (5) |
Complexity: 2 |
Complexity Density: 0.67 |
|
165 |
10 |
public List<JalviewUserColours.Filter> getFilter() {... |
166 |
10 |
if (filter == null) { |
167 |
1 |
filter = new ArrayList<JalviewUserColours.Filter>(); |
168 |
|
} |
169 |
10 |
return this.filter; |
170 |
|
} |
171 |
|
|
172 |
|
|
173 |
|
|
174 |
|
|
175 |
|
@return |
176 |
|
|
177 |
|
@link |
178 |
|
|
179 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
180 |
0 |
public String getSchemeName() {... |
181 |
0 |
return schemeName; |
182 |
|
} |
183 |
|
|
184 |
|
|
185 |
|
|
186 |
|
|
187 |
|
@param |
188 |
|
|
189 |
|
@link |
190 |
|
|
191 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
192 |
1 |
public void setSchemeName(String value) {... |
193 |
1 |
this.schemeName = value; |
194 |
|
} |
195 |
|
|
196 |
|
|
197 |
|
|
198 |
|
|
199 |
|
|
200 |
|
|
201 |
|
|
202 |
|
|
203 |
|
|
204 |
|
|
205 |
|
|
206 |
|
|
207 |
|
|
208 |
|
|
209 |
|
|
210 |
|
|
211 |
|
|
212 |
|
|
213 |
|
|
214 |
|
|
215 |
|
|
216 |
|
|
217 |
|
|
218 |
|
|
219 |
|
|
220 |
|
|
221 |
|
|
222 |
|
|
223 |
|
|
224 |
|
|
225 |
|
|
226 |
|
@XmlAccessorType(XmlAccessType.FIELD) |
227 |
|
@XmlType(name = "", propOrder = { |
228 |
|
"attributeName" |
229 |
|
}) |
|
|
| 96% |
Uncovered Elements: 2 (50) |
Complexity: 23 |
Complexity Density: 0.92 |
|
230 |
|
public static class Colour { |
231 |
|
|
232 |
|
@XmlElement(namespace = "") |
233 |
|
protected List<String> attributeName; |
234 |
|
@XmlAttribute(name = "Name") |
235 |
|
protected String name; |
236 |
|
@XmlAttribute(name = "RGB", required = true) |
237 |
|
protected String rgb; |
238 |
|
@XmlAttribute(name = "minRGB") |
239 |
|
protected String minRGB; |
240 |
|
@XmlAttribute(name = "noValueColour") |
241 |
|
protected NoValueColour noValueColour; |
242 |
|
@XmlAttribute(name = "threshType") |
243 |
|
protected ThresholdType threshType; |
244 |
|
@XmlAttribute(name = "threshold") |
245 |
|
protected Float threshold; |
246 |
|
@XmlAttribute(name = "max") |
247 |
|
protected Float max; |
248 |
|
@XmlAttribute(name = "min") |
249 |
|
protected Float min; |
250 |
|
@XmlAttribute(name = "colourByLabel") |
251 |
|
protected Boolean colourByLabel; |
252 |
|
@XmlAttribute(name = "autoScale") |
253 |
|
protected Boolean autoScale; |
254 |
|
|
255 |
|
|
256 |
|
|
257 |
|
|
258 |
|
|
259 |
|
|
260 |
|
|
261 |
|
|
262 |
|
|
263 |
|
|
264 |
|
|
265 |
|
|
266 |
|
|
267 |
|
|
268 |
|
|
269 |
|
|
270 |
|
|
271 |
|
|
272 |
|
|
273 |
|
@link |
274 |
|
|
275 |
|
|
276 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (5) |
Complexity: 2 |
Complexity Density: 0.67 |
|
277 |
7 |
public List<String> getAttributeName() {... |
278 |
7 |
if (attributeName == null) { |
279 |
4 |
attributeName = new ArrayList<String>(); |
280 |
|
} |
281 |
7 |
return this.attributeName; |
282 |
|
} |
283 |
|
|
284 |
|
|
285 |
|
|
286 |
|
|
287 |
|
@return |
288 |
|
|
289 |
|
@link |
290 |
|
|
291 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
292 |
10 |
public String getName() {... |
293 |
10 |
return name; |
294 |
|
} |
295 |
|
|
296 |
|
|
297 |
|
|
298 |
|
|
299 |
|
@param |
300 |
|
|
301 |
|
@link |
302 |
|
|
303 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
304 |
5 |
public void setName(String value) {... |
305 |
5 |
this.name = value; |
306 |
|
} |
307 |
|
|
308 |
|
|
309 |
|
|
310 |
|
|
311 |
|
@return |
312 |
|
|
313 |
|
@link |
314 |
|
|
315 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
316 |
5 |
public String getRGB() {... |
317 |
5 |
return rgb; |
318 |
|
} |
319 |
|
|
320 |
|
|
321 |
|
|
322 |
|
|
323 |
|
@param |
324 |
|
|
325 |
|
@link |
326 |
|
|
327 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
328 |
5 |
public void setRGB(String value) {... |
329 |
5 |
this.rgb = value; |
330 |
|
} |
331 |
|
|
332 |
|
|
333 |
|
|
334 |
|
|
335 |
|
@return |
336 |
|
|
337 |
|
@link |
338 |
|
|
339 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
340 |
4 |
public String getMinRGB() {... |
341 |
4 |
return minRGB; |
342 |
|
} |
343 |
|
|
344 |
|
|
345 |
|
|
346 |
|
|
347 |
|
@param |
348 |
|
|
349 |
|
@link |
350 |
|
|
351 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
352 |
4 |
public void setMinRGB(String value) {... |
353 |
4 |
this.minRGB = value; |
354 |
|
} |
355 |
|
|
356 |
|
|
357 |
|
|
358 |
|
|
359 |
|
@return |
360 |
|
|
361 |
|
@link |
362 |
|
|
363 |
|
|
|
|
| 60% |
Uncovered Elements: 2 (5) |
Complexity: 2 |
Complexity Density: 0.67 |
|
364 |
4 |
public NoValueColour getNoValueColour() {... |
365 |
4 |
if (noValueColour == null) { |
366 |
0 |
return NoValueColour.MIN; |
367 |
|
} else { |
368 |
4 |
return noValueColour; |
369 |
|
} |
370 |
|
} |
371 |
|
|
372 |
|
|
373 |
|
|
374 |
|
|
375 |
|
@param |
376 |
|
|
377 |
|
@link |
378 |
|
|
379 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
380 |
4 |
public void setNoValueColour(NoValueColour value) {... |
381 |
4 |
this.noValueColour = value; |
382 |
|
} |
383 |
|
|
384 |
|
|
385 |
|
|
386 |
|
|
387 |
|
@return |
388 |
|
|
389 |
|
@link |
390 |
|
|
391 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
392 |
4 |
public ThresholdType getThreshType() {... |
393 |
4 |
return threshType; |
394 |
|
} |
395 |
|
|
396 |
|
|
397 |
|
|
398 |
|
|
399 |
|
@param |
400 |
|
|
401 |
|
@link |
402 |
|
|
403 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
404 |
4 |
public void setThreshType(ThresholdType value) {... |
405 |
4 |
this.threshType = value; |
406 |
|
} |
407 |
|
|
408 |
|
|
409 |
|
|
410 |
|
|
411 |
|
@return |
412 |
|
|
413 |
|
@link |
414 |
|
|
415 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
416 |
8 |
public Float getThreshold() {... |
417 |
8 |
return threshold; |
418 |
|
} |
419 |
|
|
420 |
|
|
421 |
|
|
422 |
|
|
423 |
|
@param |
424 |
|
|
425 |
|
@link |
426 |
|
|
427 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
428 |
4 |
public void setThreshold(Float value) {... |
429 |
4 |
this.threshold = value; |
430 |
|
} |
431 |
|
|
432 |
|
|
433 |
|
|
434 |
|
|
435 |
|
@return |
436 |
|
|
437 |
|
@link |
438 |
|
|
439 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
440 |
9 |
public Float getMax() {... |
441 |
9 |
return max; |
442 |
|
} |
443 |
|
|
444 |
|
|
445 |
|
|
446 |
|
|
447 |
|
@param |
448 |
|
|
449 |
|
@link |
450 |
|
|
451 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
452 |
4 |
public void setMax(Float value) {... |
453 |
4 |
this.max = value; |
454 |
|
} |
455 |
|
|
456 |
|
|
457 |
|
|
458 |
|
|
459 |
|
@return |
460 |
|
|
461 |
|
@link |
462 |
|
|
463 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
464 |
4 |
public Float getMin() {... |
465 |
4 |
return min; |
466 |
|
} |
467 |
|
|
468 |
|
|
469 |
|
|
470 |
|
|
471 |
|
@param |
472 |
|
|
473 |
|
@link |
474 |
|
|
475 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
476 |
4 |
public void setMin(Float value) {... |
477 |
4 |
this.min = value; |
478 |
|
} |
479 |
|
|
480 |
|
|
481 |
|
|
482 |
|
|
483 |
|
@return |
484 |
|
|
485 |
|
@link |
486 |
|
|
487 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
488 |
8 |
public Boolean isColourByLabel() {... |
489 |
8 |
return colourByLabel; |
490 |
|
} |
491 |
|
|
492 |
|
|
493 |
|
|
494 |
|
|
495 |
|
@param |
496 |
|
|
497 |
|
@link |
498 |
|
|
499 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
500 |
4 |
public void setColourByLabel(Boolean value) {... |
501 |
4 |
this.colourByLabel = value; |
502 |
|
} |
503 |
|
|
504 |
|
|
505 |
|
|
506 |
|
|
507 |
|
@return |
508 |
|
|
509 |
|
@link |
510 |
|
|
511 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
512 |
8 |
public Boolean isAutoScale() {... |
513 |
8 |
return autoScale; |
514 |
|
} |
515 |
|
|
516 |
|
|
517 |
|
|
518 |
|
|
519 |
|
@param |
520 |
|
|
521 |
|
@link |
522 |
|
|
523 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
524 |
4 |
public void setAutoScale(Boolean value) {... |
525 |
4 |
this.autoScale = value; |
526 |
|
} |
527 |
|
|
528 |
|
} |
529 |
|
|
530 |
|
|
531 |
|
|
532 |
|
|
533 |
|
|
534 |
|
|
535 |
|
|
536 |
|
|
537 |
|
|
538 |
|
|
539 |
|
|
540 |
|
|
541 |
|
|
542 |
|
|
543 |
|
|
544 |
|
|
545 |
|
|
546 |
|
|
547 |
|
|
548 |
|
|
549 |
|
|
550 |
|
|
551 |
|
@XmlAccessorType(XmlAccessType.FIELD) |
552 |
|
@XmlType(name = "", propOrder = { |
553 |
|
"matcherSet" |
554 |
|
}) |
|
|
| 100% |
Uncovered Elements: 0 (8) |
Complexity: 4 |
Complexity Density: 1 |
|
555 |
|
public static class Filter { |
556 |
|
|
557 |
|
@XmlElement(namespace = "", required = true) |
558 |
|
protected FeatureMatcherSet matcherSet; |
559 |
|
@XmlAttribute(name = "featureType", required = true) |
560 |
|
protected String featureType; |
561 |
|
|
562 |
|
|
563 |
|
|
564 |
|
|
565 |
|
@return |
566 |
|
|
567 |
|
@link |
568 |
|
|
569 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
570 |
3 |
public FeatureMatcherSet getMatcherSet() {... |
571 |
3 |
return matcherSet; |
572 |
|
} |
573 |
|
|
574 |
|
|
575 |
|
|
576 |
|
|
577 |
|
@param |
578 |
|
|
579 |
|
@link |
580 |
|
|
581 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
582 |
3 |
public void setMatcherSet(FeatureMatcherSet value) {... |
583 |
3 |
this.matcherSet = value; |
584 |
|
} |
585 |
|
|
586 |
|
|
587 |
|
|
588 |
|
|
589 |
|
@return |
590 |
|
|
591 |
|
@link |
592 |
|
|
593 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
594 |
3 |
public String getFeatureType() {... |
595 |
3 |
return featureType; |
596 |
|
} |
597 |
|
|
598 |
|
|
599 |
|
|
600 |
|
|
601 |
|
@param |
602 |
|
|
603 |
|
@link |
604 |
|
|
605 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
606 |
3 |
public void setFeatureType(String value) {... |
607 |
3 |
this.featureType = value; |
608 |
|
} |
609 |
|
|
610 |
|
} |
611 |
|
|
612 |
|
} |