1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
package jalview.schemabinding.version2; |
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
import org.exolab.castor.xml.Marshaller; |
15 |
|
import org.exolab.castor.xml.Unmarshaller; |
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
@version |
21 |
|
|
|
|
| 68.3% |
Uncovered Elements: 26 (82) |
Complexity: 37 |
Complexity Density: 0.8 |
|
22 |
|
public class AnnotationColourScheme implements java.io.Serializable |
23 |
|
{ |
24 |
|
|
25 |
|
|
26 |
|
|
27 |
|
|
28 |
|
|
29 |
|
|
30 |
|
|
31 |
|
|
32 |
|
private int _aboveThreshold; |
33 |
|
|
34 |
|
|
35 |
|
|
36 |
|
|
37 |
|
private boolean _has_aboveThreshold; |
38 |
|
|
39 |
|
|
40 |
|
|
41 |
|
|
42 |
|
private java.lang.String _annotation; |
43 |
|
|
44 |
|
|
45 |
|
|
46 |
|
|
47 |
|
private int _minColour; |
48 |
|
|
49 |
|
|
50 |
|
|
51 |
|
|
52 |
|
private boolean _has_minColour; |
53 |
|
|
54 |
|
|
55 |
|
|
56 |
|
|
57 |
|
private int _maxColour; |
58 |
|
|
59 |
|
|
60 |
|
|
61 |
|
|
62 |
|
private boolean _has_maxColour; |
63 |
|
|
64 |
|
|
65 |
|
|
66 |
|
|
67 |
|
private java.lang.String _colourScheme; |
68 |
|
|
69 |
|
|
70 |
|
|
71 |
|
|
72 |
|
private float _threshold; |
73 |
|
|
74 |
|
|
75 |
|
|
76 |
|
|
77 |
|
private boolean _has_threshold; |
78 |
|
|
79 |
|
|
80 |
|
|
81 |
|
|
82 |
|
private boolean _perSequence; |
83 |
|
|
84 |
|
|
85 |
|
|
86 |
|
|
87 |
|
private boolean _has_perSequence; |
88 |
|
|
89 |
|
|
90 |
|
|
91 |
|
|
92 |
|
private boolean _predefinedColours; |
93 |
|
|
94 |
|
|
95 |
|
|
96 |
|
|
97 |
|
private boolean _has_predefinedColours; |
98 |
|
|
99 |
|
|
100 |
|
|
101 |
|
|
102 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
103 |
4 |
public AnnotationColourScheme()... |
104 |
|
{ |
105 |
4 |
super(); |
106 |
|
} |
107 |
|
|
108 |
|
|
109 |
|
|
110 |
|
|
111 |
|
|
112 |
|
|
113 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
114 |
0 |
public void deleteAboveThreshold()... |
115 |
|
{ |
116 |
0 |
this._has_aboveThreshold = false; |
117 |
|
} |
118 |
|
|
119 |
|
|
120 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
121 |
0 |
public void deleteMaxColour()... |
122 |
|
{ |
123 |
0 |
this._has_maxColour = false; |
124 |
|
} |
125 |
|
|
126 |
|
|
127 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
128 |
0 |
public void deleteMinColour()... |
129 |
|
{ |
130 |
0 |
this._has_minColour = false; |
131 |
|
} |
132 |
|
|
133 |
|
|
134 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
135 |
0 |
public void deletePerSequence()... |
136 |
|
{ |
137 |
0 |
this._has_perSequence = false; |
138 |
|
} |
139 |
|
|
140 |
|
|
141 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
142 |
0 |
public void deletePredefinedColours()... |
143 |
|
{ |
144 |
0 |
this._has_predefinedColours = false; |
145 |
|
} |
146 |
|
|
147 |
|
|
148 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
149 |
0 |
public void deleteThreshold()... |
150 |
|
{ |
151 |
0 |
this._has_threshold = false; |
152 |
|
} |
153 |
|
|
154 |
|
|
155 |
|
|
156 |
|
|
157 |
|
@return |
158 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
159 |
6 |
public int getAboveThreshold()... |
160 |
|
{ |
161 |
6 |
return this._aboveThreshold; |
162 |
|
} |
163 |
|
|
164 |
|
|
165 |
|
|
166 |
|
|
167 |
|
@return |
168 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
169 |
6 |
public java.lang.String getAnnotation()... |
170 |
|
{ |
171 |
6 |
return this._annotation; |
172 |
|
} |
173 |
|
|
174 |
|
|
175 |
|
|
176 |
|
|
177 |
|
@return |
178 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
179 |
6 |
public java.lang.String getColourScheme()... |
180 |
|
{ |
181 |
6 |
return this._colourScheme; |
182 |
|
} |
183 |
|
|
184 |
|
|
185 |
|
|
186 |
|
|
187 |
|
@return |
188 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
189 |
6 |
public int getMaxColour()... |
190 |
|
{ |
191 |
6 |
return this._maxColour; |
192 |
|
} |
193 |
|
|
194 |
|
|
195 |
|
|
196 |
|
|
197 |
|
@return |
198 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
199 |
6 |
public int getMinColour()... |
200 |
|
{ |
201 |
6 |
return this._minColour; |
202 |
|
} |
203 |
|
|
204 |
|
|
205 |
|
|
206 |
|
|
207 |
|
@return |
208 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
209 |
4 |
public boolean getPerSequence()... |
210 |
|
{ |
211 |
4 |
return this._perSequence; |
212 |
|
} |
213 |
|
|
214 |
|
|
215 |
|
|
216 |
|
|
217 |
|
@return |
218 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
219 |
4 |
public boolean getPredefinedColours()... |
220 |
|
{ |
221 |
4 |
return this._predefinedColours; |
222 |
|
} |
223 |
|
|
224 |
|
|
225 |
|
|
226 |
|
|
227 |
|
@return |
228 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
229 |
4 |
public float getThreshold()... |
230 |
|
{ |
231 |
4 |
return this._threshold; |
232 |
|
} |
233 |
|
|
234 |
|
|
235 |
|
|
236 |
|
|
237 |
|
@return |
238 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
239 |
4 |
public boolean hasAboveThreshold()... |
240 |
|
{ |
241 |
4 |
return this._has_aboveThreshold; |
242 |
|
} |
243 |
|
|
244 |
|
|
245 |
|
|
246 |
|
|
247 |
|
@return |
248 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
249 |
4 |
public boolean hasMaxColour()... |
250 |
|
{ |
251 |
4 |
return this._has_maxColour; |
252 |
|
} |
253 |
|
|
254 |
|
|
255 |
|
|
256 |
|
|
257 |
|
@return |
258 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
259 |
4 |
public boolean hasMinColour()... |
260 |
|
{ |
261 |
4 |
return this._has_minColour; |
262 |
|
} |
263 |
|
|
264 |
|
|
265 |
|
|
266 |
|
|
267 |
|
@return |
268 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
269 |
4 |
public boolean hasPerSequence()... |
270 |
|
{ |
271 |
4 |
return this._has_perSequence; |
272 |
|
} |
273 |
|
|
274 |
|
|
275 |
|
|
276 |
|
|
277 |
|
@return |
278 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
279 |
4 |
public boolean hasPredefinedColours()... |
280 |
|
{ |
281 |
4 |
return this._has_predefinedColours; |
282 |
|
} |
283 |
|
|
284 |
|
|
285 |
|
|
286 |
|
|
287 |
|
@return |
288 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
289 |
4 |
public boolean hasThreshold()... |
290 |
|
{ |
291 |
4 |
return this._has_threshold; |
292 |
|
} |
293 |
|
|
294 |
|
|
295 |
|
|
296 |
|
|
297 |
|
@return |
298 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
299 |
2 |
public boolean isPerSequence()... |
300 |
|
{ |
301 |
2 |
return this._perSequence; |
302 |
|
} |
303 |
|
|
304 |
|
|
305 |
|
|
306 |
|
|
307 |
|
@return |
308 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
309 |
2 |
public boolean isPredefinedColours()... |
310 |
|
{ |
311 |
2 |
return this._predefinedColours; |
312 |
|
} |
313 |
|
|
314 |
|
|
315 |
|
|
316 |
|
|
317 |
|
@return |
318 |
|
|
|
|
| 0% |
Uncovered Elements: 4 (4) |
Complexity: 2 |
Complexity Density: 0.5 |
|
319 |
0 |
public boolean isValid()... |
320 |
|
{ |
321 |
0 |
try |
322 |
|
{ |
323 |
0 |
validate(); |
324 |
|
} catch (org.exolab.castor.xml.ValidationException vex) |
325 |
|
{ |
326 |
0 |
return false; |
327 |
|
} |
328 |
0 |
return true; |
329 |
|
} |
330 |
|
|
331 |
|
|
332 |
|
|
333 |
|
|
334 |
|
@param |
335 |
|
@throws |
336 |
|
|
337 |
|
|
338 |
|
@throws |
339 |
|
|
340 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
341 |
0 |
public void marshal(final java.io.Writer out)... |
342 |
|
throws org.exolab.castor.xml.MarshalException, |
343 |
|
org.exolab.castor.xml.ValidationException |
344 |
|
{ |
345 |
0 |
Marshaller.marshal(this, out); |
346 |
|
} |
347 |
|
|
348 |
|
|
349 |
|
|
350 |
|
|
351 |
|
@param |
352 |
|
@throws |
353 |
|
|
354 |
|
@throws |
355 |
|
|
356 |
|
@throws |
357 |
|
|
358 |
|
|
359 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
360 |
0 |
public void marshal(final org.xml.sax.ContentHandler handler)... |
361 |
|
throws java.io.IOException, |
362 |
|
org.exolab.castor.xml.MarshalException, |
363 |
|
org.exolab.castor.xml.ValidationException |
364 |
|
{ |
365 |
0 |
Marshaller.marshal(this, handler); |
366 |
|
} |
367 |
|
|
368 |
|
|
369 |
|
|
370 |
|
|
371 |
|
@param |
372 |
|
|
373 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
374 |
4 |
public void setAboveThreshold(final int aboveThreshold)... |
375 |
|
{ |
376 |
4 |
this._aboveThreshold = aboveThreshold; |
377 |
4 |
this._has_aboveThreshold = true; |
378 |
|
} |
379 |
|
|
380 |
|
|
381 |
|
|
382 |
|
|
383 |
|
@param |
384 |
|
|
385 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
386 |
4 |
public void setAnnotation(final java.lang.String annotation)... |
387 |
|
{ |
388 |
4 |
this._annotation = annotation; |
389 |
|
} |
390 |
|
|
391 |
|
|
392 |
|
|
393 |
|
|
394 |
|
@param |
395 |
|
|
396 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
397 |
4 |
public void setColourScheme(final java.lang.String colourScheme)... |
398 |
|
{ |
399 |
4 |
this._colourScheme = colourScheme; |
400 |
|
} |
401 |
|
|
402 |
|
|
403 |
|
|
404 |
|
|
405 |
|
@param |
406 |
|
|
407 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
408 |
4 |
public void setMaxColour(final int maxColour)... |
409 |
|
{ |
410 |
4 |
this._maxColour = maxColour; |
411 |
4 |
this._has_maxColour = true; |
412 |
|
} |
413 |
|
|
414 |
|
|
415 |
|
|
416 |
|
|
417 |
|
@param |
418 |
|
|
419 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
420 |
4 |
public void setMinColour(final int minColour)... |
421 |
|
{ |
422 |
4 |
this._minColour = minColour; |
423 |
4 |
this._has_minColour = true; |
424 |
|
} |
425 |
|
|
426 |
|
|
427 |
|
|
428 |
|
|
429 |
|
@param |
430 |
|
|
431 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
432 |
4 |
public void setPerSequence(final boolean perSequence)... |
433 |
|
{ |
434 |
4 |
this._perSequence = perSequence; |
435 |
4 |
this._has_perSequence = true; |
436 |
|
} |
437 |
|
|
438 |
|
|
439 |
|
|
440 |
|
|
441 |
|
@param |
442 |
|
|
443 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
444 |
4 |
public void setPredefinedColours(final boolean predefinedColours)... |
445 |
|
{ |
446 |
4 |
this._predefinedColours = predefinedColours; |
447 |
4 |
this._has_predefinedColours = true; |
448 |
|
} |
449 |
|
|
450 |
|
|
451 |
|
|
452 |
|
|
453 |
|
@param |
454 |
|
|
455 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
456 |
4 |
public void setThreshold(final float threshold)... |
457 |
|
{ |
458 |
4 |
this._threshold = threshold; |
459 |
4 |
this._has_threshold = true; |
460 |
|
} |
461 |
|
|
462 |
|
|
463 |
|
|
464 |
|
|
465 |
|
@param |
466 |
|
@throws |
467 |
|
|
468 |
|
|
469 |
|
@throws |
470 |
|
|
471 |
|
@return |
472 |
|
|
473 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
474 |
0 |
public static jalview.schemabinding.version2.AnnotationColourScheme unmarshal(... |
475 |
|
final java.io.Reader reader) |
476 |
|
throws org.exolab.castor.xml.MarshalException, |
477 |
|
org.exolab.castor.xml.ValidationException |
478 |
|
{ |
479 |
0 |
return (jalview.schemabinding.version2.AnnotationColourScheme) Unmarshaller |
480 |
|
.unmarshal( |
481 |
|
jalview.schemabinding.version2.AnnotationColourScheme.class, |
482 |
|
reader); |
483 |
|
} |
484 |
|
|
485 |
|
|
486 |
|
|
487 |
|
|
488 |
|
@throws |
489 |
|
|
490 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
491 |
0 |
public void validate() throws org.exolab.castor.xml.ValidationException... |
492 |
|
{ |
493 |
0 |
org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator(); |
494 |
0 |
validator.validate(this); |
495 |
|
} |
496 |
|
|
497 |
|
} |