Class BasicGenerator
java.lang.Object
org.openscience.cdk.renderer.generators.BasicGenerator
- All Implemented Interfaces:
IGenerator<IAtomContainer>
Combination generator for basic drawing of molecules. It only creates drawing
elements for atoms and bonds, using the
BasicAtomGenerator and
BasicBondGenerator.- Author:
- maclean
-
Constructor Summary
ConstructorsConstructorDescriptionMake a basic generator that creates elements for atoms and bonds. -
Method Summary
Modifier and TypeMethodDescriptiongenerate(IAtomContainer ac, RendererModel model) Converts aIChemObjectfrom the chemical data model into something that can be drawn in the chemical drawing.Returns the list ofIGeneratorParameterfor this particular generator.
-
Constructor Details
-
BasicGenerator
public BasicGenerator()Make a basic generator that creates elements for atoms and bonds.
-
-
Method Details
-
generate
Converts aIChemObjectfrom the chemical data model into something that can be drawn in the chemical drawing.- Specified by:
generatein interfaceIGenerator<IAtomContainer>- Parameters:
ac- the chemical entity to be depictedmodel- the rendering parameters- Returns:
- a drawable chemical depiction component
-
getParameters
Returns the list ofIGeneratorParameterfor this particular generator.- Specified by:
getParametersin interfaceIGenerator<IAtomContainer>- Returns:
- a
ListofIGeneratorParameters
-