Class BoundsGenerator
- java.lang.Object
-
- org.openscience.cdk.renderer.generators.BoundsGenerator
-
- All Implemented Interfaces:
IGenerator<IReaction>
public class BoundsGenerator extends Object implements IGenerator<IReaction>
Produce a bounding rectangle for various chem objects.- Author:
- maclean
- Source code:
- main
- Belongs to CDK module:
- renderextra
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BoundsGenerator.BoundsColor
The color of the box drawn at the bounds of a molecule, molecule set, or reaction.
-
Constructor Summary
Constructors Constructor Description BoundsGenerator()
-
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
-
-