Skip to content
Snippets Groups Projects
Commit 92fe9e9f authored by tjc's avatar tjc
Browse files

add Print to PostScript option

git-svn-id: svn+ssh://svn.internal.sanger.ac.uk/repos/svn/pathsoft/artemis/trunk@8687 ee4ac58c-ac51-4696-9907-e4b3aa274f04
parent f6848a2d
No related branches found
No related tags found
No related merge requests found
......@@ -20,7 +20,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
* $Header: //tmp/pathsoft/artemis/uk/ac/sanger/artemis/components/EntryEdit.java,v 1.69 2008-08-20 09:46:22 tjc Exp $
* $Header: //tmp/pathsoft/artemis/uk/ac/sanger/artemis/components/EntryEdit.java,v 1.70 2008-09-03 10:58:33 tjc Exp $
*/
package uk.ac.sanger.artemis.components;
......@@ -64,7 +64,7 @@ import java.util.Vector;
* Each object of this class is used to edit an EntryGroup object.
*
* @author Kim Rutherford
* @version $Id: EntryEdit.java,v 1.69 2008-08-20 09:46:22 tjc Exp $
* @version $Id: EntryEdit.java,v 1.70 2008-09-03 10:58:33 tjc Exp $
*
*/
public class EntryEdit extends JFrame
......@@ -1593,7 +1593,7 @@ public class EntryEdit extends JFrame
private void printMenu()
{
JMenuItem printImage = new JMenuItem("Print Image Files (png/jpeg)...");
JMenuItem printImage = new JMenuItem("Save As Image Files (png/jpeg)...");
printImage.addActionListener(new ActionListener()
{
public void actionPerformed(ActionEvent e)
......@@ -1604,6 +1604,18 @@ public class EntryEdit extends JFrame
});
file_menu.add(printImage);
JMenuItem printPS = new JMenuItem("Print...");
printPS.addActionListener(new ActionListener()
{
public void actionPerformed(ActionEvent e)
{
PrintArtemis part = new PrintArtemis(EntryEdit.this);
part.validate();
part.doPrintActions();
}
});
file_menu.add(printPS);
// print preview
JMenuItem printPreview = new JMenuItem("Print Preview");
file_menu.add(printPreview);
......
......@@ -20,7 +20,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
* $Header: //tmp/pathsoft/artemis/uk/ac/sanger/artemis/components/MultiComparator.java,v 1.21 2008-06-16 12:11:01 tjc Exp $
* $Header: //tmp/pathsoft/artemis/uk/ac/sanger/artemis/components/MultiComparator.java,v 1.22 2008-09-03 10:58:33 tjc Exp $
*/
package uk.ac.sanger.artemis.components;
......@@ -53,7 +53,7 @@ import javax.swing.JMenuItem;
* to keep them synchronized.
*
* @author Kim Rutherford <kmr@sanger.ac.uk>
* @version $Id: MultiComparator.java,v 1.21 2008-06-16 12:11:01 tjc Exp $
* @version $Id: MultiComparator.java,v 1.22 2008-09-03 10:58:33 tjc Exp $
**/
public class MultiComparator extends JFrame
......@@ -727,8 +727,7 @@ public class MultiComparator extends JFrame
**/
private void printMenu()
{
JMenuItem printImage = new JMenuItem("Print Image Files (png/jpeg)...");
PrintACT pact = new PrintACT(this);
JMenuItem printImage = new JMenuItem("Save As Image Files (png/jpeg)...");
printImage.addActionListener(new ActionListener()
{
public void actionPerformed(ActionEvent e)
......@@ -739,6 +738,17 @@ public class MultiComparator extends JFrame
});
file_menu.add(printImage);
JMenuItem printPS = new JMenuItem("Print...");
printPS.addActionListener(new ActionListener()
{
public void actionPerformed(ActionEvent e)
{
PrintACT pact = new PrintACT(MultiComparator.this);
pact.doPrintActions();
}
});
file_menu.add(printPS);
// print preview
JMenuItem printPreview = new JMenuItem("Print Preview");
file_menu.add(printPreview);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment