}\r
\r
}\r
-\r
+ if (viewport.getAlignment().isNucleotide())\r
+ {\r
+ viewport.updateStrucConsensus(alignPanel);\r
+ if (viewport.getAlignment().hasRNAStructure())\r
+ {\r
+ RNAHelixColour.setEnabled(true);\r
+ }\r
+ else {\r
+ RNAHelixColour.setEnabled(false);\r
+ }\r
+ } else {\r
+ RNAHelixColour.setEnabled(false);\r
+ purinePyrimidineColour.setEnabled(false);\r
+ }\r
// Some JVMS send keyevents to Top frame or lowest panel,\r
// Havent worked out why yet. So add to both this frame and seqCanvas for\r
// now\r
{\r
changeColour(new NucleotideColourScheme());\r
}\r
+ else if (source == purinePyrimidineColour)\r
+ {\r
+ changeColour(new PurinePyrimidineColourScheme());\r
+ }\r
+ else if (source == RNAHelixColour)\r
+ {\r
+ new RNAHelicesColourChooser(viewport, alignPanel);\r
+ }\r
else if (source == modifyPID)\r
{\r
modifyPID_actionPerformed();\r
\r
MenuItem buriedColour = new MenuItem();\r
\r
+ MenuItem purinePyrimidineColour = new MenuItem();\r
+ MenuItem RNAHelixColour = new MenuItem();\r
+ \r
MenuItem userDefinedColour = new MenuItem();\r
\r
MenuItem PIDColour = new MenuItem();\r
turnColour.addActionListener(this);\r
buriedColour.setLabel("Buried Index");\r
buriedColour.addActionListener(this);\r
+ purinePyrimidineColour.setLabel("Purine/Pyrimidine");\r
+ purinePyrimidineColour.addActionListener(this);\r
+ RNAHelixColour.setLabel("by RNA Helices");\r
+ RNAHelixColour.addActionListener(this);\r
userDefinedColour.setLabel("User Defined...");\r
userDefinedColour.addActionListener(this);\r
PIDColour.setLabel("Percentage Identity");\r
colourMenu.add(turnColour);\r
colourMenu.add(buriedColour);\r
colourMenu.add(nucleotideColour);\r
+ colourMenu.add(purinePyrimidineColour);\r
colourMenu.add(userDefinedColour);\r
colourMenu.addSeparator();\r
colourMenu.add(conservationMenuItem);\r
colourMenu.add(abovePIDThreshold);\r
colourMenu.add(modifyPID);\r
colourMenu.add(annotationColour);\r
+ colourMenu.add(RNAHelixColour);\r
calculateMenu.add(sort);\r
calculateMenu.add(calculate);\r
calculateMenu.addSeparator();\r