Class AtomPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class AtomPanel
extends JPanel
Panel for selecting atoms.
Author:
Harald Barsnes
See Also:
Serialized Form
  • Constructor Details

    • AtomPanel

      public AtomPanel​(AtomChainDialog atomChainDialog, Atom atom, int isotope, int occurrence, int panelIndex, boolean addOnly)
      Creates a new AtomPanel.
      Parameters:
      atomChainDialog - the parent dialog
      atom - the atom
      isotope - the isotope
      occurrence - the occurrence
      panelIndex - the unique index of the panel
      addOnly - if true, then only adding of atoms is allowed
  • Method Details

    • getAtom

      public Atom getAtom()
      Returns the currently selected atom.
      Returns:
      the currently selected atom, null if no atom is selected
    • getIsotope

      public Integer getIsotope()
      Returns the currently selected isotope.
      Returns:
      the currently selected isotope, null if no isotope is selected
    • getOccurrence

      public int getOccurrence()
      Returns the occurrence of the selected atom.
      Returns:
      the occurrence of the selected atom
    • getPanelIndex

      public int getPanelIndex()
      Returns the panel index.
      Returns:
      the panelIndex