1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
|
21 |
|
package jalview.viewmodel.styles; |
22 |
|
|
23 |
|
import jalview.api.ViewStyleI; |
24 |
|
|
25 |
|
import java.awt.Color; |
26 |
|
|
27 |
|
|
28 |
|
|
29 |
|
|
30 |
|
|
31 |
|
|
32 |
|
|
33 |
|
@author |
34 |
|
|
35 |
|
|
|
|
| 88.6% |
Uncovered Elements: 28 (246) |
Complexity: 89 |
Complexity Density: 0.57 |
|
36 |
|
public class ViewStyle implements ViewStyleI |
37 |
|
{ |
38 |
|
private boolean abovePIDThreshold = false; |
39 |
|
|
40 |
|
int charHeight; |
41 |
|
|
42 |
|
int charWidth; |
43 |
|
|
44 |
|
int idWidth = -1; |
45 |
|
|
46 |
|
|
47 |
|
|
48 |
|
|
49 |
|
private boolean colourAppliesToAllGroups; |
50 |
|
|
51 |
|
|
52 |
|
|
53 |
|
|
54 |
|
boolean centreColumnLabels = false; |
55 |
|
|
56 |
|
private boolean showdbrefs; |
57 |
|
|
58 |
|
private boolean shownpfeats; |
59 |
|
|
60 |
|
|
61 |
|
|
62 |
|
|
63 |
|
|
64 |
|
|
65 |
|
private boolean colourByReferenceSeq = false; |
66 |
|
|
67 |
|
boolean conservationColourSelected = false; |
68 |
|
|
69 |
|
|
70 |
|
|
71 |
|
|
72 |
|
private boolean displayReferenceSeq = false; |
73 |
|
|
74 |
|
private int increment; |
75 |
|
|
76 |
|
|
77 |
|
|
78 |
|
|
79 |
|
boolean renderGaps = true; |
80 |
|
|
81 |
|
private boolean rightAlignIds = false; |
82 |
|
|
83 |
|
boolean scaleAboveWrapped = false; |
84 |
|
|
85 |
|
boolean scaleLeftWrapped = true; |
86 |
|
|
87 |
|
boolean scaleRightWrapped = true; |
88 |
|
|
89 |
|
boolean seqNameItalics; |
90 |
|
|
91 |
|
|
92 |
|
|
93 |
|
|
94 |
|
private boolean showAnnotation = true; |
95 |
|
|
96 |
|
|
97 |
|
|
98 |
|
|
99 |
|
boolean showBoxes = true; |
100 |
|
|
101 |
|
|
102 |
|
|
103 |
|
|
104 |
|
boolean showColourText = false; |
105 |
|
|
106 |
|
|
107 |
|
|
108 |
|
|
109 |
|
boolean showHiddenMarkers = true; |
110 |
|
|
111 |
|
|
112 |
|
|
113 |
|
|
114 |
|
boolean showJVSuffix = true; |
115 |
|
|
116 |
|
|
117 |
|
|
118 |
|
|
119 |
|
boolean showSeqFeaturesHeight; |
120 |
|
|
121 |
|
|
122 |
|
|
123 |
|
|
124 |
|
boolean showSequenceFeatures = false; |
125 |
|
|
126 |
|
|
127 |
|
|
128 |
|
|
129 |
|
boolean showText = true; |
130 |
|
|
131 |
|
|
132 |
|
|
133 |
|
|
134 |
|
protected boolean showUnconserved = false; |
135 |
|
|
136 |
|
Color textColour = Color.black; |
137 |
|
|
138 |
|
Color textColour2 = Color.white; |
139 |
|
|
140 |
|
|
141 |
|
|
142 |
|
|
143 |
|
int threshold; |
144 |
|
|
145 |
|
|
146 |
|
|
147 |
|
|
148 |
|
int thresholdTextColour = 0; |
149 |
|
|
150 |
|
|
151 |
|
|
152 |
|
|
153 |
|
boolean upperCasebold = false; |
154 |
|
|
155 |
|
|
156 |
|
|
157 |
|
|
158 |
|
private String fontName; |
159 |
|
|
160 |
|
|
161 |
|
|
162 |
|
|
163 |
|
private int fontSize; |
164 |
|
|
165 |
|
|
166 |
|
|
167 |
|
|
168 |
|
|
169 |
|
private boolean scaleProteinAsCdna = true; |
170 |
|
|
171 |
|
|
172 |
|
|
173 |
|
|
174 |
|
|
175 |
|
private boolean proteinFontAsCdna = true; |
176 |
|
|
177 |
|
|
178 |
|
|
179 |
|
|
180 |
|
@param |
181 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (41) |
Complexity: 1 |
Complexity Density: 0.02 |
|
182 |
172 |
public ViewStyle(ViewStyleI vs)... |
183 |
|
{ |
184 |
172 |
setAbovePIDThreshold(vs.getAbovePIDThreshold()); |
185 |
172 |
setCentreColumnLabels(vs.isCentreColumnLabels()); |
186 |
172 |
setCharHeight(vs.getCharHeight()); |
187 |
172 |
setCharWidth(vs.getCharWidth()); |
188 |
172 |
setColourAppliesToAllGroups(vs.getColourAppliesToAllGroups()); |
189 |
172 |
setColourByReferenceSeq(vs.isColourByReferenceSeq()); |
190 |
172 |
setColourText(vs.getColourText()); |
191 |
172 |
setConservationColourSelected(vs.isConservationColourSelected()); |
192 |
172 |
setConservationSelected(vs.getConservationSelected()); |
193 |
172 |
setDisplayReferenceSeq(vs.isDisplayReferenceSeq()); |
194 |
172 |
setFontName(vs.getFontName()); |
195 |
172 |
setFontSize(vs.getFontSize()); |
196 |
172 |
setFontStyle(vs.getFontStyle()); |
197 |
172 |
setIdWidth(vs.getIdWidth()); |
198 |
172 |
setIncrement(vs.getIncrement()); |
199 |
172 |
setRenderGaps(vs.isRenderGaps()); |
200 |
172 |
setRightAlignIds(vs.isRightAlignIds()); |
201 |
172 |
setScaleAboveWrapped(vs.getScaleAboveWrapped()); |
202 |
172 |
setScaleLeftWrapped(vs.getScaleLeftWrapped()); |
203 |
172 |
setScaleProteinAsCdna(vs.isScaleProteinAsCdna()); |
204 |
172 |
setProteinFontAsCdna(vs.isProteinFontAsCdna()); |
205 |
172 |
setScaleRightWrapped(vs.getScaleRightWrapped()); |
206 |
172 |
setSeqNameItalics(vs.isSeqNameItalics()); |
207 |
172 |
setShowAnnotation(vs.isShowAnnotation()); |
208 |
172 |
setShowBoxes(vs.getShowBoxes()); |
209 |
172 |
setShowColourText(vs.isShowColourText()); |
210 |
172 |
setShowDBRefs(vs.isShowDBRefs()); |
211 |
172 |
setShowHiddenMarkers(vs.getShowHiddenMarkers()); |
212 |
172 |
setShowJVSuffix(vs.getShowJVSuffix()); |
213 |
172 |
setShowNPFeats(vs.isShowNPFeats()); |
214 |
172 |
setShowSequenceFeaturesHeight(vs.isShowSequenceFeaturesHeight()); |
215 |
172 |
setShowSequenceFeatures(vs.isShowSequenceFeatures()); |
216 |
172 |
setShowText(vs.getShowText()); |
217 |
172 |
setShowUnconserved(vs.getShowUnconserved()); |
218 |
172 |
setTextColour(vs.getTextColour()); |
219 |
172 |
setTextColour2(vs.getTextColour2()); |
220 |
172 |
setThreshold(vs.getThreshold()); |
221 |
172 |
setThresholdTextColour(vs.getThresholdTextColour()); |
222 |
172 |
setUpperCasebold(vs.isUpperCasebold()); |
223 |
172 |
setWrapAlignment(vs.getWrapAlignment()); |
224 |
172 |
setWrappedWidth(vs.getWrappedWidth()); |
225 |
|
|
226 |
|
} |
227 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
228 |
246 |
public ViewStyle()... |
229 |
|
{ |
230 |
|
} |
231 |
|
|
232 |
|
|
233 |
|
|
234 |
|
|
|
|
| 80% |
Uncovered Elements: 2 (10) |
Complexity: 3 |
Complexity Density: 0.38 |
|
235 |
7 |
@Override... |
236 |
|
public boolean equals(Object other) |
237 |
|
{ |
238 |
5 |
if (other == null || !(other instanceof ViewStyle)) |
239 |
|
{ |
240 |
0 |
return false; |
241 |
|
} |
242 |
5 |
ViewStyle vs = (ViewStyle) other; |
243 |
|
|
244 |
5 |
boolean match = (getAbovePIDThreshold() == vs.getAbovePIDThreshold() |
245 |
|
&& isCentreColumnLabels() == vs.isCentreColumnLabels() |
246 |
|
&& getCharHeight() == vs.getCharHeight() |
247 |
|
&& getCharWidth() == vs.getCharWidth() |
248 |
|
&& getColourAppliesToAllGroups() == vs |
249 |
|
.getColourAppliesToAllGroups() |
250 |
|
&& isColourByReferenceSeq() == vs.isColourByReferenceSeq() |
251 |
|
&& getColourText() == vs.getColourText() |
252 |
|
&& isConservationColourSelected() == vs |
253 |
|
.isConservationColourSelected() |
254 |
|
&& getConservationSelected() == vs.getConservationSelected() |
255 |
|
&& isDisplayReferenceSeq() == vs.isDisplayReferenceSeq() |
256 |
|
&& getFontSize() == vs.getFontSize() |
257 |
|
&& getFontStyle() == vs.getFontStyle() |
258 |
|
&& getIdWidth() == vs.getIdWidth() |
259 |
|
&& getIncrement() == vs.getIncrement() |
260 |
|
&& isRenderGaps() == vs.isRenderGaps() |
261 |
|
&& isRightAlignIds() == vs.isRightAlignIds() |
262 |
|
&& getScaleAboveWrapped() == vs.getScaleAboveWrapped() |
263 |
|
&& getScaleLeftWrapped() == vs.getScaleLeftWrapped() |
264 |
|
&& isScaleProteinAsCdna() == vs.isScaleProteinAsCdna() |
265 |
|
&& isProteinFontAsCdna() == vs.isProteinFontAsCdna() |
266 |
|
&& getScaleRightWrapped() == vs.getScaleRightWrapped() |
267 |
|
&& isSeqNameItalics() == vs.isSeqNameItalics() |
268 |
|
&& isShowAnnotation() == vs.isShowAnnotation() |
269 |
|
&& getShowBoxes() == vs.getShowBoxes() |
270 |
|
&& isShowColourText() == vs.isShowColourText() |
271 |
|
&& isShowDBRefs() == vs.isShowDBRefs() |
272 |
|
&& getShowHiddenMarkers() == vs.getShowHiddenMarkers() |
273 |
|
&& getShowJVSuffix() == vs.getShowJVSuffix() |
274 |
|
&& isShowNPFeats() == vs.isShowNPFeats() |
275 |
|
&& isShowSequenceFeaturesHeight() == vs |
276 |
|
.isShowSequenceFeaturesHeight() |
277 |
|
&& isShowSequenceFeatures() == vs.isShowSequenceFeatures() |
278 |
|
&& getShowText() == vs.getShowText() |
279 |
|
&& getShowUnconserved() == vs.getShowUnconserved() |
280 |
|
&& getThreshold() == vs.getThreshold() |
281 |
|
&& getThresholdTextColour() == vs.getThresholdTextColour() |
282 |
|
&& isUpperCasebold() == vs.isUpperCasebold() |
283 |
|
&& getWrapAlignment() == vs.getWrapAlignment() |
284 |
|
&& getWrappedWidth() == vs.getWrappedWidth()); |
285 |
|
|
286 |
|
|
287 |
|
|
288 |
|
|
289 |
5 |
match = match && String.valueOf(getFontName()) |
290 |
|
.equals(String.valueOf(vs.getFontName())); |
291 |
5 |
match = match && String.valueOf(getTextColour()) |
292 |
|
.equals(String.valueOf(vs.getTextColour())); |
293 |
5 |
match = match && String.valueOf(getTextColour2()) |
294 |
|
.equals(String.valueOf(vs.getTextColour2())); |
295 |
5 |
return match; |
296 |
|
|
297 |
|
} |
298 |
|
|
299 |
|
|
300 |
|
|
301 |
|
|
302 |
|
|
|
|
| 0% |
Uncovered Elements: 25 (25) |
Complexity: 1 |
Complexity Density: 0.04 |
|
303 |
0 |
@Override... |
304 |
|
public int hashCode() |
305 |
|
{ |
306 |
|
|
307 |
|
|
308 |
|
|
309 |
0 |
int hash = 0; |
310 |
0 |
int m = 1; |
311 |
|
|
312 |
0 |
hash += m++ * Boolean.valueOf(this.abovePIDThreshold).hashCode(); |
313 |
0 |
hash += m++ * Boolean.valueOf(this.centreColumnLabels).hashCode(); |
314 |
0 |
hash += m++ * Boolean.valueOf(this.colourAppliesToAllGroups).hashCode(); |
315 |
0 |
hash += m++ * Boolean.valueOf(this.displayReferenceSeq).hashCode(); |
316 |
0 |
hash += m++ * Boolean.valueOf(this.renderGaps).hashCode(); |
317 |
0 |
hash += m++ * Boolean.valueOf(this.rightAlignIds).hashCode(); |
318 |
0 |
hash += m++ * Boolean.valueOf(this.scaleProteinAsCdna).hashCode(); |
319 |
0 |
hash += m++ * Boolean.valueOf(this.scaleRightWrapped).hashCode(); |
320 |
0 |
hash += m++ * Boolean.valueOf(this.seqNameItalics).hashCode(); |
321 |
0 |
hash += m++ * Boolean.valueOf(this.showAnnotation).hashCode(); |
322 |
0 |
hash += m++ * Boolean.valueOf(this.showBoxes).hashCode(); |
323 |
0 |
hash += m++ * Boolean.valueOf(this.showdbrefs).hashCode(); |
324 |
0 |
hash += m++ * Boolean.valueOf(this.showJVSuffix).hashCode(); |
325 |
0 |
hash += m++ * Boolean.valueOf(this.showSequenceFeatures).hashCode(); |
326 |
0 |
hash += m++ * Boolean.valueOf(this.showUnconserved).hashCode(); |
327 |
0 |
hash += m++ * Boolean.valueOf(this.wrapAlignment).hashCode(); |
328 |
0 |
hash += m++ * this.charHeight; |
329 |
0 |
hash += m++ * this.charWidth; |
330 |
0 |
hash += m++ * fontSize; |
331 |
0 |
hash += m++ * fontStyle; |
332 |
0 |
hash += m++ * idWidth; |
333 |
0 |
hash += String.valueOf(this.fontName).hashCode(); |
334 |
0 |
return hash; |
335 |
|
} |
336 |
|
|
337 |
|
|
338 |
|
@return |
339 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
340 |
178 |
@Override... |
341 |
|
public boolean isUpperCasebold() |
342 |
|
{ |
343 |
178 |
return upperCasebold; |
344 |
|
} |
345 |
|
|
346 |
|
|
347 |
|
@param |
348 |
|
|
349 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
350 |
172 |
@Override... |
351 |
|
public void setUpperCasebold(boolean upperCasebold) |
352 |
|
{ |
353 |
172 |
this.upperCasebold = upperCasebold; |
354 |
|
} |
355 |
|
|
356 |
|
|
357 |
|
|
358 |
|
|
359 |
|
boolean wrapAlignment = false; |
360 |
|
|
361 |
|
|
362 |
|
|
363 |
|
|
364 |
|
int wrappedWidth; |
365 |
|
|
366 |
|
private int fontStyle; |
367 |
|
|
368 |
|
|
369 |
|
|
370 |
|
|
371 |
|
@return |
372 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
373 |
729 |
@Override... |
374 |
|
public boolean getAbovePIDThreshold() |
375 |
|
{ |
376 |
729 |
return abovePIDThreshold; |
377 |
|
} |
378 |
|
|
379 |
|
|
380 |
|
|
381 |
|
|
382 |
|
@return |
383 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
384 |
70726 |
@Override... |
385 |
|
public int getCharHeight() |
386 |
|
{ |
387 |
70726 |
return charHeight; |
388 |
|
} |
389 |
|
|
390 |
|
|
391 |
|
|
392 |
|
|
393 |
|
@return |
394 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
395 |
745827 |
@Override... |
396 |
|
public int getCharWidth() |
397 |
|
{ |
398 |
745827 |
return charWidth; |
399 |
|
} |
400 |
|
|
401 |
|
|
402 |
|
|
403 |
|
|
404 |
|
@return |
405 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
406 |
765 |
@Override... |
407 |
|
public boolean getColourAppliesToAllGroups() |
408 |
|
{ |
409 |
765 |
return colourAppliesToAllGroups; |
410 |
|
} |
411 |
|
|
412 |
|
|
413 |
|
|
414 |
|
|
415 |
|
@return |
416 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
417 |
83746 |
@Override... |
418 |
|
public boolean getColourText() |
419 |
|
{ |
420 |
83746 |
return showColourText; |
421 |
|
} |
422 |
|
|
423 |
|
|
424 |
|
|
425 |
|
|
426 |
|
@return |
427 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
428 |
833 |
@Override... |
429 |
|
public boolean getConservationSelected() |
430 |
|
{ |
431 |
833 |
return conservationColourSelected; |
432 |
|
} |
433 |
|
|
434 |
|
|
435 |
|
|
436 |
|
|
437 |
|
@return |
438 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
439 |
178 |
@Override... |
440 |
|
public int getIncrement() |
441 |
|
{ |
442 |
178 |
return increment; |
443 |
|
} |
444 |
|
|
445 |
|
|
446 |
|
|
447 |
|
|
448 |
|
@return |
449 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
450 |
980 |
@Override... |
451 |
|
public boolean getScaleAboveWrapped() |
452 |
|
{ |
453 |
980 |
return scaleAboveWrapped; |
454 |
|
} |
455 |
|
|
456 |
|
|
457 |
|
|
458 |
|
|
459 |
|
@return |
460 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
461 |
840 |
@Override... |
462 |
|
public boolean getScaleLeftWrapped() |
463 |
|
{ |
464 |
840 |
return scaleLeftWrapped; |
465 |
|
} |
466 |
|
|
467 |
|
|
468 |
|
|
469 |
|
|
470 |
|
@return |
471 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
472 |
1186 |
@Override... |
473 |
|
public boolean getScaleRightWrapped() |
474 |
|
{ |
475 |
1186 |
return scaleRightWrapped; |
476 |
|
} |
477 |
|
|
478 |
|
|
479 |
|
|
480 |
|
|
481 |
|
@return |
482 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
483 |
87437 |
@Override... |
484 |
|
public boolean getShowBoxes() |
485 |
|
{ |
486 |
87437 |
return showBoxes; |
487 |
|
} |
488 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
489 |
1410 |
@Override... |
490 |
|
public boolean getShowHiddenMarkers() |
491 |
|
{ |
492 |
1410 |
return showHiddenMarkers; |
493 |
|
} |
494 |
|
|
495 |
|
|
496 |
|
|
497 |
|
|
498 |
|
@return |
499 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
500 |
9448 |
@Override... |
501 |
|
public boolean getShowJVSuffix() |
502 |
|
{ |
503 |
9448 |
return showJVSuffix; |
504 |
|
} |
505 |
|
|
506 |
|
|
507 |
|
|
508 |
|
|
509 |
|
@return |
510 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
511 |
84122 |
@Override... |
512 |
|
public boolean getShowText() |
513 |
|
{ |
514 |
84122 |
return showText; |
515 |
|
} |
516 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
517 |
82793 |
@Override... |
518 |
|
public boolean getShowUnconserved() |
519 |
|
{ |
520 |
82793 |
return showUnconserved; |
521 |
|
} |
522 |
|
|
523 |
|
|
524 |
|
@return |
525 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
526 |
354723 |
@Override... |
527 |
|
public Color getTextColour() |
528 |
|
{ |
529 |
354723 |
return textColour; |
530 |
|
} |
531 |
|
|
532 |
|
|
533 |
|
@return |
534 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
535 |
200 |
@Override... |
536 |
|
public Color getTextColour2() |
537 |
|
{ |
538 |
200 |
return textColour2; |
539 |
|
} |
540 |
|
|
541 |
|
|
542 |
|
|
543 |
|
|
544 |
|
@return |
545 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
546 |
178 |
@Override... |
547 |
|
public int getThreshold() |
548 |
|
{ |
549 |
178 |
return threshold; |
550 |
|
} |
551 |
|
|
552 |
|
|
553 |
|
@return |
554 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
555 |
83746 |
@Override... |
556 |
|
public int getThresholdTextColour() |
557 |
|
{ |
558 |
83746 |
return thresholdTextColour; |
559 |
|
} |
560 |
|
|
561 |
|
|
562 |
|
|
563 |
|
|
564 |
|
@return |
565 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
566 |
8745 |
@Override... |
567 |
|
public boolean getWrapAlignment() |
568 |
|
{ |
569 |
8745 |
return wrapAlignment; |
570 |
|
} |
571 |
|
|
572 |
|
|
573 |
|
|
574 |
|
|
575 |
|
@return |
576 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
577 |
178 |
@Override... |
578 |
|
public int getWrappedWidth() |
579 |
|
{ |
580 |
178 |
return wrappedWidth; |
581 |
|
} |
582 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
583 |
183 |
@Override... |
584 |
|
public boolean isColourByReferenceSeq() |
585 |
|
{ |
586 |
183 |
return colourByReferenceSeq; |
587 |
|
} |
588 |
|
|
589 |
|
|
590 |
|
@return |
591 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
592 |
251 |
@Override... |
593 |
|
public boolean isConservationColourSelected() |
594 |
|
{ |
595 |
251 |
return conservationColourSelected; |
596 |
|
} |
597 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
598 |
792 |
@Override... |
599 |
|
public boolean isDisplayReferenceSeq() |
600 |
|
{ |
601 |
792 |
return displayReferenceSeq; |
602 |
|
} |
603 |
|
|
604 |
|
|
605 |
|
@return |
606 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
607 |
1604 |
@Override... |
608 |
|
public boolean isRenderGaps() |
609 |
|
{ |
610 |
1604 |
return renderGaps; |
611 |
|
} |
612 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
613 |
7501 |
@Override... |
614 |
|
public boolean isRightAlignIds() |
615 |
|
{ |
616 |
7501 |
return rightAlignIds; |
617 |
|
} |
618 |
|
|
619 |
|
|
620 |
|
@return |
621 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
622 |
1157 |
@Override... |
623 |
|
public boolean isSeqNameItalics() |
624 |
|
{ |
625 |
1157 |
return seqNameItalics; |
626 |
|
} |
627 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
628 |
2297 |
@Override... |
629 |
|
public boolean isShowAnnotation() |
630 |
|
{ |
631 |
2297 |
return showAnnotation; |
632 |
|
} |
633 |
|
|
634 |
|
|
635 |
|
@return |
636 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
637 |
554 |
@Override... |
638 |
|
public boolean isShowColourText() |
639 |
|
{ |
640 |
554 |
return showColourText; |
641 |
|
} |
642 |
|
|
643 |
|
|
644 |
|
@return |
645 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
646 |
178 |
@Override... |
647 |
|
public boolean isShowSequenceFeaturesHeight() |
648 |
|
{ |
649 |
178 |
return showSeqFeaturesHeight; |
650 |
|
} |
651 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
652 |
10164 |
@Override... |
653 |
|
public boolean isShowSequenceFeatures() |
654 |
|
{ |
655 |
10164 |
return showSequenceFeatures; |
656 |
|
} |
657 |
|
|
658 |
|
|
659 |
|
|
660 |
|
|
661 |
|
|
662 |
|
@param |
663 |
|
|
664 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
665 |
253 |
@Override... |
666 |
|
public void setAbovePIDThreshold(boolean b) |
667 |
|
{ |
668 |
253 |
abovePIDThreshold = b; |
669 |
|
} |
670 |
|
|
671 |
|
|
672 |
|
|
673 |
|
|
674 |
|
@param |
675 |
|
|
676 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
677 |
491 |
@Override... |
678 |
|
public void setCharHeight(int h) |
679 |
|
{ |
680 |
491 |
this.charHeight = h; |
681 |
|
} |
682 |
|
|
683 |
|
|
684 |
|
|
685 |
|
|
686 |
|
@param |
687 |
|
|
688 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
689 |
491 |
@Override... |
690 |
|
public void setCharWidth(int w) |
691 |
|
{ |
692 |
491 |
this.charWidth = w; |
693 |
|
} |
694 |
|
|
695 |
|
|
696 |
|
@param |
697 |
|
|
698 |
|
|
699 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
700 |
319 |
@Override... |
701 |
|
public void setColourAppliesToAllGroups(boolean b) |
702 |
|
{ |
703 |
319 |
colourAppliesToAllGroups = b; |
704 |
|
} |
705 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
706 |
182 |
@Override... |
707 |
|
public void setColourByReferenceSeq(boolean colourByReferenceSeq) |
708 |
|
{ |
709 |
182 |
this.colourByReferenceSeq = colourByReferenceSeq; |
710 |
|
} |
711 |
|
|
712 |
|
|
713 |
|
|
714 |
|
|
715 |
|
@param |
716 |
|
|
717 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
718 |
244 |
@Override... |
719 |
|
public void setColourText(boolean state) |
720 |
|
{ |
721 |
244 |
showColourText = state; |
722 |
|
} |
723 |
|
|
724 |
|
|
725 |
|
@param |
726 |
|
|
727 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
728 |
172 |
@Override... |
729 |
|
public void setConservationColourSelected( |
730 |
|
boolean conservationColourSelected) |
731 |
|
{ |
732 |
172 |
this.conservationColourSelected = conservationColourSelected; |
733 |
|
} |
734 |
|
|
735 |
|
|
736 |
|
|
737 |
|
|
738 |
|
@param |
739 |
|
|
740 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
741 |
252 |
@Override... |
742 |
|
public void setConservationSelected(boolean b) |
743 |
|
{ |
744 |
252 |
conservationColourSelected = b; |
745 |
|
} |
746 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
747 |
182 |
@Override... |
748 |
|
public void setDisplayReferenceSeq(boolean displayReferenceSeq) |
749 |
|
{ |
750 |
182 |
this.displayReferenceSeq = displayReferenceSeq; |
751 |
|
} |
752 |
|
|
753 |
|
|
754 |
|
|
755 |
|
@param |
756 |
|
|
757 |
|
|
758 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
759 |
244 |
@Override... |
760 |
|
public void setIncrement(int inc) |
761 |
|
{ |
762 |
244 |
increment = inc; |
763 |
|
} |
764 |
|
|
765 |
|
|
766 |
|
|
767 |
|
|
768 |
|
@param |
769 |
|
|
770 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
771 |
244 |
@Override... |
772 |
|
public void setRenderGaps(boolean state) |
773 |
|
{ |
774 |
244 |
renderGaps = state; |
775 |
|
} |
776 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
777 |
488 |
@Override... |
778 |
|
public void setRightAlignIds(boolean rightAlignIds) |
779 |
|
{ |
780 |
488 |
this.rightAlignIds = rightAlignIds; |
781 |
|
} |
782 |
|
|
783 |
|
|
784 |
|
|
785 |
|
|
786 |
|
@param |
787 |
|
|
788 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
789 |
177 |
@Override... |
790 |
|
public void setScaleAboveWrapped(boolean b) |
791 |
|
{ |
792 |
177 |
scaleAboveWrapped = b; |
793 |
|
} |
794 |
|
|
795 |
|
|
796 |
|
|
797 |
|
|
798 |
|
@param |
799 |
|
|
800 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
801 |
177 |
@Override... |
802 |
|
public void setScaleLeftWrapped(boolean b) |
803 |
|
{ |
804 |
177 |
scaleLeftWrapped = b; |
805 |
|
} |
806 |
|
|
807 |
|
|
808 |
|
|
809 |
|
|
810 |
|
@param |
811 |
|
|
812 |
|
|
813 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
814 |
175 |
@Override... |
815 |
|
public void setScaleRightWrapped(boolean b) |
816 |
|
{ |
817 |
175 |
scaleRightWrapped = b; |
818 |
|
} |
819 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
820 |
416 |
@Override... |
821 |
|
public void setSeqNameItalics(boolean italics) |
822 |
|
{ |
823 |
416 |
seqNameItalics = italics; |
824 |
|
} |
825 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
826 |
563 |
@Override... |
827 |
|
public void setShowAnnotation(boolean b) |
828 |
|
{ |
829 |
563 |
showAnnotation = b; |
830 |
|
} |
831 |
|
|
832 |
|
|
833 |
|
|
834 |
|
|
835 |
|
@param |
836 |
|
|
837 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
838 |
244 |
@Override... |
839 |
|
public void setShowBoxes(boolean state) |
840 |
|
{ |
841 |
244 |
showBoxes = state; |
842 |
|
} |
843 |
|
|
844 |
|
|
845 |
|
@param |
846 |
|
|
847 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
848 |
172 |
@Override... |
849 |
|
public void setShowColourText(boolean showColourText) |
850 |
|
{ |
851 |
172 |
this.showColourText = showColourText; |
852 |
|
} |
853 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
854 |
172 |
@Override... |
855 |
|
public void setShowHiddenMarkers(boolean show) |
856 |
|
{ |
857 |
172 |
showHiddenMarkers = show; |
858 |
|
} |
859 |
|
|
860 |
|
|
861 |
|
|
862 |
|
|
863 |
|
@param |
864 |
|
|
865 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
866 |
488 |
@Override... |
867 |
|
public void setShowJVSuffix(boolean b) |
868 |
|
{ |
869 |
488 |
showJVSuffix = b; |
870 |
|
} |
871 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
872 |
172 |
@Override... |
873 |
|
public void setShowSequenceFeaturesHeight(boolean selected) |
874 |
|
{ |
875 |
172 |
showSeqFeaturesHeight = selected; |
876 |
|
|
877 |
|
} |
878 |
|
|
879 |
|
|
880 |
|
|
881 |
|
|
882 |
|
@param |
883 |
|
|
884 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
885 |
286 |
@Override... |
886 |
|
public void setShowSequenceFeatures(boolean b) |
887 |
|
{ |
888 |
286 |
showSequenceFeatures = b; |
889 |
|
} |
890 |
|
|
891 |
|
|
892 |
|
|
893 |
|
|
894 |
|
@param |
895 |
|
|
896 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
897 |
244 |
@Override... |
898 |
|
public void setShowText(boolean state) |
899 |
|
{ |
900 |
244 |
showText = state; |
901 |
|
} |
902 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
903 |
488 |
@Override... |
904 |
|
public void setShowUnconserved(boolean showunconserved) |
905 |
|
{ |
906 |
488 |
showUnconserved = showunconserved; |
907 |
|
} |
908 |
|
|
909 |
|
|
910 |
|
@param |
911 |
|
|
912 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
913 |
244 |
@Override... |
914 |
|
public void setTextColour(Color textColour) |
915 |
|
{ |
916 |
244 |
this.textColour = textColour; |
917 |
|
} |
918 |
|
|
919 |
|
|
920 |
|
@param |
921 |
|
|
922 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
923 |
244 |
@Override... |
924 |
|
public void setTextColour2(Color textColour2) |
925 |
|
{ |
926 |
244 |
this.textColour2 = textColour2; |
927 |
|
} |
928 |
|
|
929 |
|
|
930 |
|
|
931 |
|
|
932 |
|
@param |
933 |
|
|
934 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
935 |
265 |
@Override... |
936 |
|
public void setThreshold(int thresh) |
937 |
|
{ |
938 |
265 |
threshold = thresh; |
939 |
|
} |
940 |
|
|
941 |
|
|
942 |
|
@param |
943 |
|
|
944 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
945 |
244 |
@Override... |
946 |
|
public void setThresholdTextColour(int thresholdTextColour) |
947 |
|
{ |
948 |
244 |
this.thresholdTextColour = thresholdTextColour; |
949 |
|
} |
950 |
|
|
951 |
|
|
952 |
|
|
953 |
|
|
954 |
|
@param |
955 |
|
|
956 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
957 |
494 |
@Override... |
958 |
|
public void setWrapAlignment(boolean state) |
959 |
|
{ |
960 |
494 |
wrapAlignment = state; |
961 |
|
} |
962 |
|
|
963 |
|
|
964 |
|
|
965 |
|
|
966 |
|
@param |
967 |
|
|
968 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
969 |
323 |
@Override... |
970 |
|
public void setWrappedWidth(int w) |
971 |
|
{ |
972 |
323 |
this.wrappedWidth = w; |
973 |
|
} |
974 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
975 |
3 |
@Override... |
976 |
|
public boolean sameStyle(ViewStyleI that) |
977 |
|
{ |
978 |
3 |
return this.equals(that); |
979 |
|
} |
980 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
981 |
251 |
@Override... |
982 |
|
public String getFontName() |
983 |
|
{ |
984 |
251 |
return fontName; |
985 |
|
} |
986 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
987 |
251 |
@Override... |
988 |
|
public int getFontSize() |
989 |
|
{ |
990 |
251 |
return fontSize; |
991 |
|
} |
992 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
993 |
251 |
@Override... |
994 |
|
public int getFontStyle() |
995 |
|
{ |
996 |
251 |
return fontStyle; |
997 |
|
} |
998 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
999 |
564 |
@Override... |
1000 |
|
public void setFontName(String name) |
1001 |
|
{ |
1002 |
564 |
fontName = name; |
1003 |
|
} |
1004 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
1005 |
564 |
@Override... |
1006 |
|
public void setFontSize(int size) |
1007 |
|
{ |
1008 |
564 |
fontSize = size; |
1009 |
|
|
1010 |
|
} |
1011 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
1012 |
564 |
@Override... |
1013 |
|
public void setFontStyle(int style) |
1014 |
|
{ |
1015 |
564 |
fontStyle = style; |
1016 |
|
} |
1017 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
1018 |
1008 |
@Override... |
1019 |
|
public int getIdWidth() |
1020 |
|
{ |
1021 |
1008 |
return idWidth; |
1022 |
|
} |
1023 |
|
|
1024 |
|
|
1025 |
|
@param |
1026 |
|
|
1027 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
1028 |
360 |
@Override... |
1029 |
|
public void setIdWidth(int idWidth) |
1030 |
|
{ |
1031 |
360 |
this.idWidth = idWidth; |
1032 |
|
} |
1033 |
|
|
1034 |
|
|
1035 |
|
@return |
1036 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
1037 |
1478 |
@Override... |
1038 |
|
public boolean isCentreColumnLabels() |
1039 |
|
{ |
1040 |
1478 |
return centreColumnLabels; |
1041 |
|
} |
1042 |
|
|
1043 |
|
|
1044 |
|
@param |
1045 |
|
|
1046 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
1047 |
416 |
@Override... |
1048 |
|
public void setCentreColumnLabels(boolean centreColumnLabels) |
1049 |
|
{ |
1050 |
416 |
this.centreColumnLabels = centreColumnLabels; |
1051 |
|
} |
1052 |
|
|
1053 |
|
|
1054 |
|
@return |
1055 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
1056 |
576 |
@Override... |
1057 |
|
public boolean isShowDBRefs() |
1058 |
|
{ |
1059 |
576 |
return showdbrefs; |
1060 |
|
} |
1061 |
|
|
1062 |
|
|
1063 |
|
@param |
1064 |
|
|
1065 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
1066 |
488 |
@Override... |
1067 |
|
public void setShowDBRefs(boolean showdbrefs) |
1068 |
|
{ |
1069 |
488 |
this.showdbrefs = showdbrefs; |
1070 |
|
} |
1071 |
|
|
1072 |
|
|
1073 |
|
@return |
1074 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
1075 |
576 |
@Override... |
1076 |
|
public boolean isShowNPFeats() |
1077 |
|
{ |
1078 |
576 |
return shownpfeats; |
1079 |
|
} |
1080 |
|
|
1081 |
|
|
1082 |
|
@param |
1083 |
|
|
1084 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
1085 |
488 |
@Override... |
1086 |
|
public void setShowNPFeats(boolean shownpfeats) |
1087 |
|
{ |
1088 |
488 |
this.shownpfeats = shownpfeats; |
1089 |
|
} |
1090 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
1091 |
200 |
@Override... |
1092 |
|
public boolean isScaleProteinAsCdna() |
1093 |
|
{ |
1094 |
200 |
return this.scaleProteinAsCdna; |
1095 |
|
} |
1096 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
1097 |
488 |
@Override... |
1098 |
|
public void setScaleProteinAsCdna(boolean b) |
1099 |
|
{ |
1100 |
488 |
this.scaleProteinAsCdna = b; |
1101 |
|
} |
1102 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
1103 |
178 |
@Override... |
1104 |
|
public boolean isProteinFontAsCdna() |
1105 |
|
{ |
1106 |
178 |
return proteinFontAsCdna; |
1107 |
|
} |
1108 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
1109 |
172 |
@Override... |
1110 |
|
public void setProteinFontAsCdna(boolean b) |
1111 |
|
{ |
1112 |
172 |
proteinFontAsCdna = b; |
1113 |
|
} |
1114 |
|
} |