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 |
|
|
|
|
| 59.1% |
Uncovered Elements: 70 (171) |
Complexity: 74 |
Complexity Density: 0.78 |
|
22 |
|
public class Setting implements java.io.Serializable |
23 |
|
{ |
24 |
|
|
25 |
|
|
26 |
|
|
27 |
|
|
28 |
|
|
29 |
|
|
30 |
|
|
31 |
|
|
32 |
|
private java.lang.String _type; |
33 |
|
|
34 |
|
|
35 |
|
|
36 |
|
|
37 |
|
private int _colour; |
38 |
|
|
39 |
|
|
40 |
|
|
41 |
|
|
42 |
|
private boolean _has_colour; |
43 |
|
|
44 |
|
|
45 |
|
|
46 |
|
|
47 |
|
private boolean _display; |
48 |
|
|
49 |
|
|
50 |
|
|
51 |
|
|
52 |
|
private boolean _has_display; |
53 |
|
|
54 |
|
|
55 |
|
|
56 |
|
|
57 |
|
private float _order; |
58 |
|
|
59 |
|
|
60 |
|
|
61 |
|
|
62 |
|
private boolean _has_order; |
63 |
|
|
64 |
|
|
65 |
|
|
66 |
|
|
67 |
|
|
68 |
|
private int _mincolour; |
69 |
|
|
70 |
|
|
71 |
|
|
72 |
|
|
73 |
|
private boolean _has_mincolour; |
74 |
|
|
75 |
|
|
76 |
|
|
77 |
|
|
78 |
|
private jalview.schemabinding.version2.types.NoValueColour _noValueColour = jalview.schemabinding.version2.types.NoValueColour |
79 |
|
.valueOf("Min"); |
80 |
|
|
81 |
|
|
82 |
|
|
83 |
|
|
84 |
|
|
85 |
|
private float _threshold; |
86 |
|
|
87 |
|
|
88 |
|
|
89 |
|
|
90 |
|
private boolean _has_threshold; |
91 |
|
|
92 |
|
|
93 |
|
|
94 |
|
|
95 |
|
|
96 |
|
private int _threshstate; |
97 |
|
|
98 |
|
|
99 |
|
|
100 |
|
|
101 |
|
private boolean _has_threshstate; |
102 |
|
|
103 |
|
|
104 |
|
|
105 |
|
|
106 |
|
private float _max; |
107 |
|
|
108 |
|
|
109 |
|
|
110 |
|
|
111 |
|
private boolean _has_max; |
112 |
|
|
113 |
|
|
114 |
|
|
115 |
|
|
116 |
|
private float _min; |
117 |
|
|
118 |
|
|
119 |
|
|
120 |
|
|
121 |
|
private boolean _has_min; |
122 |
|
|
123 |
|
|
124 |
|
|
125 |
|
|
126 |
|
private boolean _colourByLabel; |
127 |
|
|
128 |
|
|
129 |
|
|
130 |
|
|
131 |
|
private boolean _has_colourByLabel; |
132 |
|
|
133 |
|
|
134 |
|
|
135 |
|
|
136 |
|
private boolean _autoScale; |
137 |
|
|
138 |
|
|
139 |
|
|
140 |
|
|
141 |
|
private boolean _has_autoScale; |
142 |
|
|
143 |
|
|
144 |
|
|
145 |
|
|
146 |
|
private java.util.Vector _attributeNameList; |
147 |
|
|
148 |
|
|
149 |
|
|
150 |
|
|
151 |
|
private jalview.schemabinding.version2.MatcherSet _matcherSet; |
152 |
|
|
153 |
|
|
154 |
|
|
155 |
|
|
156 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (3) |
Complexity: 1 |
Complexity Density: 0.33 |
|
157 |
1456 |
public Setting()... |
158 |
|
{ |
159 |
1456 |
super(); |
160 |
1456 |
setNoValueColour(jalview.schemabinding.version2.types.NoValueColour |
161 |
|
.valueOf("Min")); |
162 |
1456 |
this._attributeNameList = new java.util.Vector(); |
163 |
|
} |
164 |
|
|
165 |
|
|
166 |
|
|
167 |
|
|
168 |
|
|
169 |
|
|
170 |
|
|
171 |
|
|
172 |
|
@param |
173 |
|
@throws |
174 |
|
|
175 |
|
|
|
|
| 60% |
Uncovered Elements: 2 (5) |
Complexity: 2 |
Complexity Density: 0.67 |
|
176 |
3 |
public void addAttributeName(final java.lang.String vAttributeName)... |
177 |
|
throws java.lang.IndexOutOfBoundsException |
178 |
|
{ |
179 |
|
|
180 |
3 |
if (this._attributeNameList.size() >= 2) |
181 |
|
{ |
182 |
0 |
throw new IndexOutOfBoundsException( |
183 |
|
"addAttributeName has a maximum of 2"); |
184 |
|
} |
185 |
|
|
186 |
3 |
this._attributeNameList.addElement(vAttributeName); |
187 |
|
} |
188 |
|
|
189 |
|
|
190 |
|
|
191 |
|
|
192 |
|
@param |
193 |
|
@param |
194 |
|
@throws |
195 |
|
|
196 |
|
|
|
|
| 0% |
Uncovered Elements: 5 (5) |
Complexity: 2 |
Complexity Density: 0.67 |
|
197 |
0 |
public void addAttributeName(final int index,... |
198 |
|
final java.lang.String vAttributeName) |
199 |
|
throws java.lang.IndexOutOfBoundsException |
200 |
|
{ |
201 |
|
|
202 |
0 |
if (this._attributeNameList.size() >= 2) |
203 |
|
{ |
204 |
0 |
throw new IndexOutOfBoundsException( |
205 |
|
"addAttributeName has a maximum of 2"); |
206 |
|
} |
207 |
|
|
208 |
0 |
this._attributeNameList.add(index, vAttributeName); |
209 |
|
} |
210 |
|
|
211 |
|
|
212 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
213 |
0 |
public void deleteAutoScale()... |
214 |
|
{ |
215 |
0 |
this._has_autoScale = false; |
216 |
|
} |
217 |
|
|
218 |
|
|
219 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
220 |
0 |
public void deleteColour()... |
221 |
|
{ |
222 |
0 |
this._has_colour = false; |
223 |
|
} |
224 |
|
|
225 |
|
|
226 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
227 |
0 |
public void deleteColourByLabel()... |
228 |
|
{ |
229 |
0 |
this._has_colourByLabel = false; |
230 |
|
} |
231 |
|
|
232 |
|
|
233 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
234 |
0 |
public void deleteDisplay()... |
235 |
|
{ |
236 |
0 |
this._has_display = false; |
237 |
|
} |
238 |
|
|
239 |
|
|
240 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
241 |
0 |
public void deleteMax()... |
242 |
|
{ |
243 |
0 |
this._has_max = false; |
244 |
|
} |
245 |
|
|
246 |
|
|
247 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
248 |
0 |
public void deleteMin()... |
249 |
|
{ |
250 |
0 |
this._has_min = false; |
251 |
|
} |
252 |
|
|
253 |
|
|
254 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
255 |
0 |
public void deleteMincolour()... |
256 |
|
{ |
257 |
0 |
this._has_mincolour = false; |
258 |
|
} |
259 |
|
|
260 |
|
|
261 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
262 |
0 |
public void deleteOrder()... |
263 |
|
{ |
264 |
0 |
this._has_order = false; |
265 |
|
} |
266 |
|
|
267 |
|
|
268 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
269 |
0 |
public void deleteThreshold()... |
270 |
|
{ |
271 |
0 |
this._has_threshold = false; |
272 |
|
} |
273 |
|
|
274 |
|
|
275 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
276 |
0 |
public void deleteThreshstate()... |
277 |
|
{ |
278 |
0 |
this._has_threshstate = false; |
279 |
|
} |
280 |
|
|
281 |
|
|
282 |
|
|
283 |
|
|
284 |
|
@return |
285 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
286 |
0 |
public java.util.Enumeration enumerateAttributeName()... |
287 |
|
{ |
288 |
0 |
return this._attributeNameList.elements(); |
289 |
|
} |
290 |
|
|
291 |
|
|
292 |
|
|
293 |
|
|
294 |
|
@param |
295 |
|
@throws |
296 |
|
|
297 |
|
@return |
298 |
|
|
|
|
| 0% |
Uncovered Elements: 5 (5) |
Complexity: 3 |
Complexity Density: 1 |
|
299 |
0 |
public java.lang.String getAttributeName(final int index)... |
300 |
|
throws java.lang.IndexOutOfBoundsException |
301 |
|
{ |
302 |
|
|
303 |
0 |
if (index < 0 || index >= this._attributeNameList.size()) |
304 |
|
{ |
305 |
0 |
throw new IndexOutOfBoundsException("getAttributeName: Index value '" |
306 |
|
+ index + "' not in range [0.." |
307 |
|
+ (this._attributeNameList.size() - 1) + "]"); |
308 |
|
} |
309 |
|
|
310 |
0 |
return (java.lang.String) _attributeNameList.get(index); |
311 |
|
} |
312 |
|
|
313 |
|
|
314 |
|
|
315 |
|
|
316 |
|
|
317 |
|
|
318 |
|
|
319 |
|
|
320 |
|
@return |
321 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
322 |
428 |
public java.lang.String[] getAttributeName()... |
323 |
|
{ |
324 |
428 |
java.lang.String[] array = new java.lang.String[0]; |
325 |
428 |
return (java.lang.String[]) this._attributeNameList.toArray(array); |
326 |
|
} |
327 |
|
|
328 |
|
|
329 |
|
|
330 |
|
|
331 |
|
@return |
332 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
333 |
4 |
public int getAttributeNameCount()... |
334 |
|
{ |
335 |
4 |
return this._attributeNameList.size(); |
336 |
|
} |
337 |
|
|
338 |
|
|
339 |
|
|
340 |
|
|
341 |
|
@return |
342 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
343 |
12 |
public boolean getAutoScale()... |
344 |
|
{ |
345 |
12 |
return this._autoScale; |
346 |
|
} |
347 |
|
|
348 |
|
|
349 |
|
|
350 |
|
|
351 |
|
@return |
352 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
353 |
1669 |
public int getColour()... |
354 |
|
{ |
355 |
1669 |
return this._colour; |
356 |
|
} |
357 |
|
|
358 |
|
|
359 |
|
|
360 |
|
|
361 |
|
@return |
362 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
363 |
12 |
public boolean getColourByLabel()... |
364 |
|
{ |
365 |
12 |
return this._colourByLabel; |
366 |
|
} |
367 |
|
|
368 |
|
|
369 |
|
|
370 |
|
|
371 |
|
@return |
372 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
373 |
1669 |
public boolean getDisplay()... |
374 |
|
{ |
375 |
1669 |
return this._display; |
376 |
|
} |
377 |
|
|
378 |
|
|
379 |
|
|
380 |
|
|
381 |
|
|
382 |
|
@return |
383 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
384 |
1669 |
public jalview.schemabinding.version2.MatcherSet getMatcherSet()... |
385 |
|
{ |
386 |
1669 |
return this._matcherSet; |
387 |
|
} |
388 |
|
|
389 |
|
|
390 |
|
|
391 |
|
|
392 |
|
@return |
393 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
394 |
12 |
public float getMax()... |
395 |
|
{ |
396 |
12 |
return this._max; |
397 |
|
} |
398 |
|
|
399 |
|
|
400 |
|
|
401 |
|
|
402 |
|
@return |
403 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
404 |
12 |
public float getMin()... |
405 |
|
{ |
406 |
12 |
return this._min; |
407 |
|
} |
408 |
|
|
409 |
|
|
410 |
|
|
411 |
|
|
412 |
|
|
413 |
|
|
414 |
|
@return |
415 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
416 |
12 |
public int getMincolour()... |
417 |
|
{ |
418 |
12 |
return this._mincolour; |
419 |
|
} |
420 |
|
|
421 |
|
|
422 |
|
|
423 |
|
|
424 |
|
@return |
425 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
426 |
430 |
public jalview.schemabinding.version2.types.NoValueColour getNoValueColour()... |
427 |
|
{ |
428 |
430 |
return this._noValueColour; |
429 |
|
} |
430 |
|
|
431 |
|
|
432 |
|
|
433 |
|
|
434 |
|
@return |
435 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
436 |
1669 |
public float getOrder()... |
437 |
|
{ |
438 |
1669 |
return this._order; |
439 |
|
} |
440 |
|
|
441 |
|
|
442 |
|
|
443 |
|
|
444 |
|
|
445 |
|
|
446 |
|
@return |
447 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
448 |
12 |
public float getThreshold()... |
449 |
|
{ |
450 |
12 |
return this._threshold; |
451 |
|
} |
452 |
|
|
453 |
|
|
454 |
|
|
455 |
|
|
456 |
|
|
457 |
|
|
458 |
|
@return |
459 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
460 |
12 |
public int getThreshstate()... |
461 |
|
{ |
462 |
12 |
return this._threshstate; |
463 |
|
} |
464 |
|
|
465 |
|
|
466 |
|
|
467 |
|
|
468 |
|
@return |
469 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
470 |
1669 |
public java.lang.String getType()... |
471 |
|
{ |
472 |
1669 |
return this._type; |
473 |
|
} |
474 |
|
|
475 |
|
|
476 |
|
|
477 |
|
|
478 |
|
@return |
479 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
480 |
430 |
public boolean hasAutoScale()... |
481 |
|
{ |
482 |
430 |
return this._has_autoScale; |
483 |
|
} |
484 |
|
|
485 |
|
|
486 |
|
|
487 |
|
|
488 |
|
@return |
489 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
490 |
426 |
public boolean hasColour()... |
491 |
|
{ |
492 |
426 |
return this._has_colour; |
493 |
|
} |
494 |
|
|
495 |
|
|
496 |
|
|
497 |
|
|
498 |
|
@return |
499 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
500 |
430 |
public boolean hasColourByLabel()... |
501 |
|
{ |
502 |
430 |
return this._has_colourByLabel; |
503 |
|
} |
504 |
|
|
505 |
|
|
506 |
|
|
507 |
|
|
508 |
|
@return |
509 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
510 |
426 |
public boolean hasDisplay()... |
511 |
|
{ |
512 |
426 |
return this._has_display; |
513 |
|
} |
514 |
|
|
515 |
|
|
516 |
|
|
517 |
|
|
518 |
|
@return |
519 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
520 |
426 |
public boolean hasMax()... |
521 |
|
{ |
522 |
426 |
return this._has_max; |
523 |
|
} |
524 |
|
|
525 |
|
|
526 |
|
|
527 |
|
|
528 |
|
@return |
529 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
530 |
434 |
public boolean hasMin()... |
531 |
|
{ |
532 |
434 |
return this._has_min; |
533 |
|
} |
534 |
|
|
535 |
|
|
536 |
|
|
537 |
|
|
538 |
|
@return |
539 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
540 |
1669 |
public boolean hasMincolour()... |
541 |
|
{ |
542 |
1669 |
return this._has_mincolour; |
543 |
|
} |
544 |
|
|
545 |
|
|
546 |
|
|
547 |
|
|
548 |
|
@return |
549 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
550 |
1669 |
public boolean hasOrder()... |
551 |
|
{ |
552 |
1669 |
return this._has_order; |
553 |
|
} |
554 |
|
|
555 |
|
|
556 |
|
|
557 |
|
|
558 |
|
@return |
559 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
560 |
430 |
public boolean hasThreshold()... |
561 |
|
{ |
562 |
430 |
return this._has_threshold; |
563 |
|
} |
564 |
|
|
565 |
|
|
566 |
|
|
567 |
|
|
568 |
|
@return |
569 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
570 |
426 |
public boolean hasThreshstate()... |
571 |
|
{ |
572 |
426 |
return this._has_threshstate; |
573 |
|
} |
574 |
|
|
575 |
|
|
576 |
|
|
577 |
|
|
578 |
|
@return |
579 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
580 |
0 |
public boolean isAutoScale()... |
581 |
|
{ |
582 |
0 |
return this._autoScale; |
583 |
|
} |
584 |
|
|
585 |
|
|
586 |
|
|
587 |
|
|
588 |
|
@return |
589 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
590 |
0 |
public boolean isColourByLabel()... |
591 |
|
{ |
592 |
0 |
return this._colourByLabel; |
593 |
|
} |
594 |
|
|
595 |
|
|
596 |
|
|
597 |
|
|
598 |
|
@return |
599 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
600 |
0 |
public boolean isDisplay()... |
601 |
|
{ |
602 |
0 |
return this._display; |
603 |
|
} |
604 |
|
|
605 |
|
|
606 |
|
|
607 |
|
|
608 |
|
@return |
609 |
|
|
|
|
| 0% |
Uncovered Elements: 4 (4) |
Complexity: 2 |
Complexity Density: 0.5 |
|
610 |
0 |
public boolean isValid()... |
611 |
|
{ |
612 |
0 |
try |
613 |
|
{ |
614 |
0 |
validate(); |
615 |
|
} catch (org.exolab.castor.xml.ValidationException vex) |
616 |
|
{ |
617 |
0 |
return false; |
618 |
|
} |
619 |
0 |
return true; |
620 |
|
} |
621 |
|
|
622 |
|
|
623 |
|
|
624 |
|
|
625 |
|
@param |
626 |
|
@throws |
627 |
|
|
628 |
|
|
629 |
|
@throws |
630 |
|
|
631 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
632 |
0 |
public void marshal(final java.io.Writer out)... |
633 |
|
throws org.exolab.castor.xml.MarshalException, |
634 |
|
org.exolab.castor.xml.ValidationException |
635 |
|
{ |
636 |
0 |
Marshaller.marshal(this, out); |
637 |
|
} |
638 |
|
|
639 |
|
|
640 |
|
|
641 |
|
|
642 |
|
@param |
643 |
|
@throws |
644 |
|
|
645 |
|
@throws |
646 |
|
|
647 |
|
@throws |
648 |
|
|
649 |
|
|
650 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
651 |
0 |
public void marshal(final org.xml.sax.ContentHandler handler)... |
652 |
|
throws java.io.IOException, |
653 |
|
org.exolab.castor.xml.MarshalException, |
654 |
|
org.exolab.castor.xml.ValidationException |
655 |
|
{ |
656 |
0 |
Marshaller.marshal(this, handler); |
657 |
|
} |
658 |
|
|
659 |
|
|
660 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
661 |
0 |
public void removeAllAttributeName()... |
662 |
|
{ |
663 |
0 |
this._attributeNameList.clear(); |
664 |
|
} |
665 |
|
|
666 |
|
|
667 |
|
|
668 |
|
|
669 |
|
@param |
670 |
|
@return |
671 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
672 |
0 |
public boolean removeAttributeName(final java.lang.String vAttributeName)... |
673 |
|
{ |
674 |
0 |
boolean removed = _attributeNameList.remove(vAttributeName); |
675 |
0 |
return removed; |
676 |
|
} |
677 |
|
|
678 |
|
|
679 |
|
|
680 |
|
|
681 |
|
@param |
682 |
|
@return |
683 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
684 |
0 |
public java.lang.String removeAttributeNameAt(final int index)... |
685 |
|
{ |
686 |
0 |
java.lang.Object obj = this._attributeNameList.remove(index); |
687 |
0 |
return (java.lang.String) obj; |
688 |
|
} |
689 |
|
|
690 |
|
|
691 |
|
|
692 |
|
|
693 |
|
@param |
694 |
|
@param |
695 |
|
@throws |
696 |
|
|
697 |
|
|
|
|
| 0% |
Uncovered Elements: 5 (5) |
Complexity: 3 |
Complexity Density: 1 |
|
698 |
0 |
public void setAttributeName(final int index,... |
699 |
|
final java.lang.String vAttributeName) |
700 |
|
throws java.lang.IndexOutOfBoundsException |
701 |
|
{ |
702 |
|
|
703 |
0 |
if (index < 0 || index >= this._attributeNameList.size()) |
704 |
|
{ |
705 |
0 |
throw new IndexOutOfBoundsException("setAttributeName: Index value '" |
706 |
|
+ index + "' not in range [0.." |
707 |
|
+ (this._attributeNameList.size() - 1) + "]"); |
708 |
|
} |
709 |
|
|
710 |
0 |
this._attributeNameList.set(index, vAttributeName); |
711 |
|
} |
712 |
|
|
713 |
|
|
714 |
|
|
715 |
|
|
716 |
|
@param |
717 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (5) |
Complexity: 2 |
Complexity Density: 0.67 |
|
718 |
2 |
public void setAttributeName(final java.lang.String[] vAttributeNameArray)... |
719 |
|
{ |
720 |
|
|
721 |
2 |
_attributeNameList.clear(); |
722 |
|
|
723 |
5 |
for (int i = 0; i < vAttributeNameArray.length; i++) |
724 |
|
{ |
725 |
3 |
this._attributeNameList.add(vAttributeNameArray[i]); |
726 |
|
} |
727 |
|
} |
728 |
|
|
729 |
|
|
730 |
|
|
731 |
|
|
732 |
|
@param |
733 |
|
|
734 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
735 |
8 |
public void setAutoScale(final boolean autoScale)... |
736 |
|
{ |
737 |
8 |
this._autoScale = autoScale; |
738 |
8 |
this._has_autoScale = true; |
739 |
|
} |
740 |
|
|
741 |
|
|
742 |
|
|
743 |
|
|
744 |
|
@param |
745 |
|
|
746 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
747 |
1456 |
public void setColour(final int colour)... |
748 |
|
{ |
749 |
1456 |
this._colour = colour; |
750 |
1456 |
this._has_colour = true; |
751 |
|
} |
752 |
|
|
753 |
|
|
754 |
|
|
755 |
|
|
756 |
|
@param |
757 |
|
|
758 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
759 |
8 |
public void setColourByLabel(final boolean colourByLabel)... |
760 |
|
{ |
761 |
8 |
this._colourByLabel = colourByLabel; |
762 |
8 |
this._has_colourByLabel = true; |
763 |
|
} |
764 |
|
|
765 |
|
|
766 |
|
|
767 |
|
|
768 |
|
@param |
769 |
|
|
770 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
771 |
1456 |
public void setDisplay(final boolean display)... |
772 |
|
{ |
773 |
1456 |
this._display = display; |
774 |
1456 |
this._has_display = true; |
775 |
|
} |
776 |
|
|
777 |
|
|
778 |
|
|
779 |
|
|
780 |
|
|
781 |
|
@param |
782 |
|
|
783 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
784 |
6 |
public void setMatcherSet(... |
785 |
|
final jalview.schemabinding.version2.MatcherSet matcherSet) |
786 |
|
{ |
787 |
6 |
this._matcherSet = matcherSet; |
788 |
|
} |
789 |
|
|
790 |
|
|
791 |
|
|
792 |
|
|
793 |
|
@param |
794 |
|
|
795 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
796 |
8 |
public void setMax(final float max)... |
797 |
|
{ |
798 |
8 |
this._max = max; |
799 |
8 |
this._has_max = true; |
800 |
|
} |
801 |
|
|
802 |
|
|
803 |
|
|
804 |
|
|
805 |
|
@param |
806 |
|
|
807 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
808 |
8 |
public void setMin(final float min)... |
809 |
|
{ |
810 |
8 |
this._min = min; |
811 |
8 |
this._has_min = true; |
812 |
|
} |
813 |
|
|
814 |
|
|
815 |
|
|
816 |
|
|
817 |
|
|
818 |
|
|
819 |
|
@param |
820 |
|
|
821 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
822 |
8 |
public void setMincolour(final int mincolour)... |
823 |
|
{ |
824 |
8 |
this._mincolour = mincolour; |
825 |
8 |
this._has_mincolour = true; |
826 |
|
} |
827 |
|
|
828 |
|
|
829 |
|
|
830 |
|
|
831 |
|
@param |
832 |
|
|
833 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
834 |
1673 |
public void setNoValueColour(... |
835 |
|
final jalview.schemabinding.version2.types.NoValueColour noValueColour) |
836 |
|
{ |
837 |
1673 |
this._noValueColour = noValueColour; |
838 |
|
} |
839 |
|
|
840 |
|
|
841 |
|
|
842 |
|
|
843 |
|
@param |
844 |
|
|
845 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
846 |
1456 |
public void setOrder(final float order)... |
847 |
|
{ |
848 |
1456 |
this._order = order; |
849 |
1456 |
this._has_order = true; |
850 |
|
} |
851 |
|
|
852 |
|
|
853 |
|
|
854 |
|
|
855 |
|
|
856 |
|
|
857 |
|
@param |
858 |
|
|
859 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
860 |
8 |
public void setThreshold(final float threshold)... |
861 |
|
{ |
862 |
8 |
this._threshold = threshold; |
863 |
8 |
this._has_threshold = true; |
864 |
|
} |
865 |
|
|
866 |
|
|
867 |
|
|
868 |
|
|
869 |
|
|
870 |
|
|
871 |
|
@param |
872 |
|
|
873 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
874 |
8 |
public void setThreshstate(final int threshstate)... |
875 |
|
{ |
876 |
8 |
this._threshstate = threshstate; |
877 |
8 |
this._has_threshstate = true; |
878 |
|
} |
879 |
|
|
880 |
|
|
881 |
|
|
882 |
|
|
883 |
|
@param |
884 |
|
|
885 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
886 |
1456 |
public void setType(final java.lang.String type)... |
887 |
|
{ |
888 |
1456 |
this._type = type; |
889 |
|
} |
890 |
|
|
891 |
|
|
892 |
|
|
893 |
|
|
894 |
|
@param |
895 |
|
@throws |
896 |
|
|
897 |
|
|
898 |
|
@throws |
899 |
|
|
900 |
|
@return |
901 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
902 |
0 |
public static jalview.schemabinding.version2.Setting unmarshal(... |
903 |
|
final java.io.Reader reader) |
904 |
|
throws org.exolab.castor.xml.MarshalException, |
905 |
|
org.exolab.castor.xml.ValidationException |
906 |
|
{ |
907 |
0 |
return (jalview.schemabinding.version2.Setting) Unmarshaller.unmarshal( |
908 |
|
jalview.schemabinding.version2.Setting.class, reader); |
909 |
|
} |
910 |
|
|
911 |
|
|
912 |
|
|
913 |
|
|
914 |
|
@throws |
915 |
|
|
916 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
917 |
0 |
public void validate() throws org.exolab.castor.xml.ValidationException... |
918 |
|
{ |
919 |
0 |
org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator(); |
920 |
0 |
validator.validate(this); |
921 |
|
} |
922 |
|
|
923 |
|
} |