From: amwaterhouse Date: Fri, 21 Jan 2005 18:32:49 +0000 (+0000) Subject: Delete groups added, nucleotide color added X-Git-Tag: Release_2_0~737 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=d5e330e770d94e333309057f45969886a8fb2ad7;p=jalview.git Delete groups added, nucleotide color added --- diff --git a/src/jalview/jbgui/GAlignFrame.java b/src/jalview/jbgui/GAlignFrame.java index fa90a6e..43dc81f 100755 --- a/src/jalview/jbgui/GAlignFrame.java +++ b/src/jalview/jbgui/GAlignFrame.java @@ -82,6 +82,8 @@ public class GAlignFrame extends JInternalFrame JMenu searchMenu = new JMenu(); protected JCheckBoxMenuItem abovePIDThreshold = new JCheckBoxMenuItem(); protected JCheckBoxMenuItem secondaryStructure = new JCheckBoxMenuItem(); + protected JRadioButtonMenuItem nucleotideColour = new JRadioButtonMenuItem(); + JMenuItem deleteGroups = new JMenuItem(); public GAlignFrame() { try @@ -133,6 +135,7 @@ public class GAlignFrame extends JInternalFrame colours.add(userDefinedColour); colours.add(PIDColour); colours.add(BLOSUM62Colour); + colours.add(nucleotideColour); } private void jbInit() throws Exception { @@ -607,6 +610,23 @@ public class GAlignFrame extends JInternalFrame secondaryStructure_actionPerformed(actionEvent); } }); + nucleotideColour.setText("Nucleotide colours"); + nucleotideColour.addActionListener(new java.awt.event.ActionListener() + { + public void actionPerformed(ActionEvent e) + { + nucleotideColour_actionPerformed(e); + } + }); + deleteGroups.setSelected(false); + deleteGroups.setText("Delete all groups"); + deleteGroups.addActionListener(new java.awt.event.ActionListener() + { + public void actionPerformed(ActionEvent e) + { + deleteGroups_actionPerformed(e); + } + }); alignFrameMenuBar.add(fileMenu); alignFrameMenuBar.add(editMenu); alignFrameMenuBar.add(searchMenu); @@ -624,6 +644,7 @@ public class GAlignFrame extends JInternalFrame editMenu.add(undoMenuItem); editMenu.add(redoMenuItem); editMenu.addSeparator(); + editMenu.add(deleteGroups); editMenu.add(groupsMenuItem); editMenu.addSeparator(); editMenu.add(selectAllSequenceMenuItem); @@ -658,6 +679,7 @@ public class GAlignFrame extends JInternalFrame colourMenu.add(strandColour); colourMenu.add(turnColour); colourMenu.add(buriedColour); + colourMenu.add(nucleotideColour); colourMenu.add(userDefinedColour); colourMenu.add(PIDColour); colourMenu.add(BLOSUM62Colour); @@ -989,4 +1011,16 @@ public class GAlignFrame extends JInternalFrame { } + + protected void nucleotideColour_actionPerformed(ActionEvent e) + { + + } + + protected void deleteGroups_actionPerformed(ActionEvent e) + { + + } + + }