test_class.file: display/renderbasic/src/test/java/org/openscience/cdk/renderer/BoundsCalculatorTest.java
test_class.identifier: BoundsCalculatorTest
test_case.body: @Test(expected = IllegalArgumentException.class)
      public void testCalculateBounds_IAtomContainer() {
          IAtomContainer container = new AtomContainer();
          container.addAtom(container.getBuilder().newInstance(IAtom.class, "C"));
          container.addAtom(container.getBuilder().newInstance(IAtom.class, "C"));
          BoundsCalculator.calculateBounds(container);
      }
test_case.class_method_signature: BoundsCalculatorTest.testCalculateBounds_IAtomContainer()
test_case.full_signature: @Test(expected = IllegalArgumentException.class) public void testCalculateBounds_IAtomContainer()
test_case.identifier: testCalculateBounds_IAtomContainer
test_case.invocations: addAtom newInstance getBuilder addAtom newInstance getBuilder calculateBounds
test_case.modifiers: @Test(expected = IllegalArgumentException.class) public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testCalculateBounds_IAtomContainer()
focal_class.file: display/renderbasic/src/main/java/org/openscience/cdk/renderer/BoundsCalculator.java
focal_class.identifier: BoundsCalculator
focal_class.class_method_signature: BoundsCalculator.calculateBounds(IChemModel chemModel)
focal_class.full_signature: public static Rectangle2D calculateBounds(IChemModel chemModel)
focal_class.identifier: calculateBounds
focal_class.modifiers: public static
focal_class.parameters: (IChemModel chemModel)
focal_class.return: Rectangle2D
focal_class.signature: Rectangle2D calculateBounds(IChemModel chemModel)
focal_class.class_method_signature: BoundsCalculator.calculateBounds(IReactionSet reactionSet)
focal_class.full_signature: public static Rectangle2D calculateBounds(IReactionSet reactionSet)
focal_class.identifier: calculateBounds
focal_class.modifiers: public static
focal_class.parameters: (IReactionSet reactionSet)
focal_class.return: Rectangle2D
focal_class.signature: Rectangle2D calculateBounds(IReactionSet reactionSet)
focal_class.class_method_signature: BoundsCalculator.calculateBounds(IReaction reaction)
focal_class.full_signature: public static Rectangle2D calculateBounds(IReaction reaction)
focal_class.identifier: calculateBounds
focal_class.modifiers: public static
focal_class.parameters: (IReaction reaction)
focal_class.return: Rectangle2D
focal_class.signature: Rectangle2D calculateBounds(IReaction reaction)
focal_class.class_method_signature: BoundsCalculator.calculateBounds(IAtomContainerSet moleculeSet)
focal_class.full_signature: public static Rectangle2D calculateBounds(IAtomContainerSet moleculeSet)
focal_class.identifier: calculateBounds
focal_class.modifiers: public static
focal_class.parameters: (IAtomContainerSet moleculeSet)
focal_class.return: Rectangle2D
focal_class.signature: Rectangle2D calculateBounds(IAtomContainerSet moleculeSet)
focal_class.class_method_signature: BoundsCalculator.calculateBounds(IAtomContainer atomContainer)
focal_class.full_signature: public static Rectangle2D calculateBounds(IAtomContainer atomContainer)
focal_class.identifier: calculateBounds
focal_class.modifiers: public static
focal_class.parameters: (IAtomContainer atomContainer)
focal_class.return: Rectangle2D
focal_class.signature: Rectangle2D calculateBounds(IAtomContainer atomContainer)
focal_method.body: public static Rectangle2D calculateBounds(IChemModel chemModel) {
          IAtomContainerSet moleculeSet = chemModel.getMoleculeSet();
          IReactionSet reactionSet = chemModel.getReactionSet();
          Rectangle2D totalBounds = new Rectangle2D.Double();
          if (moleculeSet != null) {
              totalBounds = totalBounds.createUnion(calculateBounds(moleculeSet));
          }
          if (reactionSet != null) {
              totalBounds = totalBounds.createUnion(calculateBounds(reactionSet));
          }
          return totalBounds;
      }
focal_method.class_method_signature: BoundsCalculator.calculateBounds(IChemModel chemModel)
focal_method.full_signature: public static Rectangle2D calculateBounds(IChemModel chemModel)
focal_method.identifier: calculateBounds
focal_method.invocations: getMoleculeSet getReactionSet createUnion calculateBounds createUnion calculateBounds
focal_method.modifiers: public static
focal_method.parameters: (IChemModel chemModel)
focal_method.return: Rectangle2D
focal_method.signature: Rectangle2D calculateBounds(IChemModel chemModel)