org.openscience.cdk.renderer.generators
Class BasicGenerator

java.lang.Object
  extended by org.openscience.cdk.renderer.generators.BasicGenerator
All Implemented Interfaces:
IGenerator<IAtomContainer>

@TestClass(value="org.openscience.cdk.renderer.generators.BasicGeneratorTest")
public class BasicGenerator
extends Object
implements 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
Belongs to CDK module:
renderbasic
Source code:
HEAD

Constructor Summary
BasicGenerator()
          Make a basic generator that creates elements for atoms and bonds.
 
Method Summary
 IRenderingElement generate(IAtomContainer ac, RendererModel model)
          Converts a IChemObject from the chemical data model into something that can be drawn in the chemical drawing.
 List<IGeneratorParameter<?>> getParameters()
          Returns the list of IGeneratorParameter for this particular generator.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicGenerator

public BasicGenerator()
Make a basic generator that creates elements for atoms and bonds.

Method Detail

generate

public IRenderingElement generate(IAtomContainer ac,
                                  RendererModel model)
Converts a IChemObject from the chemical data model into something that can be drawn in the chemical drawing.

Specified by:
generate in interface IGenerator<IAtomContainer>
Parameters:
ac - the chemical entity to be depicted
model - the rendering parameters
Returns:
a drawable chemical depiction component

getParameters

public List<IGeneratorParameter<?>> getParameters()
Returns the list of IGeneratorParameter for this particular generator.

Specified by:
getParameters in interface IGenerator<IAtomContainer>
Returns:
a List of IGeneratorParameters