Class RingGenerator
- java.lang.Object
-
- org.openscience.cdk.renderer.generators.BasicBondGenerator
-
- org.openscience.cdk.renderer.generators.RingGenerator
-
- All Implemented Interfaces:
IGenerator<IAtomContainer>
public class RingGenerator extends BasicBondGenerator
Generates just the aromatic indicators for rings : circles, or light-gray inner bonds, depending on the value of CDKStyleAromaticity.- Source code:
- main
- Belongs to CDK module:
- renderbasic
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RingGenerator.CDKStyleAromaticity
Depicts aromaticity of rings in the original CDK style.static class
RingGenerator.MaxDrawableAromaticRing
The maximum ring size for which an aromatic ring should be drawn.static class
RingGenerator.RingProportion
The proportion of a ring bounds to use to draw the ring.static class
RingGenerator.ShowAromaticity
Determines whether rings should be drawn with a circle if they are aromatic.-
Nested classes/interfaces inherited from class org.openscience.cdk.renderer.generators.BasicBondGenerator
BasicBondGenerator.BondDistance, BasicBondGenerator.BondWidth, BasicBondGenerator.DefaultBondColor, BasicBondGenerator.TowardsRingCenterProportion, BasicBondGenerator.WedgeWidth
-
-
Field Summary
-
Fields inherited from class org.openscience.cdk.renderer.generators.BasicBondGenerator
ringSet
-
-
Constructor Summary
Constructors Constructor Description RingGenerator()
Make a generator for ring elements.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IRenderingElement
generateRingElements(IBond bond, IRing ring, RendererModel model)
Generate ring elements, such as inner-ring bonds or ring stereo elements.List<IGeneratorParameter<?>>
getParameters()
Returns the list ofIGeneratorParameter
for this particular generator.-
Methods inherited from class org.openscience.cdk.renderer.generators.BasicBondGenerator
bindsHydrogen, generate, generate, generateBond, generateBondElement, generateBondElement, generateInnerElement, getColorForBond, getRingSet, getWidthForBond, setOverrideBondWidth, setOverrideColor
-
-
-
-
Method Detail
-
generateRingElements
public IRenderingElement generateRingElements(IBond bond, IRing ring, RendererModel model)
Generate ring elements, such as inner-ring bonds or ring stereo elements.- Overrides:
generateRingElements
in classBasicBondGenerator
- Parameters:
bond
- the ring bond to use when generating elementsring
- the ring that the bond is inmodel
- the renderer model- Returns:
- one or more rendering elements
-
getParameters
public List<IGeneratorParameter<?>> getParameters()
Returns the list ofIGeneratorParameter
for this particular generator.- Specified by:
getParameters
in interfaceIGenerator<IAtomContainer>
- Overrides:
getParameters
in classBasicBondGenerator
- Returns:
- a
List
ofIGeneratorParameter
s
-
-