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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.openscience.cdk.renderer.generators.BasicAtomGenerator
BasicAtomGenerator.AtomColor, BasicAtomGenerator.AtomColorer, BasicAtomGenerator.AtomRadius, BasicAtomGenerator.ColorByType, BasicAtomGenerator.CompactAtom, BasicAtomGenerator.CompactShape, BasicAtomGenerator.KekuleStructure, BasicAtomGenerator.Shape, BasicAtomGenerator.ShowEndCarbons, BasicAtomGenerator.ShowExplicitHydrogens
-
-
Constructor Summary
Constructors Constructor Description AtomMassGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.-
Methods inherited from class org.openscience.cdk.renderer.generators.BasicAtomGenerator
canDraw, generate, generate, generateCompactElement, generateElement, getAtomColor, getParameters, hasCoordinates, invisibleCarbon, invisibleHydrogen, isHydrogen
-
-
-
-
Method Detail
-
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 classBasicAtomGenerator
- Parameters:
atom
-IAtom
which is being examinedcontainer
-IAtomContainer
of which the atom is partmodel
- theRendererModel
- Returns:
- true, when mass number information should be depicted
-
-