-package jalview.jbappletgui;
-
-import java.awt.*;
-import java.awt.event.*;
-
-public class GTreePanel extends Frame
-{
- BorderLayout borderLayout1 = new BorderLayout();
- protected ScrollPane scrollPane = new ScrollPane();
- MenuBar jMenuBar1 = new MenuBar();
- Menu jMenu2 = new Menu();
- protected MenuItem fontSize = new MenuItem();
- protected CheckboxMenuItem bootstrapMenu = new CheckboxMenuItem();
- protected CheckboxMenuItem distanceMenu = new CheckboxMenuItem();
- protected CheckboxMenuItem placeholdersMenu = new CheckboxMenuItem();
- protected CheckboxMenuItem fitToWindow = new CheckboxMenuItem();
- Menu fileMenu = new Menu();
- MenuItem newickOutput = new MenuItem();
-
- public GTreePanel()
- {
- try
- {
- jbInit();
- this.setMenuBar(jMenuBar1);
- }
- catch(Exception e)
- {
- e.printStackTrace();
- }
-
- }
- private void jbInit() throws Exception
- {
- setLayout(borderLayout1);
- this.setBackground(Color.white);
- this.setFont(new java.awt.Font("Verdana", 0, 12));
- jMenu2.setLabel("View");
- fontSize.setLabel("Font Size - 12");
- fontSize.addActionListener(new java.awt.event.ActionListener()
- {
- public void actionPerformed(ActionEvent e)
- {
- fontSize_actionPerformed(e);
- }
- });
- bootstrapMenu.setLabel("Show Bootstrap values");
- bootstrapMenu.addItemListener(new java.awt.event.ItemListener()
- {
- public void itemStateChanged(ItemEvent e)
- {
- bootstrapMenu_actionPerformed(null);
- }
- });
- distanceMenu.setLabel("Show Distances");
- distanceMenu.addItemListener(new java.awt.event.ItemListener()
- {
- public void itemStateChanged(ItemEvent e)
- {
- distanceMenu_actionPerformed(null);
- }
- });
- placeholdersMenu.setLabel("Mark Unassociated Leaves");
- placeholdersMenu.addItemListener(new java.awt.event.ItemListener()
- {
- public void itemStateChanged(ItemEvent e)
- {
- placeholdersMenu_actionPerformed(null);
- }
- });
- fitToWindow.setState(true);
- fitToWindow.setLabel("Fit to window");
- fitToWindow.addItemListener(new java.awt.event.ItemListener()
- {
- public void itemStateChanged(ItemEvent e)
- {
- fitToWindow_actionPerformed(null);
- }
- });
- fileMenu.setLabel("File");
- newickOutput.setLabel("Newick format");
- newickOutput.addActionListener(new ActionListener()
- {
- public void actionPerformed(ActionEvent actionEvent)
- {
- newickOutput_actionPerformed(actionEvent);
- }
- });
- add(scrollPane, BorderLayout.CENTER);
- jMenuBar1.add(fileMenu);
- jMenuBar1.add(jMenu2);
- jMenu2.add(fitToWindow);
- jMenu2.add(fontSize);
- jMenu2.add(distanceMenu);
- jMenu2.add(bootstrapMenu);
- jMenu2.add(placeholdersMenu);
- fileMenu.add(newickOutput);
- }
-
-
- protected void printMenu_actionPerformed(ActionEvent e)
- {
-
- }
-
- protected void fontSize_actionPerformed(ActionEvent e)
- {
-
- }
-
- protected void distanceMenu_actionPerformed(ActionEvent e)
- {
-
- }
-
- protected void bootstrapMenu_actionPerformed(ActionEvent e)
- {
-
- }
-
- protected void placeholdersMenu_actionPerformed(ActionEvent e)
- {
-
- }
-
- protected void fitToWindow_actionPerformed(ActionEvent e)
- {
-
- }
-
- public void newickOutput_actionPerformed(ActionEvent actionEvent)
- {
-
- }
-
-}
+package jalview.jbappletgui;\r
+\r
+import java.awt.*;\r
+import java.awt.event.*;\r
+\r
+public class GTreePanel extends Frame\r
+{\r
+ BorderLayout borderLayout1 = new BorderLayout();\r
+ protected ScrollPane scrollPane = new ScrollPane();\r
+ MenuBar jMenuBar1 = new MenuBar();\r
+ Menu jMenu2 = new Menu();\r
+ protected MenuItem fontSize = new MenuItem();\r
+ protected CheckboxMenuItem bootstrapMenu = new CheckboxMenuItem();\r
+ protected CheckboxMenuItem distanceMenu = new CheckboxMenuItem();\r
+ protected CheckboxMenuItem placeholdersMenu = new CheckboxMenuItem();\r
+ protected CheckboxMenuItem fitToWindow = new CheckboxMenuItem();\r
+ Menu fileMenu = new Menu();\r
+ MenuItem newickOutput = new MenuItem();\r
+\r
+ public GTreePanel()\r
+ {\r
+ try\r
+ {\r
+ jbInit();\r
+ this.setMenuBar(jMenuBar1);\r
+ }\r
+ catch(Exception e)\r
+ {\r
+ e.printStackTrace();\r
+ }\r
+\r
+ }\r
+ private void jbInit() throws Exception\r
+ {\r
+ setLayout(borderLayout1);\r
+ this.setBackground(Color.white);\r
+ this.setFont(new java.awt.Font("Verdana", 0, 12));\r
+ jMenu2.setLabel("View");\r
+ fontSize.setLabel("Font Size - 12");\r
+ fontSize.addActionListener(new java.awt.event.ActionListener()\r
+ {\r
+ public void actionPerformed(ActionEvent e)\r
+ {\r
+ fontSize_actionPerformed(e);\r
+ }\r
+ });\r
+ bootstrapMenu.setLabel("Show Bootstrap Values");\r
+ bootstrapMenu.addItemListener(new java.awt.event.ItemListener()\r
+ {\r
+ public void itemStateChanged(ItemEvent e)\r
+ {\r
+ bootstrapMenu_actionPerformed(null);\r
+ }\r
+ });\r
+ distanceMenu.setLabel("Show Distances");\r
+ distanceMenu.addItemListener(new java.awt.event.ItemListener()\r
+ {\r
+ public void itemStateChanged(ItemEvent e)\r
+ {\r
+ distanceMenu_actionPerformed(null);\r
+ }\r
+ });\r
+ placeholdersMenu.setLabel("Mark Unassociated Leaves");\r
+ placeholdersMenu.addItemListener(new java.awt.event.ItemListener()\r
+ {\r
+ public void itemStateChanged(ItemEvent e)\r
+ {\r
+ placeholdersMenu_actionPerformed(null);\r
+ }\r
+ });\r
+ fitToWindow.setState(true);\r
+ fitToWindow.setLabel("Fit To Window");\r
+ fitToWindow.addItemListener(new java.awt.event.ItemListener()\r
+ {\r
+ public void itemStateChanged(ItemEvent e)\r
+ {\r
+ fitToWindow_actionPerformed(null);\r
+ }\r
+ });\r
+ fileMenu.setLabel("File");\r
+ newickOutput.setLabel("Newick Format");\r
+ newickOutput.addActionListener(new ActionListener()\r
+ {\r
+ public void actionPerformed(ActionEvent actionEvent)\r
+ {\r
+ newickOutput_actionPerformed(actionEvent);\r
+ }\r
+ });\r
+ add(scrollPane, BorderLayout.CENTER);\r
+ jMenuBar1.add(fileMenu);\r
+ jMenuBar1.add(jMenu2);\r
+ jMenu2.add(fitToWindow);\r
+ jMenu2.add(fontSize);\r
+ jMenu2.add(distanceMenu);\r
+ jMenu2.add(bootstrapMenu);\r
+ jMenu2.add(placeholdersMenu);\r
+ fileMenu.add(newickOutput);\r
+ }\r
+\r
+\r
+ protected void printMenu_actionPerformed(ActionEvent e)\r
+ {\r
+\r
+ }\r
+\r
+ protected void fontSize_actionPerformed(ActionEvent e)\r
+ {\r
+\r
+ }\r
+\r
+ protected void distanceMenu_actionPerformed(ActionEvent e)\r
+ {\r
+\r
+ }\r
+\r
+ protected void bootstrapMenu_actionPerformed(ActionEvent e)\r
+ {\r
+\r
+ }\r
+\r
+ protected void placeholdersMenu_actionPerformed(ActionEvent e)\r
+ {\r
+\r
+ }\r
+\r
+ protected void fitToWindow_actionPerformed(ActionEvent e)\r
+ {\r
+\r
+ }\r
+\r
+ public void newickOutput_actionPerformed(ActionEvent actionEvent)\r
+ {\r
+\r
+ }\r
+\r
+}\r