X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fjalview%2Fjbgui%2FGStructureViewer.java;h=874b0ed2a9abab25c8944f7206845029ab3012f4;hb=02783b1d0f22e82e7854777646e39df0fc77de74;hp=28d2c7aac117423cd6cd25238e8975518ece599e;hpb=a45774ee31d9f35d4eff46d54d7deab719afb092;p=jalview.git diff --git a/src/jalview/jbgui/GStructureViewer.java b/src/jalview/jbgui/GStructureViewer.java index 28d2c7a..874b0ed 100644 --- a/src/jalview/jbgui/GStructureViewer.java +++ b/src/jalview/jbgui/GStructureViewer.java @@ -1,13 +1,13 @@ /* - * Jalview - A Sequence Alignment Editor and Viewer (Version 2.7) - * Copyright (C) 2011 J Procter, AM Waterhouse, G Barton, M Clamp, S Searle + * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8) + * Copyright (C) 2012 J Procter, AM Waterhouse, LM Lui, J Engelhardt, G Barton, M Clamp, S Searle * * This file is part of Jalview. * * Jalview is free software: you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - * + * * Jalview is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty * of MERCHANTABILITY or FITNESS FOR A PARTICULAR @@ -164,6 +164,15 @@ public class GStructureViewer extends JInternalFrame buriedColour_actionPerformed(actionEvent); } }); + purinePyrimidineColour.setText("Purine/Pyrimidine"); + purinePyrimidineColour.addActionListener(new ActionListener() + { + public void actionPerformed(ActionEvent actionEvent) + { + purinePyrimidineColour_actionPerformed(actionEvent); + } + }); + userColour.setText("User Defined ..."); userColour.addActionListener(new ActionListener() { @@ -181,8 +190,7 @@ public class GStructureViewer extends JInternalFrame { jmolColour_actionPerformed(actionEvent); } - } - ); + }); helpMenu.setText("Help"); jmolHelp.setText("Jmol Help"); jmolHelp.addActionListener(new ActionListener() @@ -224,6 +232,7 @@ public class GStructureViewer extends JInternalFrame colourMenu.add(strandColour); colourMenu.add(turnColour); colourMenu.add(buriedColour); + colourMenu.add(purinePyrimidineColour); colourMenu.add(userColour); colourMenu.add(jmolColour); colourMenu.add(backGround); @@ -301,6 +310,8 @@ public class GStructureViewer extends JInternalFrame protected JRadioButtonMenuItem buriedColour = new JRadioButtonMenuItem(); + protected JRadioButtonMenuItem purinePyrimidineColour = new JRadioButtonMenuItem(); + protected JRadioButtonMenuItem userColour = new JRadioButtonMenuItem(); protected JRadioButtonMenuItem jmolColour = new JRadioButtonMenuItem(); @@ -381,6 +392,11 @@ public class GStructureViewer extends JInternalFrame } + public void purinePyrimidineColour_actionPerformed(ActionEvent actionEvent) + { + + } + public void userColour_actionPerformed(ActionEvent actionEvent) {