1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
|
21 |
|
package jalview.datamodel; |
22 |
|
|
23 |
|
import java.io.File; |
24 |
|
import java.util.ArrayList; |
25 |
|
import java.util.HashMap; |
26 |
|
import java.util.List; |
27 |
|
import java.util.Map; |
28 |
|
|
29 |
|
|
30 |
|
|
31 |
|
|
|
|
| 80% |
Uncovered Elements: 10 (50) |
Complexity: 21 |
Complexity Density: 0.72 |
|
32 |
|
public class StructureViewerModel |
33 |
|
{ |
34 |
|
private int x; |
35 |
|
|
36 |
|
private int y; |
37 |
|
|
38 |
|
private int width; |
39 |
|
|
40 |
|
private int height; |
41 |
|
|
42 |
|
private boolean alignWithPanel; |
43 |
|
|
44 |
|
private boolean colourWithAlignPanel; |
45 |
|
|
46 |
|
private boolean colourByViewer; |
47 |
|
|
48 |
|
private String stateData = ""; |
49 |
|
|
50 |
|
private String viewId; |
51 |
|
|
52 |
|
|
53 |
|
private String type; |
54 |
|
|
55 |
|
private Map<File, StructureData> fileData = new HashMap<File, StructureData>(); |
56 |
|
|
|
|
| 62.5% |
Uncovered Elements: 6 (16) |
Complexity: 7 |
Complexity Density: 0.78 |
|
57 |
|
public class StructureData |
58 |
|
{ |
59 |
|
private String filePath; |
60 |
|
|
61 |
|
private String pdbId; |
62 |
|
|
63 |
|
private List<SequenceI> seqList; |
64 |
|
|
65 |
|
|
66 |
|
|
67 |
|
|
68 |
|
|
69 |
|
|
70 |
|
@param |
71 |
|
@param |
72 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (3) |
Complexity: 1 |
Complexity Density: 0.33 |
|
73 |
40 |
public StructureData(String pdbFile, String id)... |
74 |
|
{ |
75 |
40 |
this.filePath = pdbFile; |
76 |
40 |
this.pdbId = id; |
77 |
40 |
this.seqList = new ArrayList<SequenceI>(); |
78 |
|
} |
79 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
80 |
47 |
public String getFilePath()... |
81 |
|
{ |
82 |
47 |
return filePath; |
83 |
|
} |
84 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
85 |
0 |
protected void setFilePath(String filePath)... |
86 |
|
{ |
87 |
0 |
this.filePath = filePath; |
88 |
|
} |
89 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
90 |
7 |
public String getPdbId()... |
91 |
|
{ |
92 |
7 |
return pdbId; |
93 |
|
} |
94 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
95 |
0 |
protected void setPdbId(String pdbId)... |
96 |
|
{ |
97 |
0 |
this.pdbId = pdbId; |
98 |
|
} |
99 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
100 |
200 |
public List<SequenceI> getSeqList()... |
101 |
|
{ |
102 |
200 |
return seqList; |
103 |
|
} |
104 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
105 |
0 |
protected void setSeqList(List<SequenceI> seqList)... |
106 |
|
{ |
107 |
0 |
this.seqList = seqList; |
108 |
|
} |
109 |
|
} |
110 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (9) |
Complexity: 1 |
Complexity Density: 0.11 |
|
111 |
40 |
public StructureViewerModel(int x, int y, int width, int height,... |
112 |
|
boolean alignWithPanel, boolean colourWithAlignPanel, |
113 |
|
boolean colourByViewer, String viewId, String type) |
114 |
|
{ |
115 |
40 |
this.x = x; |
116 |
40 |
this.y = y; |
117 |
40 |
this.width = width; |
118 |
40 |
this.height = height; |
119 |
40 |
this.alignWithPanel = alignWithPanel; |
120 |
40 |
this.colourWithAlignPanel = colourWithAlignPanel; |
121 |
40 |
this.colourByViewer = colourByViewer; |
122 |
40 |
this.viewId = viewId; |
123 |
40 |
this.type = type; |
124 |
|
} |
125 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
126 |
12 |
public int getX()... |
127 |
|
{ |
128 |
12 |
return x; |
129 |
|
} |
130 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
131 |
0 |
protected void setX(int x)... |
132 |
|
{ |
133 |
0 |
this.x = x; |
134 |
|
} |
135 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
136 |
12 |
public int getY()... |
137 |
|
{ |
138 |
12 |
return y; |
139 |
|
} |
140 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
141 |
0 |
protected void setY(int y)... |
142 |
|
{ |
143 |
0 |
this.y = y; |
144 |
|
} |
145 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
146 |
12 |
public int getWidth()... |
147 |
|
{ |
148 |
12 |
return width; |
149 |
|
} |
150 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
151 |
0 |
protected void setWidth(int width)... |
152 |
|
{ |
153 |
0 |
this.width = width; |
154 |
|
} |
155 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
156 |
12 |
public int getHeight()... |
157 |
|
{ |
158 |
12 |
return height; |
159 |
|
} |
160 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
161 |
0 |
public void setHeight(int height)... |
162 |
|
{ |
163 |
0 |
this.height = height; |
164 |
|
} |
165 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
166 |
120 |
public boolean isAlignWithPanel()... |
167 |
|
{ |
168 |
120 |
return alignWithPanel; |
169 |
|
} |
170 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
171 |
80 |
public void setAlignWithPanel(boolean alignWithPanel)... |
172 |
|
{ |
173 |
80 |
this.alignWithPanel = alignWithPanel; |
174 |
|
} |
175 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
176 |
120 |
public boolean isColourWithAlignPanel()... |
177 |
|
{ |
178 |
120 |
return colourWithAlignPanel; |
179 |
|
} |
180 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
181 |
80 |
public void setColourWithAlignPanel(boolean colourWithAlignPanel)... |
182 |
|
{ |
183 |
80 |
this.colourWithAlignPanel = colourWithAlignPanel; |
184 |
|
} |
185 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
186 |
120 |
public boolean isColourByViewer()... |
187 |
|
{ |
188 |
120 |
return colourByViewer; |
189 |
|
} |
190 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
191 |
80 |
public void setColourByViewer(boolean colourByViewer)... |
192 |
|
{ |
193 |
80 |
this.colourByViewer = colourByViewer; |
194 |
|
} |
195 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
196 |
87 |
public String getStateData()... |
197 |
|
{ |
198 |
87 |
return stateData; |
199 |
|
} |
200 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
201 |
30 |
public void setStateData(String stateData)... |
202 |
|
{ |
203 |
30 |
this.stateData = stateData; |
204 |
|
} |
205 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
206 |
167 |
public Map<File, StructureData> getFileData()... |
207 |
|
{ |
208 |
167 |
return fileData; |
209 |
|
} |
210 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
211 |
0 |
protected void setFileData(Map<File, StructureData> fileData)... |
212 |
|
{ |
213 |
0 |
this.fileData = fileData; |
214 |
|
} |
215 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
216 |
2 |
public String getViewId()... |
217 |
|
{ |
218 |
2 |
return this.viewId; |
219 |
|
} |
220 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
221 |
7 |
public String getType()... |
222 |
|
{ |
223 |
7 |
return this.type; |
224 |
|
} |
225 |
|
} |