Class MappingGenerator
- java.lang.Object
-
- org.openscience.cdk.renderer.generators.MappingGenerator
-
- All Implemented Interfaces:
IGenerator<IReaction>
public class MappingGenerator extends Object implements IGenerator<IReaction>
IGenerator
that will show how atoms map between the reactant and product side.- Source code:
- main
- Belongs to CDK module:
- renderextra
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MappingGenerator.AtomAtomMappingLineColor
The width on screen of an atom-atom mapping line.static class
MappingGenerator.MappingLineWidth
The width on screen of an atom-atom mapping line.static class
MappingGenerator.ShowAtomAtomMapping
Boolean by which atom-atom mapping depiction can be temporarily disabled.
-
Constructor Summary
Constructors Constructor Description MappingGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IRenderingElement
generate(IReaction reaction, RendererModel model)
Converts aIChemObject
from the chemical data model into something that can be drawn in the chemical drawing.List<IGeneratorParameter<?>>
getParameters()
Returns the list ofIGeneratorParameter
for this particular generator.
-
-
-
Method Detail
-
generate
public IRenderingElement generate(IReaction reaction, RendererModel model)
Converts aIChemObject
from the chemical data model into something that can be drawn in the chemical drawing.- Specified by:
generate
in interfaceIGenerator<IReaction>
- Parameters:
reaction
- the chemical entity to be depictedmodel
- the rendering parameters- Returns:
- a drawable chemical depiction component
-
getParameters
public List<IGeneratorParameter<?>> getParameters()
Returns the list ofIGeneratorParameter
for this particular generator.- Specified by:
getParameters
in interfaceIGenerator<IReaction>
- Returns:
- a
List
ofIGeneratorParameter
s
-
-