public IRenderingElement generateRingElements ( IBond bond , IRing ring , RendererModel model ) { if ( isSingle ( bond ) && isStereoBond ( bond ) ) { return generateStereoElement ( bond , model ) ; } else if ( isDouble ( bond ) ) { ElementGroup pair = new ElementGroup ( ) ; pair . add ( generateBondElement ( bond , IBond . Order . SINGLE , model ) ) ; pair . add ( generateInnerElement ( bond , ring , model ) ) ; return pair ; } else { return generateBondElement ( bond , model ) ; } }
Generate ring elements such as inner - ring bonds or ring stereo elements .