Skip to content
This repository has been archived by the owner on May 5, 2024. It is now read-only.

Commit

Permalink
processing in SpectraVisualizerWindow disabled by default
Browse files Browse the repository at this point in the history
- now activated in showNewSpectrumWindow
  • Loading branch information
SteffenHeu committed Jun 2, 2019
1 parent 29cf0e1 commit fd31dbc
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
import javax.swing.JButton;
import javax.swing.JToolBar;
import net.sf.mzmine.datamodel.MassSpectrumType;
import net.sf.mzmine.modules.visualization.spectra.simplespectra.datapointprocessing.DataPointProcessingManager;
import net.sf.mzmine.util.GUIUtils;

/**
Expand All @@ -48,7 +47,6 @@ public class SpectraToolBar extends JToolBar {
static final Icon dbLipidsIcon = new ImageIcon("icons/DBLipidsIcon.png");
static final Icon dbSpectraIcon = new ImageIcon("icons/DBSpectraIcon.png");
static final Icon sumFormulaIcon = new ImageIcon("icons/search.png");
static final Icon processingIcon = new ImageIcon("icons/btnspectraprocessing.png");

private JButton centroidContinuousButton, dataPointsButton;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public static SpectraVisualizerWindow showNewSpectrumWindow(RawDataFile dataFile
return null;
}

SpectraVisualizerWindow newWindow = new SpectraVisualizerWindow(dataFile);
SpectraVisualizerWindow newWindow = new SpectraVisualizerWindow(dataFile, true);
newWindow.loadRawData(scan);

if (peak != null)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,15 +104,15 @@ public class SpectraVisualizerWindow extends JFrame implements ActionListener {

private static final double zoomCoefficient = 1.2f;

public SpectraVisualizerWindow(RawDataFile dataFile) {
public SpectraVisualizerWindow(RawDataFile dataFile, boolean enableProcessing) {

super("Spectrum loading...");
this.dataFile = dataFile;

setDefaultCloseOperation(DISPOSE_ON_CLOSE);
setBackground(Color.white);

spectrumPlot = new SpectraPlot(this, true);
spectrumPlot = new SpectraPlot(this, enableProcessing);
add(spectrumPlot, BorderLayout.CENTER);

toolBar = new SpectraToolBar(this);
Expand Down Expand Up @@ -143,6 +143,12 @@ public SpectraVisualizerWindow(RawDataFile dataFile) {
this.addComponentListener(settings);

}

public SpectraVisualizerWindow(RawDataFile dataFile) {
this(dataFile, false);
}



@Override
public void dispose() {
Expand Down

0 comments on commit fd31dbc

Please sign in to comment.