1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
|
21 |
|
package jalview.jbgui; |
22 |
|
|
23 |
|
import jalview.util.MessageManager; |
24 |
|
|
25 |
|
import java.awt.BorderLayout; |
26 |
|
import java.awt.event.ActionEvent; |
27 |
|
|
28 |
|
import javax.swing.JButton; |
29 |
|
import javax.swing.JPanel; |
30 |
|
import javax.swing.JScrollPane; |
31 |
|
import javax.swing.JTextArea; |
32 |
|
|
33 |
|
|
34 |
|
|
35 |
|
|
36 |
|
@author |
37 |
|
@version |
38 |
|
|
|
|
| 78.9% |
Uncovered Elements: 4 (19) |
Complexity: 5 |
Complexity Density: 0.33 |
|
39 |
|
public class GPairwiseAlignPanel extends JPanel |
40 |
|
{ |
41 |
|
protected JScrollPane scrollPane = new JScrollPane(); |
42 |
|
|
43 |
|
protected JTextArea textarea = new JTextArea(); |
44 |
|
|
45 |
|
protected JButton viewInEditorButton = new JButton(); |
46 |
|
|
47 |
|
JPanel jPanel1 = new JPanel(); |
48 |
|
|
49 |
|
BorderLayout borderLayout1 = new BorderLayout(); |
50 |
|
|
51 |
|
|
52 |
|
|
53 |
|
|
|
|
| 66.7% |
Uncovered Elements: 1 (3) |
Complexity: 2 |
Complexity Density: 0.67 |
|
54 |
2 |
public GPairwiseAlignPanel()... |
55 |
|
{ |
56 |
2 |
try |
57 |
|
{ |
58 |
2 |
jbInit(); |
59 |
|
} catch (Exception e) |
60 |
|
{ |
61 |
0 |
e.printStackTrace(); |
62 |
|
} |
63 |
|
} |
64 |
|
|
65 |
|
|
66 |
|
|
67 |
|
|
68 |
|
@throws |
69 |
|
|
70 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (11) |
Complexity: 1 |
Complexity Density: 0.09 |
|
71 |
2 |
private void jbInit() throws Exception... |
72 |
|
{ |
73 |
2 |
this.setLayout(borderLayout1); |
74 |
2 |
textarea.setFont(new java.awt.Font("Monospaced", 0, 12)); |
75 |
2 |
textarea.setText(""); |
76 |
2 |
textarea.setWrapStyleWord(false); |
77 |
2 |
viewInEditorButton.setFont(new java.awt.Font("Verdana", 0, 12)); |
78 |
2 |
viewInEditorButton.setText( |
79 |
|
MessageManager.getString("label.view_alignment_editor")); |
80 |
2 |
viewInEditorButton.addActionListener(new java.awt.event.ActionListener() |
81 |
|
{ |
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
82 |
0 |
public void actionPerformed(ActionEvent e)... |
83 |
|
{ |
84 |
0 |
viewInEditorButton_actionPerformed(e); |
85 |
|
} |
86 |
|
}); |
87 |
2 |
this.add(scrollPane, BorderLayout.CENTER); |
88 |
2 |
scrollPane.getViewport().add(textarea, null); |
89 |
2 |
this.add(jPanel1, BorderLayout.SOUTH); |
90 |
2 |
jPanel1.add(viewInEditorButton, null); |
91 |
|
} |
92 |
|
|
93 |
|
|
94 |
|
|
95 |
|
|
96 |
|
@param |
97 |
|
|
98 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
99 |
0 |
protected void viewInEditorButton_actionPerformed(ActionEvent e)... |
100 |
|
{ |
101 |
|
} |
102 |
|
} |