code: @Override
      public void paint(IReactionSet reactionSet, IDrawVisitor drawVisitor, Rectangle2D bounds, boolean resetCenter) {
  
          // total up the bounding boxes
          Rectangle2D totalBounds = BoundsCalculator.calculateBounds(reactionSet);
  
          this.setupTransformToFit(bounds, totalBounds,
                  AverageBondLengthCalculator.calculateAverageBondLength(reactionSet), resetCenter);
  
          ElementGroup diagram = new ElementGroup();
          for (IReaction reaction : reactionSet.reactions()) {
              diagram.add(reactionRenderer.generateDiagram(reaction));
          }
  
          // paint them all
          this.paint(drawVisitor, diagram);
      }
docs: Paint a set of reactions.
  
  @param reactionSet the reaction 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