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