X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fjbgui%2FGTreePanel.java;h=a70920ce0fc8e407e85a8cac95e2cdc4cd1f6e6e;hb=d8d6f16acc71a3929e2fd8ae54a680618f9af8b6;hp=93bb850bbcabe53bca45524000b0724f29b5cdb7;hpb=99c58ee0ae2a848f982552e53feaf6d5cb9925e5;p=jalview.git diff --git a/src/jalview/jbgui/GTreePanel.java b/src/jalview/jbgui/GTreePanel.java index 93bb850..a70920c 100755 --- a/src/jalview/jbgui/GTreePanel.java +++ b/src/jalview/jbgui/GTreePanel.java @@ -1,47 +1,46 @@ /* -* Jalview - A Sequence Alignment Editor and Viewer -* Copyright (C) 2005 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle -* -* This program is free software; you can redistribute it and/or -* modify it under the terms of the GNU General Public License -* as published by the Free Software Foundation; either version 2 -* of the License, or (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; if not, write to the Free Software -* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA -*/ - + * Jalview - A Sequence Alignment Editor and Viewer + * Copyright (C) 2005 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA + */ package jalview.jbgui; import java.awt.*; -import javax.swing.*; import java.awt.event.*; +import javax.swing.*; -public class GTreePanel extends JInternalFrame +public class GTreePanel + extends JInternalFrame { BorderLayout borderLayout1 = new BorderLayout(); - protected JScrollPane scrollPane = new JScrollPane(); + public JScrollPane scrollPane = new JScrollPane(); JMenuBar jMenuBar1 = new JMenuBar(); JMenu jMenu1 = new JMenu(); JMenuItem saveAsNewick = new JMenuItem(); JMenuItem printMenu = new JMenuItem(); JMenu jMenu2 = new JMenu(); - protected JMenuItem fontSize = new JMenuItem(); - protected JCheckBoxMenuItem bootstrapMenu = new JCheckBoxMenuItem(); - protected JCheckBoxMenuItem distanceMenu = new JCheckBoxMenuItem(); - protected JCheckBoxMenuItem fitToWindow = new JCheckBoxMenuItem(); - protected JCheckBoxMenuItem placeholdersMenu = new JCheckBoxMenuItem(); + public JMenuItem font = new JMenuItem(); + public JCheckBoxMenuItem bootstrapMenu = new JCheckBoxMenuItem(); + public JCheckBoxMenuItem distanceMenu = new JCheckBoxMenuItem(); + public JCheckBoxMenuItem fitToWindow = new JCheckBoxMenuItem(); + public JCheckBoxMenuItem placeholdersMenu = new JCheckBoxMenuItem(); JMenuItem pngTree = new JMenuItem(); JMenuItem epsTree = new JMenuItem(); JMenu saveAsMenu = new JMenu(); JMenuItem textbox = new JMenuItem(); - public GTreePanel() { try @@ -49,13 +48,14 @@ public class GTreePanel extends JInternalFrame jbInit(); this.setJMenuBar(jMenuBar1); } - catch(Exception e) + catch (Exception e) { e.printStackTrace(); } - } - private void jbInit() throws Exception + + private void jbInit() + throws Exception { this.getContentPane().setLayout(borderLayout1); this.setBackground(Color.white); @@ -79,12 +79,12 @@ public class GTreePanel extends JInternalFrame } }); jMenu2.setText("View"); - fontSize.setText("Font Size - 12"); - fontSize.addActionListener(new java.awt.event.ActionListener() + font.setText("Font..."); + font.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(ActionEvent e) { - fontSize_actionPerformed(e); + font_actionPerformed(e); } }); bootstrapMenu.setText("Show Bootstrap Values"); @@ -154,7 +154,7 @@ public class GTreePanel extends JInternalFrame jMenu1.add(textbox); jMenu1.add(printMenu); jMenu2.add(fitToWindow); - jMenu2.add(fontSize); + jMenu2.add(font); jMenu2.add(distanceMenu); jMenu2.add(bootstrapMenu); jMenu2.add(placeholdersMenu); @@ -163,55 +163,48 @@ public class GTreePanel extends JInternalFrame saveAsMenu.add(pngTree); } - - protected void printMenu_actionPerformed(ActionEvent e) + public void printMenu_actionPerformed(ActionEvent e) { - } - protected void fontSize_actionPerformed(ActionEvent e) + public void font_actionPerformed(ActionEvent e) { - } - protected void distanceMenu_actionPerformed(ActionEvent e) + public void distanceMenu_actionPerformed(ActionEvent e) { - } - protected void bootstrapMenu_actionPerformed(ActionEvent e) + public void bootstrapMenu_actionPerformed(ActionEvent e) { - } - protected void fitToWindow_actionPerformed(ActionEvent e) + public void fitToWindow_actionPerformed(ActionEvent e) { - } - protected void pngTree_actionPerformed(ActionEvent e) + public void pngTree_actionPerformed(ActionEvent e) { - } - protected void epsTree_actionPerformed(ActionEvent e) + public void epsTree_actionPerformed(ActionEvent e) { - } - protected void saveAsNewick_actionPerformed(ActionEvent e) + public void saveAsNewick_actionPerformed(ActionEvent e) { - } - protected void placeholdersMenu_actionPerformed(ActionEvent e) + public void placeholdersMenu_actionPerformed(ActionEvent e) { - } public void textbox_actionPerformed(ActionEvent e) { - } + public void fullid_actionPerformed(ActionEvent e) + { + + } }