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