Class SpectrumPanelWithSampleData

  • All Implemented Interfaces:
    ImageObserver, MenuContainer, Serializable, Accessible

    public class SpectrumPanelWithSampleData
    extends adams.gui.core.BasePanel
    Spectrum panel that also shows the sample data next to it. Only ever shows a single spectrum.
    Author:
    FracPete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Field Detail

      • m_TabbedPane

        protected adams.gui.core.BaseTabbedPane m_TabbedPane
        the tabbed pane.
      • m_PanelSpectrum

        protected SpectrumPanel m_PanelSpectrum
        the spectrum panel.
    • Constructor Detail

      • SpectrumPanelWithSampleData

        public SpectrumPanelWithSampleData()
    • Method Detail

      • initGUI

        protected void initGUI()
        Initializes the members.
        Overrides:
        initGUI in class adams.gui.core.BasePanel
      • display

        public void display​(Spectrum data)
        Displays the spectrum. Removes any existing spectrum beforehand.
        Parameters:
        data - the spectrum to display
      • display

        public void display​(AbstractSpectrumReader reader,
                            File file)
        Displays the spectrum. Removes any existing spectrum beforehand.
        Parameters:
        reader - the reader to use for loading the spectrum
        file - the spectrum file to load