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