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 java.awt.BorderLayout; |
24 |
|
import java.awt.Color; |
25 |
|
import java.awt.Dimension; |
26 |
|
|
27 |
|
import javax.swing.BorderFactory; |
28 |
|
import javax.swing.ButtonGroup; |
29 |
|
import javax.swing.JPanel; |
30 |
|
import javax.swing.JScrollBar; |
31 |
|
import javax.swing.JScrollPane; |
32 |
|
import javax.swing.border.Border; |
33 |
|
|
34 |
|
@SuppressWarnings("serial") |
|
|
| 94% |
Uncovered Elements: 3 (50) |
Complexity: 5 |
Complexity Density: 0.11 |
|
35 |
|
public class GAlignmentPanel extends JPanel |
36 |
|
{ |
37 |
|
protected JScrollBar vscroll = new JScrollBar(); |
38 |
|
|
39 |
|
protected JScrollBar hscroll = new JScrollBar(); |
40 |
|
|
41 |
|
BorderLayout borderLayout1 = new BorderLayout(); |
42 |
|
|
43 |
|
BorderLayout borderLayout3 = new BorderLayout(); |
44 |
|
|
45 |
|
BorderLayout borderLayout5 = new BorderLayout(); |
46 |
|
|
47 |
|
BorderLayout borderLayout6 = new BorderLayout(); |
48 |
|
|
49 |
|
ButtonGroup buttonGroup1 = new ButtonGroup(); |
50 |
|
|
51 |
|
BorderLayout borderLayout7 = new BorderLayout(); |
52 |
|
|
53 |
|
BorderLayout borderLayout10 = new BorderLayout(); |
54 |
|
|
55 |
|
BorderLayout borderLayout11 = new BorderLayout(); |
56 |
|
|
57 |
|
public JScrollPane annotationScroller = new JScrollPane(); |
58 |
|
|
59 |
|
Border border1; |
60 |
|
|
61 |
|
BorderLayout borderLayout4 = new BorderLayout(); |
62 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (3) |
Complexity: 1 |
Complexity Density: 0.33 |
|
63 |
1936 |
static JPanel newJPanel()... |
64 |
|
{ |
65 |
1936 |
JPanel p = new JPanel(); |
66 |
|
|
67 |
|
|
68 |
|
|
69 |
1936 |
p.setBackground(Color.white); |
70 |
1936 |
return p; |
71 |
|
} |
72 |
|
|
73 |
|
protected JPanel sequenceHolderPanel = newJPanel(); |
74 |
|
|
75 |
|
protected JPanel seqPanelHolder = newJPanel(); |
76 |
|
|
77 |
|
protected JPanel scalePanelHolder = newJPanel(); |
78 |
|
|
79 |
|
public JPanel idPanelHolder = newJPanel(); |
80 |
|
|
81 |
|
protected JPanel idSpaceFillerPanel1 = newJPanel(); |
82 |
|
|
83 |
|
public JPanel annotationSpaceFillerHolder = newJPanel(); |
84 |
|
|
85 |
|
protected JPanel hscrollFillerPanel = newJPanel(); |
86 |
|
|
87 |
|
JPanel hscrollHolder = newJPanel(); |
88 |
|
|
|
|
| 66.7% |
Uncovered Elements: 1 (3) |
Complexity: 2 |
Complexity Density: 0.67 |
|
89 |
242 |
public GAlignmentPanel()... |
90 |
|
{ |
91 |
242 |
try |
92 |
|
{ |
93 |
242 |
jbInit(); |
94 |
|
} catch (Exception e) |
95 |
|
{ |
96 |
0 |
e.printStackTrace(); |
97 |
|
} |
98 |
|
} |
99 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (39) |
Complexity: 1 |
Complexity Density: 0.03 |
|
100 |
242 |
private void jbInit() throws Exception... |
101 |
|
{ |
102 |
|
|
103 |
|
|
104 |
242 |
border1 = BorderFactory.createLineBorder(Color.gray, 1); |
105 |
242 |
idPanelHolder.setBorder(null); |
106 |
242 |
idPanelHolder.setPreferredSize(new Dimension(70, 10)); |
107 |
242 |
this.setLayout(borderLayout7); |
108 |
242 |
sequenceHolderPanel |
109 |
|
.setMaximumSize(new Dimension(2147483647, 2147483647)); |
110 |
242 |
sequenceHolderPanel.setMinimumSize(new Dimension(150, 150)); |
111 |
242 |
sequenceHolderPanel.setPreferredSize(new Dimension(150, 150)); |
112 |
242 |
sequenceHolderPanel.setLayout(borderLayout3); |
113 |
242 |
seqPanelHolder.setLayout(borderLayout1); |
114 |
242 |
scalePanelHolder.setBackground(Color.white); |
115 |
242 |
scalePanelHolder.setMinimumSize(new Dimension(10, 80)); |
116 |
242 |
scalePanelHolder.setPreferredSize(new Dimension(10, 30)); |
117 |
242 |
scalePanelHolder.setLayout(borderLayout6); |
118 |
242 |
idPanelHolder.setLayout(borderLayout5); |
119 |
242 |
idSpaceFillerPanel1.setBackground(Color.white); |
120 |
242 |
idSpaceFillerPanel1.setPreferredSize(new Dimension(10, 30)); |
121 |
242 |
idSpaceFillerPanel1.setLayout(borderLayout11); |
122 |
242 |
annotationSpaceFillerHolder.setBackground(Color.white); |
123 |
242 |
annotationSpaceFillerHolder.setPreferredSize(new Dimension(10, 80)); |
124 |
242 |
annotationSpaceFillerHolder.setLayout(borderLayout4); |
125 |
242 |
hscroll.setOrientation(JScrollBar.HORIZONTAL); |
126 |
242 |
hscrollHolder.setLayout(borderLayout10); |
127 |
242 |
hscrollFillerPanel.setBackground(Color.white); |
128 |
242 |
hscrollFillerPanel.setPreferredSize(new Dimension(70, 10)); |
129 |
242 |
hscrollHolder.setBackground(Color.white); |
130 |
242 |
annotationScroller.setBorder(null); |
131 |
242 |
annotationScroller.setPreferredSize(new Dimension(10, 80)); |
132 |
242 |
this.setPreferredSize(new Dimension(220, 166)); |
133 |
|
|
134 |
242 |
sequenceHolderPanel.add(scalePanelHolder, BorderLayout.NORTH); |
135 |
242 |
sequenceHolderPanel.add(seqPanelHolder, BorderLayout.CENTER); |
136 |
242 |
seqPanelHolder.add(vscroll, BorderLayout.EAST); |
137 |
242 |
sequenceHolderPanel.add(annotationScroller, BorderLayout.SOUTH); |
138 |
|
|
139 |
|
|
140 |
242 |
this.add(idPanelHolder, BorderLayout.WEST); |
141 |
242 |
idPanelHolder.add(idSpaceFillerPanel1, BorderLayout.NORTH); |
142 |
242 |
idPanelHolder.add(annotationSpaceFillerHolder, BorderLayout.SOUTH); |
143 |
242 |
this.add(hscrollHolder, BorderLayout.SOUTH); |
144 |
242 |
hscrollHolder.add(hscroll, BorderLayout.CENTER); |
145 |
242 |
hscrollHolder.add(hscrollFillerPanel, BorderLayout.WEST); |
146 |
242 |
this.add(sequenceHolderPanel, BorderLayout.CENTER); |
147 |
|
} |
148 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
149 |
0 |
public JPanel getIdSpaceFillerPanel1()... |
150 |
|
{ |
151 |
0 |
return idSpaceFillerPanel1; |
152 |
|
} |
153 |
|
} |