if (command.equals("SHOW_ISOTOPE_PEAKS")) {
spectrumPlot.switchIsotopePeaksVisible();
}
if (command.equals("SETUP_AXES")) {
AxesSetupDialog dialog = new AxesSetupDialog(
spectrumPlot.getXYPlot());
dialog.setVisible(true);
}
if (command.equals("ADD_ISOTOPE_PATTERN")) {
IsotopePattern newPattern = IsotopePatternCalculator