viewport.setFont( new Font(fontName,Integer.parseInt(fontStyle),Integer.parseInt(fontSize)) );\r
\r
\r
-\r
alignPanel = new AlignmentPanel(this, viewport);\r
getContentPane().add(alignPanel, java.awt.BorderLayout.CENTER);\r
\r
protected void conservationMenuItem_actionPerformed(ActionEvent e)\r
{\r
viewport.setConservationSelected(conservationMenuItem.isSelected());\r
+ if(coloursChanging)\r
+ return;\r
+\r
+ coloursChanging = true;\r
\r
viewport.setAbovePIDThreshold(false);\r
abovePIDThreshold.setSelected(false);\r
changeColour( ((ConservationColourScheme)cs).cs );\r
else\r
changeColour( cs );\r
- }\r
\r
+ coloursChanging = false;\r
+ }\r
\r
+ boolean coloursChanging = false;\r
public void abovePIDThreshold_actionPerformed(ActionEvent e)\r
{\r
+ if(coloursChanging)\r
+ return;\r
+\r
+ coloursChanging = true;\r
viewport.setAbovePIDThreshold(abovePIDThreshold.isSelected());\r
\r
conservationMenuItem.setSelected(false);\r
else\r
changeColour( cs );\r
\r
+ coloursChanging = false;\r
}\r
\r
\r
// Need visual-delay indication here.\r
public void run()\r
{\r
- /* jalview.ws.Jemboss jemboss = new jalview.ws.Jemboss();\r
+ jalview.ws.Jemboss jemboss = new jalview.ws.Jemboss();\r
Vector sv = viewport.getAlignment().getSequences();\r
SequenceI[] seqs = new SequenceI[sv.size()];\r
\r
/// viewport.getAlignment().getSequences().elementAt(0));\r
}\r
\r
-*/}}\r
- protected void LoadtreeMenuItem_actionPerformed(ActionEvent e) {\r
+ protected void LoadtreeMenuItem_actionPerformed(ActionEvent e) {\r
// Pick the tree file\r
JalviewFileChooser chooser = new JalviewFileChooser(jalview.bin.Cache.\r
getProperty("LAST_DIRECTORY"));\r