Class AtomMassGenerator

java.lang.Object
org.openscience.cdk.renderer.generators.BasicAtomGenerator
org.openscience.cdk.renderer.generators.AtomMassGenerator
All Implemented Interfaces:
IGenerator<IAtomContainer>

public class AtomMassGenerator extends BasicAtomGenerator
IGenerator that can render mass number information of atoms.
Source code:
main
Belongs to CDK module:
renderextra
  • Constructor Details

    • AtomMassGenerator

      public AtomMassGenerator()
  • Method Details

    • showCarbon

      public boolean showCarbon(IAtom atom, IAtomContainer container, RendererModel model)
      Returns true if the mass number of this element is set and not equal the mass number of the most abundant isotope of this element.
      Overrides:
      showCarbon in class BasicAtomGenerator
      Parameters:
      atom - IAtom which is being examined
      container - IAtomContainer of which the atom is part
      model - the RendererModel
      Returns:
      true, when mass number information should be depicted