eps and png output
authoramwaterhouse <Andrew Waterhouse>
Fri, 18 Mar 2005 18:28:17 +0000 (18:28 +0000)
committeramwaterhouse <Andrew Waterhouse>
Fri, 18 Mar 2005 18:28:17 +0000 (18:28 +0000)
src/jalview/jbgui/GTreePanel.java

index 00d5fe1..25829ae 100755 (executable)
@@ -17,6 +17,8 @@ public class GTreePanel extends JInternalFrame
   protected JCheckBoxMenuItem bootstrapMenu = new JCheckBoxMenuItem();
   protected JCheckBoxMenuItem distanceMenu = new JCheckBoxMenuItem();
   protected JCheckBoxMenuItem fitToWindow = new JCheckBoxMenuItem();
+  JMenuItem pngTree = new JMenuItem();
+  JMenuItem epsTree = new JMenuItem();
 
   public GTreePanel()
   {
@@ -88,10 +90,28 @@ public class GTreePanel extends JInternalFrame
         fitToWindow_actionPerformed(e);
       }
     });
+    epsTree.setText("Save as EPS file");
+    epsTree.addActionListener(new java.awt.event.ActionListener()
+    {
+      public void actionPerformed(ActionEvent e)
+      {
+        epsTree_actionPerformed(e);
+      }
+    });
+    pngTree.setText("Save as PNG image");
+    pngTree.addActionListener(new java.awt.event.ActionListener()
+    {
+      public void actionPerformed(ActionEvent e)
+      {
+        pngTree_actionPerformed(e);
+      }
+    });
     this.getContentPane().add(scrollPane, BorderLayout.CENTER);
     jMenuBar1.add(jMenu1);
     jMenuBar1.add(jMenu2);
     jMenu1.add(saveMenu);
+    jMenu1.add(epsTree);
+    jMenu1.add(pngTree);
     jMenu1.add(printMenu);
     jMenu2.add(fitToWindow);
     jMenu2.add(fontSize);
@@ -129,9 +149,14 @@ public class GTreePanel extends JInternalFrame
 
   }
 
+  protected void pngTree_actionPerformed(ActionEvent e)
+  {
 
+  }
 
+  protected void epsTree_actionPerformed(ActionEvent e)
+  {
 
-
+  }
 
 }