code: @Override
      public Rectangle paint(IAtomContainerSet moleculeSet, IDrawVisitor drawVisitor) {
          // total up the bounding boxes
          Rectangle2D totalBounds = BoundsCalculator.calculateBounds(moleculeSet);
  
          // setup and draw
          this.setupTransformNatural(totalBounds);
  
          IRenderingElement diagram = this.generateDiagram(moleculeSet);
          this.paint(drawVisitor, diagram);
  
          return this.convertToDiagramBounds(totalBounds);
      }
docs: {@inheritDoc}