@ 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 ) ; }
Paint a set of molecules .