code: @Override
      public Rectangle paint(IAtomContainer atomContainer, IDrawVisitor drawVisitor) {
          // the bounds of the model
          Rectangle2D modelBounds = BoundsCalculator.calculateBounds(atomContainer);
  
          // setup and draw
          this.setupTransformNatural(modelBounds);
          IRenderingElement diagram = generateDiagram(atomContainer);
          this.paint(drawVisitor, diagram);
  
          return this.convertToDiagramBounds(modelBounds);
      }
docs: {@inheritDoc}