From 15648da3cecbfbe809b9279d426d88d98fbbec13 Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Fri, 18 Mar 2005 16:07:43 +0000 Subject: [PATCH] png and eps output added --- src/jalview/jbgui/GAlignFrame.java | 28 ++++++++++++++++++++++------ 1 file changed, 22 insertions(+), 6 deletions(-) diff --git a/src/jalview/jbgui/GAlignFrame.java b/src/jalview/jbgui/GAlignFrame.java index e7bf27e..44cb8b7 100755 --- a/src/jalview/jbgui/GAlignFrame.java +++ b/src/jalview/jbgui/GAlignFrame.java @@ -85,9 +85,10 @@ public class GAlignFrame extends JInternalFrame JMenuItem pasteNew = new JMenuItem(); JMenuItem pasteThis = new JMenuItem(); protected JCheckBoxMenuItem applyToAllGroups = new JCheckBoxMenuItem(); - JMenuItem createJPG = new JMenuItem(); + JMenuItem createPNG = new JMenuItem(); protected JMenuItem font = new JMenuItem(); protected JCheckBoxMenuItem fullSeqId = new JCheckBoxMenuItem(); + JMenuItem epsFile = new JMenuItem(); public GAlignFrame() { @@ -646,14 +647,15 @@ public class GAlignFrame extends JInternalFrame applyToAllGroups_actionPerformed(e); } }); - createJPG.addActionListener(new java.awt.event.ActionListener() + createPNG.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(ActionEvent e) { - createJPG_actionPerformed(e); + createPNG_actionPerformed(e); } }); - createJPG.setText("Save as JPG Image"); + createPNG.setActionCommand("Save as PNG Image"); + createPNG.setText("Save as PNG Image"); font.setText("Change Font"); font.addActionListener(new java.awt.event.ActionListener() { @@ -670,6 +672,14 @@ public class GAlignFrame extends JInternalFrame fullSeqId_actionPerformed(e); } }); + epsFile.setText("Save as EPS file"); + epsFile.addActionListener(new java.awt.event.ActionListener() + { + public void actionPerformed(ActionEvent e) + { + epsFile_actionPerformed(e); + } + }); alignFrameMenuBar.add(fileMenu); alignFrameMenuBar.add(editMenu); alignFrameMenuBar.add(searchMenu); @@ -680,7 +690,8 @@ public class GAlignFrame extends JInternalFrame fileMenu.add(saveAlignmentMenu); fileMenu.add(outputTextboxMenu); fileMenu.add(htmlMenuItem); - fileMenu.add(createJPG); + fileMenu.add(epsFile); + fileMenu.add(createPNG); fileMenu.add(printMenuItem); fileMenu.addSeparator(); fileMenu.add(closeMenuItem); @@ -1079,7 +1090,7 @@ public class GAlignFrame extends JInternalFrame } - protected void createJPG_actionPerformed(ActionEvent e) + protected void createPNG_actionPerformed(ActionEvent e) { } @@ -1094,6 +1105,11 @@ public class GAlignFrame extends JInternalFrame } + protected void epsFile_actionPerformed(ActionEvent e) + { + + } + } -- 1.7.10.2