showGroupConservation.setState(viewport.isShowGroupConservation());\r
showConsensusHistogram.setState(viewport.isShowConsensusHistogram());\r
showSequenceLogo.setState(viewport.isShowSequenceLogo());\r
+ normSequenceLogo.setState(viewport.isNormaliseSequenceLogo());\r
\r
seqLimits.setState(viewport.showJVSuffix);\r
\r
{\r
showSequenceLogo_actionPerformed();\r
}\r
+ else if (evt.getSource() == normSequenceLogo)\r
+ {\r
+ normSequenceLogo_actionPerformed();\r
+ }\r
else if (evt.getSource() == showConsensusHistogram)\r
{\r
showConsensusHistogram_actionPerformed();\r
{\r
showSequenceLogo_actionPerformed();\r
}\r
+ else if (source == normSequenceLogo)\r
+ {\r
+ normSequenceLogo_actionPerformed();\r
+ }\r
else if (source == showConsensusHistogram)\r
{\r
showConsensusHistogram_actionPerformed();\r
viewport.setShowSequenceLogo(showSequenceLogo.getState());\r
alignPanel.updateAnnotation(applyAutoAnnotationSettings.getState());\r
}\r
+ protected void normSequenceLogo_actionPerformed()\r
+ {\r
+ showSequenceLogo.setState(true);\r
+ viewport.setShowSequenceLogo(true);\r
+ viewport.setNormaliseSequenceLogo(normSequenceLogo.getState());\r
+ alignPanel.updateAnnotation(applyAutoAnnotationSettings.getState());\r
+ }\r
\r
protected void applyAutoAnnotationSettings_actionPerformed()\r
{\r
CheckboxMenuItem showConsensusHistogram = new CheckboxMenuItem();\r
CheckboxMenuItem showGroupConsensus = new CheckboxMenuItem();\r
CheckboxMenuItem showGroupConservation = new CheckboxMenuItem();\r
+ CheckboxMenuItem normSequenceLogo = new CheckboxMenuItem();\r
\r
private void jbInit() throws Exception\r
{\r
showGroupConservation.setLabel("Group Conservation");\r
showConsensusHistogram.setLabel("Show Consensus Histogram");\r
showSequenceLogo.setLabel("Show Consensus Logo");\r
+ normSequenceLogo.setLabel("Normalise Consensus Logo");\r
applyAutoAnnotationSettings.setLabel("Apply to all groups");\r
applyAutoAnnotationSettings.setState(true);\r
autoAnnMenu.setLabel("Autocalculated Annotation");\r
showGroupConservation.addItemListener(this);\r
showConsensusHistogram.addItemListener(this);\r
showSequenceLogo.addItemListener(this);\r
+ normSequenceLogo.addItemListener(this);\r
+ \r
applyAutoAnnotationSettings.addItemListener(this);\r
formatMenu.setLabel("Format");\r
selectMenu.setLabel("Select");\r
autoAnnMenu.add(applyAutoAnnotationSettings);\r
autoAnnMenu.add(showConsensusHistogram);\r
autoAnnMenu.add(showSequenceLogo);\r
+ autoAnnMenu.add(normSequenceLogo);\r
autoAnnMenu.addSeparator();\r
autoAnnMenu.add(showGroupConservation);\r
autoAnnMenu.add(showGroupConsensus);\r
// ap.annotationPanel.paint(ap.annotationPanel.getGraphics());
}
});
+
popup.add(cprofl);
+ final CheckboxMenuItem cprofn = new CheckboxMenuItem(
+ "Normalise Group Logo", aa[selectedRow].groupRef.isNormaliseSequenceLogo());
+ cprofn.addItemListener(new ItemListener()
+ {
+ public void itemStateChanged(ItemEvent e)
+ {
+ // TODO: pass on reference
+ // to ap
+ // so the
+ // view
+ // can be
+ // updated.
+ aaa.groupRef.setshowSequenceLogo(true);
+ aaa.groupRef.setNormaliseSequenceLogo(cprofn.getState());
+ ap.repaint();
+ // ap.annotationPanel.paint(ap.annotationPanel.getGraphics());
+ }
+ });
+ popup.add(cprofn);
}
else
{
// can be
// updated.
av.setShowConsensusHistogram(chist.getState());
+ ap.alignFrame.showConsensusHistogram.setState(chist.getState()); // TODO: implement ap.updateGUI()/alignFrame.updateGUI for applet
ap.repaint();
// ap.annotationPanel.paint(ap.annotationPanel.getGraphics());
}
// can be
// updated.
av.setShowSequenceLogo(cprof.getState());
+ ap.alignFrame.showSequenceLogo.setState(cprof.getState()); // TODO: implement ap.updateGUI()/alignFrame.updateGUI for applet
ap.repaint();
// ap.annotationPanel.paint(ap.annotationPanel.getGraphics());
}
});
popup.add(cprof);
+ final CheckboxMenuItem cprofn = new CheckboxMenuItem(
+ "Normalise Logo", av.isNormaliseSequenceLogo());
+ cprofn.addItemListener(new ItemListener()
+ {
+ public void itemStateChanged(ItemEvent e)
+ {
+ // TODO: pass on reference
+ // to ap
+ // so the
+ // view
+ // can be
+ // updated.
+ av.setShowSequenceLogo(true);
+ ap.alignFrame.normSequenceLogo.setState(cprofn.getState()); // TODO: implement ap.updateGUI()/alignFrame.updateGUI for applet
+ av.setNormaliseSequenceLogo(cprofn.getState());
+ ap.repaint();
+ // ap.annotationPanel.paint(ap.annotationPanel.getGraphics());
+ }
+ });
+ popup.add(cprofn);
}
item = new MenuItem(COPYCONS_SEQ);