updated to jalview 2.1 and begun ArchiveClient/VamsasClient/VamsasStore updates.
[jalview.git] / src / jalview / jbgui / GTreePanel.java
1 /*
2  * Jalview - A Sequence Alignment Editor and Viewer
3  * Copyright (C) 2006 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle
4  *
5  * This program is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU General Public License
7  * as published by the Free Software Foundation; either version 2
8  * of the License, or (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
18  */
19 package jalview.jbgui;
20
21 import java.awt.*;
22 import java.awt.event.*;
23 import javax.swing.*;
24
25 public class GTreePanel
26     extends JInternalFrame
27 {
28   BorderLayout borderLayout1 = new BorderLayout();
29   public JScrollPane scrollPane = new JScrollPane();
30   JMenuBar jMenuBar1 = new JMenuBar();
31   JMenu jMenu1 = new JMenu();
32   JMenuItem saveAsNewick = new JMenuItem();
33   JMenuItem printMenu = new JMenuItem();
34   JMenu jMenu2 = new JMenu();
35   public JMenuItem font = new JMenuItem();
36   public JCheckBoxMenuItem bootstrapMenu = new JCheckBoxMenuItem();
37   public JCheckBoxMenuItem distanceMenu = new JCheckBoxMenuItem();
38   public JCheckBoxMenuItem fitToWindow = new JCheckBoxMenuItem();
39   public JCheckBoxMenuItem placeholdersMenu = new JCheckBoxMenuItem();
40   JMenuItem pngTree = new JMenuItem();
41   JMenuItem epsTree = new JMenuItem();
42   JMenu saveAsMenu = new JMenu();
43   JMenuItem textbox = new JMenuItem();
44   public JMenuItem originalSeqData = new JMenuItem();
45   public GTreePanel()
46   {
47     try
48     {
49       jbInit();
50       this.setJMenuBar(jMenuBar1);
51     }
52     catch (Exception e)
53     {
54       e.printStackTrace();
55     }
56   }
57
58   private void jbInit()
59       throws Exception
60   {
61     this.getContentPane().setLayout(borderLayout1);
62     this.setBackground(Color.white);
63     this.setFont(new java.awt.Font("Verdana", 0, 12));
64     scrollPane.setOpaque(false);
65     jMenu1.setText("File");
66     saveAsNewick.setText("Newick Format");
67     saveAsNewick.addActionListener(new ActionListener()
68     {
69       public void actionPerformed(ActionEvent e)
70       {
71         saveAsNewick_actionPerformed(e);
72       }
73     });
74     printMenu.setText("Print");
75     printMenu.addActionListener(new java.awt.event.ActionListener()
76     {
77       public void actionPerformed(ActionEvent e)
78       {
79         printMenu_actionPerformed(e);
80       }
81     });
82     jMenu2.setText("View");
83     font.setText("Font...");
84     font.addActionListener(new java.awt.event.ActionListener()
85     {
86       public void actionPerformed(ActionEvent e)
87       {
88         font_actionPerformed(e);
89       }
90     });
91     bootstrapMenu.setText("Show Bootstrap Values");
92     bootstrapMenu.addActionListener(new java.awt.event.ActionListener()
93     {
94       public void actionPerformed(ActionEvent e)
95       {
96         bootstrapMenu_actionPerformed(e);
97       }
98     });
99     distanceMenu.setText("Show Distances");
100     distanceMenu.addActionListener(new java.awt.event.ActionListener()
101     {
102       public void actionPerformed(ActionEvent e)
103       {
104         distanceMenu_actionPerformed(e);
105       }
106     });
107     fitToWindow.setSelected(true);
108     fitToWindow.setText("Fit To Window");
109     fitToWindow.addActionListener(new java.awt.event.ActionListener()
110     {
111       public void actionPerformed(ActionEvent e)
112       {
113         fitToWindow_actionPerformed(e);
114       }
115     });
116     epsTree.setText("EPS");
117     epsTree.addActionListener(new java.awt.event.ActionListener()
118     {
119       public void actionPerformed(ActionEvent e)
120       {
121         epsTree_actionPerformed(e);
122       }
123     });
124     pngTree.setText("PNG");
125     pngTree.addActionListener(new java.awt.event.ActionListener()
126     {
127       public void actionPerformed(ActionEvent e)
128       {
129         pngTree_actionPerformed(e);
130       }
131     });
132     saveAsMenu.setText("Save as");
133     placeholdersMenu.setToolTipText(
134         "Marks leaves of tree not associated with a sequence");
135     placeholdersMenu.setText("Mark Unlinked Leaves");
136     placeholdersMenu.addActionListener(new ActionListener()
137     {
138       public void actionPerformed(ActionEvent e)
139       {
140         placeholdersMenu_actionPerformed(e);
141       }
142     });
143     textbox.setText("Output to Textbox...");
144     textbox.addActionListener(new ActionListener()
145     {
146       public void actionPerformed(ActionEvent e)
147       {
148         textbox_actionPerformed(e);
149       }
150     });
151     originalSeqData.setText("Input Data...");
152     originalSeqData.addActionListener(new ActionListener()
153     {
154       public void actionPerformed(ActionEvent e)
155       {
156         originalSeqData_actionPerformed(e);
157       }
158     });
159     this.getContentPane().add(scrollPane, BorderLayout.CENTER);
160     jMenuBar1.add(jMenu1);
161     jMenuBar1.add(jMenu2);
162     jMenu1.add(saveAsMenu);
163     jMenu1.add(textbox);
164     jMenu1.add(printMenu);
165     jMenu1.add(originalSeqData);
166     jMenu2.add(fitToWindow);
167     jMenu2.add(font);
168     jMenu2.add(distanceMenu);
169     jMenu2.add(bootstrapMenu);
170     jMenu2.add(placeholdersMenu);
171     saveAsMenu.add(saveAsNewick);
172     saveAsMenu.add(epsTree);
173     saveAsMenu.add(pngTree);
174   }
175
176   public void printMenu_actionPerformed(ActionEvent e)
177   {
178   }
179
180   public void font_actionPerformed(ActionEvent e)
181   {
182   }
183
184   public void distanceMenu_actionPerformed(ActionEvent e)
185   {
186   }
187
188   public void bootstrapMenu_actionPerformed(ActionEvent e)
189   {
190   }
191
192   public void fitToWindow_actionPerformed(ActionEvent e)
193   {
194   }
195
196   public void pngTree_actionPerformed(ActionEvent e)
197   {
198   }
199
200   public void epsTree_actionPerformed(ActionEvent e)
201   {
202   }
203
204   public void saveAsNewick_actionPerformed(ActionEvent e)
205   {
206   }
207
208   public void placeholdersMenu_actionPerformed(ActionEvent e)
209   {
210   }
211
212   public void textbox_actionPerformed(ActionEvent e)
213   {
214   }
215
216   public void fullid_actionPerformed(ActionEvent e)
217   {
218
219   }
220
221   public void originalSeqData_actionPerformed(ActionEvent e)
222   {
223
224   }
225 }