Class ReactionSceneGenerator
- java.lang.Object
-
- org.openscience.cdk.renderer.generators.ReactionSceneGenerator
-
- All Implemented Interfaces:
IGenerator<IReaction>
public class ReactionSceneGenerator extends Object implements IGenerator<IReaction>
Generator for general reaction scene components.- Source code:
- main
- Belongs to CDK module:
- renderextra
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ReactionSceneGenerator.ArrowHeadWidth
Double which indicates how wide the arrow head is in screen pixels.static class
ReactionSceneGenerator.ShowReactionBoxes
Boolean that indicates if boxes are drawn around the reaction.
-
Constructor Summary
Constructors Constructor Description ReactionSceneGenerator()
-
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
-
-