From d932a2e47614c1a7489df0083e975b7cc76516f0 Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Fri, 8 Apr 2005 15:00:52 +0000 Subject: [PATCH] scale above, left rigt added --- src/jalview/jbgui/GAlignFrame.java | 54 ++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/src/jalview/jbgui/GAlignFrame.java b/src/jalview/jbgui/GAlignFrame.java index dfc664d..a1e8c3d 100755 --- a/src/jalview/jbgui/GAlignFrame.java +++ b/src/jalview/jbgui/GAlignFrame.java @@ -90,6 +90,9 @@ public class GAlignFrame extends JInternalFrame JMenuItem epsFile = new JMenuItem(); JMenuItem LoadtreeMenuItem = new JMenuItem(); JMenuItem jpred = new JMenuItem(); + protected JCheckBoxMenuItem scaleAbove = new JCheckBoxMenuItem(); + protected JCheckBoxMenuItem scaleLeft = new JCheckBoxMenuItem(); + protected JCheckBoxMenuItem scaleRight = new JCheckBoxMenuItem(); public GAlignFrame() { @@ -688,6 +691,35 @@ public class GAlignFrame extends JInternalFrame jpred_actionPerformed(e); } }); + scaleAbove.setVisible(false); + scaleAbove.setText("Scale above alignment"); + scaleAbove.addActionListener(new java.awt.event.ActionListener() + { + public void actionPerformed(ActionEvent e) + { + scaleAbove_actionPerformed(e); + } + }); + scaleLeft.setVisible(false); + scaleLeft.setSelected(true); + scaleLeft.setText("Scale left of sequence"); + scaleLeft.addActionListener(new java.awt.event.ActionListener() + { + public void actionPerformed(ActionEvent e) + { + scaleLeft_actionPerformed(e); + } + }); + scaleRight.setVisible(false); + scaleRight.setSelected(true); + scaleRight.setText("Scale right of sequence"); + scaleRight.addActionListener(new java.awt.event.ActionListener() + { + public void actionPerformed(ActionEvent e) + { + scaleRight_actionPerformed(e); + } + }); alignFrameMenuBar.add(fileMenu); alignFrameMenuBar.add(editMenu); alignFrameMenuBar.add(searchMenu); @@ -728,7 +760,12 @@ public class GAlignFrame extends JInternalFrame searchMenu.add(findMenuItem); viewMenu.add(font); viewMenu.add(fullSeqId); + viewMenu.addSeparator(); viewMenu.add(wrapMenuItem); + viewMenu.add(scaleAbove); + viewMenu.add(scaleLeft); + viewMenu.add(scaleRight); + viewMenu.addSeparator(); viewMenu.add(viewBoxesMenuItem); viewMenu.add(viewTextMenuItem); viewMenu.add(colourTextMenuItem); @@ -1125,4 +1162,21 @@ public class GAlignFrame extends JInternalFrame } + protected void scaleAbove_actionPerformed(ActionEvent e) + { + + } + + protected void scaleLeft_actionPerformed(ActionEvent e) + { + + } + + protected void scaleRight_actionPerformed(ActionEvent e) + { + + } + + + } -- 1.7.10.2