2 * Jalview - A Sequence Alignment Editor and Viewer
\r
3 * Copyright (C) 2005 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle
\r
5 * This program is free software; you can redistribute it and/or
\r
6 * modify it under the terms of the GNU General Public License
\r
7 * as published by the Free Software Foundation; either version 2
\r
8 * of the License, or (at your option) any later version.
\r
10 * This program is distributed in the hope that it will be useful,
\r
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
\r
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
\r
13 * GNU General Public License for more details.
\r
15 * You should have received a copy of the GNU General Public License
\r
16 * along with this program; if not, write to the Free Software
\r
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
\r
20 package jalview.jbappletgui;
\r
24 public class GAlignmentPanel extends Panel
\r
26 protected Panel sequenceHolderPanel = new Panel();
\r
27 protected Scrollbar vscroll = new Scrollbar();
\r
28 protected Scrollbar hscroll = new Scrollbar();
\r
29 protected Panel seqPanelHolder = new Panel();
\r
30 BorderLayout borderLayout1 = new BorderLayout();
\r
31 BorderLayout borderLayout3 = new BorderLayout();
\r
32 protected Panel scalePanelHolder = new Panel();
\r
33 protected Panel idPanelHolder = new Panel();
\r
34 BorderLayout borderLayout5 = new BorderLayout();
\r
35 protected Panel idSpaceFillerPanel1 = new Panel();
\r
36 public Panel annotationSpaceFillerHolder = new Panel();
\r
37 BorderLayout borderLayout6 = new BorderLayout();
\r
38 BorderLayout borderLayout7 = new BorderLayout();
\r
39 Panel hscrollHolder = new Panel();
\r
40 BorderLayout borderLayout10 = new BorderLayout();
\r
41 protected Panel hscrollFillerPanel = new Panel();
\r
42 BorderLayout borderLayout11 = new BorderLayout();
\r
43 public Panel annotationScroller = new Panel();
\r
44 BorderLayout borderLayout4 = new BorderLayout();
\r
45 BorderLayout borderLayout2 = new BorderLayout();
\r
47 public GAlignmentPanel()
\r
55 e.printStackTrace();
\r
58 private void jbInit() throws Exception
\r
60 // idPanelHolder.setPreferredSize(new Dimension(70, 10));
\r
61 this.setLayout(borderLayout7);
\r
62 // sequenceHolderPanel.setPreferredSize(new Dimension(150, 150));
\r
63 sequenceHolderPanel.setLayout(borderLayout3);
\r
64 seqPanelHolder.setLayout(borderLayout1);
\r
65 scalePanelHolder.setBackground(Color.white);
\r
66 // scalePanelHolder.setPreferredSize(new Dimension(10, 30));
\r
67 scalePanelHolder.setLayout(borderLayout6);
\r
68 idPanelHolder.setLayout(borderLayout5);
\r
69 idSpaceFillerPanel1.setBackground(Color.white);
\r
70 // idSpaceFillerPanel1.setPreferredSize(new Dimension(10, 30));
\r
71 idSpaceFillerPanel1.setLayout(borderLayout11);
\r
72 annotationSpaceFillerHolder.setBackground(Color.white);
\r
73 // annotationSpaceFillerHolder.setPreferredSize(new Dimension(10, 80));
\r
74 annotationSpaceFillerHolder.setLayout(borderLayout4);
\r
75 hscroll.setOrientation(Scrollbar.HORIZONTAL);
\r
76 hscrollHolder.setLayout(borderLayout10);
\r
77 hscrollFillerPanel.setBackground(Color.white);
\r
78 // hscrollFillerPanel.setPreferredSize(new Dimension(70, 10));
\r
79 hscrollHolder.setBackground(Color.white);
\r
80 // annotationScroller.setPreferredSize(new Dimension(10, 80));
\r
81 // this.setPreferredSize(new Dimension(220, 166));
\r
82 seqPanelHolder.setBackground(Color.white);
\r
83 idPanelHolder.setBackground(Color.white);
\r
84 annotationScroller.setLayout(borderLayout2);
\r
85 sequenceHolderPanel.add(scalePanelHolder, BorderLayout.NORTH);
\r
86 sequenceHolderPanel.add(seqPanelHolder, BorderLayout.CENTER);
\r
87 seqPanelHolder.add(vscroll, BorderLayout.EAST);
\r
88 sequenceHolderPanel.add(annotationScroller, BorderLayout.SOUTH);
\r
89 // Panel3.add(secondaryPanelHolder, BorderLayout.SOUTH);
\r
90 this.add(idPanelHolder, BorderLayout.WEST);
\r
91 idPanelHolder.add(idSpaceFillerPanel1, BorderLayout.NORTH);
\r
92 idPanelHolder.add(annotationSpaceFillerHolder, BorderLayout.SOUTH);
\r
93 this.add(hscrollHolder, BorderLayout.SOUTH);
\r
94 hscrollHolder.add(hscroll, BorderLayout.CENTER);
\r
95 hscrollHolder.add(hscrollFillerPanel, BorderLayout.WEST);
\r
96 this.add(sequenceHolderPanel, BorderLayout.CENTER);
\r