Class AtomMassGenerator
java.lang.Object
org.openscience.cdk.renderer.generators.BasicAtomGenerator
org.openscience.cdk.renderer.generators.AtomMassGenerator
- All Implemented Interfaces:
IGenerator<IAtomContainer>
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 -
Method Summary
Modifier and TypeMethodDescriptionbooleanshowCarbon(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
-
Constructor Details
-
AtomMassGenerator
public AtomMassGenerator()
-
-
Method Details
-
showCarbon
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:
showCarbonin classBasicAtomGenerator- Parameters:
atom-IAtomwhich is being examinedcontainer-IAtomContainerof which the atom is partmodel- theRendererModel- Returns:
- true, when mass number information should be depicted
-