| 1 |
|
|
| 2 |
|
|
| 3 |
|
|
| 4 |
|
|
| 5 |
|
|
| 6 |
|
|
| 7 |
|
|
| 8 |
|
|
| 9 |
|
|
| 10 |
|
|
| 11 |
|
|
| 12 |
|
|
| 13 |
|
|
| 14 |
|
|
| 15 |
|
|
| 16 |
|
|
| 17 |
|
|
| 18 |
|
|
| 19 |
|
|
| 20 |
|
|
| 21 |
|
package jalview.datamodel.annotations; |
| 22 |
|
|
| 23 |
|
import jalview.datamodel.Annotation; |
| 24 |
|
import jalview.structure.StructureImportSettings.TFType; |
| 25 |
|
|
| |
|
| 0% |
Uncovered Elements: 39 (39) |
Complexity: 18 |
Complexity Density: 0.86 |
|
| 26 |
|
public class AnnotationRowBuilder |
| 27 |
|
{ |
| 28 |
|
|
| 29 |
|
String name; |
| 30 |
|
|
| 31 |
|
boolean hasDescription = false; |
| 32 |
|
|
| 33 |
|
String description; |
| 34 |
|
|
| 35 |
|
boolean hasMinMax = false; |
| 36 |
|
|
| 37 |
|
|
| 38 |
|
|
| 39 |
|
|
| 40 |
|
|
| 41 |
|
private TFType tfType = null; |
| 42 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 43 |
0 |
public void setTFType(TFType t)... |
| 44 |
|
{ |
| 45 |
0 |
tfType = t; |
| 46 |
|
} |
| 47 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 48 |
0 |
public TFType getTFType()... |
| 49 |
|
{ |
| 50 |
0 |
return tfType; |
| 51 |
|
} |
| 52 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 53 |
0 |
public String getName()... |
| 54 |
|
{ |
| 55 |
0 |
return name; |
| 56 |
|
} |
| 57 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 58 |
0 |
public void setName(String name)... |
| 59 |
|
{ |
| 60 |
0 |
this.name = name; |
| 61 |
|
} |
| 62 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 63 |
0 |
public boolean isHasDescription()... |
| 64 |
|
{ |
| 65 |
0 |
return hasDescription; |
| 66 |
|
} |
| 67 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 68 |
0 |
public void setHasDescription(boolean hasDescription)... |
| 69 |
|
{ |
| 70 |
0 |
this.hasDescription = hasDescription; |
| 71 |
|
} |
| 72 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 73 |
0 |
public String getDescription()... |
| 74 |
|
{ |
| 75 |
0 |
return description; |
| 76 |
|
} |
| 77 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 78 |
0 |
public void setDescription(String description)... |
| 79 |
|
{ |
| 80 |
0 |
this.description = description; |
| 81 |
|
} |
| 82 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 83 |
0 |
public boolean isHasMinMax()... |
| 84 |
|
{ |
| 85 |
0 |
return hasMinMax; |
| 86 |
|
} |
| 87 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 88 |
0 |
public void setHasMinMax(boolean hasMinMax)... |
| 89 |
|
{ |
| 90 |
0 |
this.hasMinMax = hasMinMax; |
| 91 |
|
} |
| 92 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 93 |
0 |
public float getMin()... |
| 94 |
|
{ |
| 95 |
0 |
return min; |
| 96 |
|
} |
| 97 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 98 |
0 |
public void setMin(float min)... |
| 99 |
|
{ |
| 100 |
0 |
this.min = min; |
| 101 |
|
} |
| 102 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 103 |
0 |
public float getMax()... |
| 104 |
|
{ |
| 105 |
0 |
return max; |
| 106 |
|
} |
| 107 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 108 |
0 |
public void setMax(float max)... |
| 109 |
|
{ |
| 110 |
0 |
this.max = max; |
| 111 |
|
} |
| 112 |
|
|
| 113 |
|
float min, max; |
| 114 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 115 |
0 |
public AnnotationRowBuilder(String string)... |
| 116 |
|
{ |
| 117 |
0 |
name = string; |
| 118 |
|
} |
| 119 |
|
|
| |
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
| 120 |
0 |
public AnnotationRowBuilder(String name, float min, float max, TFType tft)... |
| 121 |
|
{ |
| 122 |
0 |
this(name, min, max); |
| 123 |
0 |
setTFType(tft); |
| 124 |
|
} |
| 125 |
|
|
| |
|
| 0% |
Uncovered Elements: 4 (4) |
Complexity: 1 |
Complexity Density: 0.25 |
|
| 126 |
0 |
public AnnotationRowBuilder(String name, float min, float max)... |
| 127 |
|
{ |
| 128 |
0 |
this(name); |
| 129 |
0 |
this.min = min; |
| 130 |
0 |
this.max = max; |
| 131 |
0 |
this.hasMinMax = true; |
| 132 |
|
} |
| 133 |
|
|
| 134 |
|
|
| 135 |
|
|
| 136 |
|
|
| 137 |
|
|
| 138 |
|
@param |
| 139 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 140 |
0 |
public void processAnnotation(Annotation annotation)... |
| 141 |
|
{ |
| 142 |
|
|
| 143 |
|
} |
| 144 |
|
} |