scale above, left rigt added
authoramwaterhouse <Andrew Waterhouse>
Fri, 8 Apr 2005 15:00:52 +0000 (15:00 +0000)
committeramwaterhouse <Andrew Waterhouse>
Fri, 8 Apr 2005 15:00:52 +0000 (15:00 +0000)
src/jalview/jbgui/GAlignFrame.java

index dfc664d..a1e8c3d 100755 (executable)
@@ -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)
+  {
+
+  }
+
+
+
 }