Class ExtendedAtomGenerator
java.lang.Object
org.openscience.cdk.renderer.generators.BasicAtomGenerator
org.openscience.cdk.renderer.generators.ExtendedAtomGenerator
- All Implemented Interfaces:
IGenerator<IAtomContainer>
A generator for atoms with mass, charge, etc.
- Author:
- maclean
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBoolean that indicates if atom type names should be given instead of element symbols.static classBoolean that indicates if implicit hydrogens should be depicted.Nested classes/interfaces inherited from class BasicAtomGenerator
BasicAtomGenerator.AtomColor, BasicAtomGenerator.AtomColorer, BasicAtomGenerator.AtomRadius, BasicAtomGenerator.ColorByType, BasicAtomGenerator.CompactAtom, BasicAtomGenerator.CompactShape, BasicAtomGenerator.KekuleStructure, BasicAtomGenerator.Shape, BasicAtomGenerator.ShowEndCarbons, BasicAtomGenerator.ShowExplicitHydrogensModifier and TypeClassDescriptionstatic classClass to hold the color by which atom labels are drawn.static classIAtomColorerused to draw elements.static classMagic number with unknown units that defines the radius around an atom, e.g. used for highlighting atoms.static classBoolean property that triggers atoms to be colored by type when set to true.static classBoolean parameters that will cause atoms to be drawn as filled shapes when set to true.static classShape to be used when drawing atoms in compact mode, as defined by theBasicAtomGenerator.CompactAtomparameter.static classDetermines whether structures should be drawn as Kekule structures, thus giving each carbon element explicitly, instead of not displaying the element symbol.static enumWhen atoms are selected or in compact mode, they will be covered by a shape determined by this enumeration.static classBoolean parameters that will show carbons with only one (non-hydrogen) neighbor to be drawn with an element symbol.static classBoolean property that triggers explicit hydrogens to be drawn if set to true. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongenerate(IAtomContainer container, IAtom atom, RendererModel model) Generate the rendering element(s) for a particular atom.Returns the list ofIGeneratorParameterfor this particular generator.Methods inherited from class BasicAtomGenerator
canDraw, generate, generateCompactElement, generateElement, getAtomColor, hasCoordinates, invisibleCarbon, invisibleHydrogen, isHydrogen, showCarbonModifier and TypeMethodDescriptionprotected booleancanDraw(IAtom atom, IAtomContainer container, RendererModel model) Checks an atom to see if it should be drawn.generate(IAtomContainer container, RendererModel model) Converts aIChemObjectfrom the chemical data model into something that can be drawn in the chemical drawing.generateCompactElement(IAtom atom, RendererModel model) Generate a compact element for an atom, such as a circle or a square, rather than text element.generateElement(IAtom atom, int alignment, RendererModel model) Generate an atom symbol element.protected ColorgetAtomColor(IAtom atom, RendererModel model) Returns the drawing color of the given atom.protected booleanhasCoordinates(IAtom atom) Checks an atom to see if it has 2D coordinates.protected booleaninvisibleCarbon(IAtom atom, IAtomContainer atomContainer, RendererModel model) Checks an atom to see if it is an 'invisible carbon' - that is, it is: a) a carbon atom and b) this carbon should not be shown.protected booleaninvisibleHydrogen(IAtom atom, RendererModel model) Checks an atom to see if it is an 'invisible hydrogen' - that is, it is a) an (explicit) hydrogen, and b) explicit hydrogens are set to off.protected booleanisHydrogen(IAtom atom) Determines if the atom is a hydrogen.protected booleanshowCarbon(IAtom carbonAtom, IAtomContainer container, RendererModel model) Checks a carbon atom to see if it should be shown.
-
Constructor Details
-
ExtendedAtomGenerator
public ExtendedAtomGenerator()
-
-
Method Details
-
generate
Generate the rendering element(s) for a particular atom.- Overrides:
generatein classBasicAtomGenerator- Parameters:
container- the atom container that the atom is fromatom- the atom to generate the rendering element formodel- the renderer model- Returns:
- a rendering element, or group of elements
-
getParameters
Returns the list ofIGeneratorParameterfor this particular generator.- Specified by:
getParametersin interfaceIGenerator<IAtomContainer>- Overrides:
getParametersin classBasicAtomGenerator- Returns:
- a
ListofIGeneratorParameters
-