From: amwaterhouse Date: Fri, 18 Mar 2005 18:28:17 +0000 (+0000) Subject: eps and png output X-Git-Tag: Release_2_0~545 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=1b4d9b2a5fd612994de07db18d0f6466c034b934;p=jalview.git eps and png output --- diff --git a/src/jalview/jbgui/GTreePanel.java b/src/jalview/jbgui/GTreePanel.java index 00d5fe1..25829ae 100755 --- a/src/jalview/jbgui/GTreePanel.java +++ b/src/jalview/jbgui/GTreePanel.java @@ -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) + { - + } }