code: @Override
      public void paint(IAtomContainerSet molecules, IDrawVisitor drawVisitor, Rectangle2D bounds, boolean resetCenter) {
  
          // total up the bounding boxes
          Rectangle2D totalBounds = BoundsCalculator.calculateBounds(molecules);
  
          this.setupTransformToFit(bounds, totalBounds,
                  AverageBondLengthCalculator.calculateAverageBondLength(molecules), resetCenter);
  
          IRenderingElement diagram = this.generateDiagram(molecules);
          this.paint(drawVisitor, diagram);
      }
docs: Paint a set of molecules.
  
  @param molecules   the {@link IAtomContainerSet} to paint
  @param drawVisitor the visitor that does the drawing
  @param bounds      the bounds on the screen
  @param resetCenter
  if true, set the draw center to be the center of bounds