test_class.declarator: generator
test_class.modifier: private
test_class.original_string: private AtomContainerBoundsGenerator generator;
test_class.type: AtomContainerBoundsGenerator
test_class.var_name: generator
test_class.file: display/renderextra/src/test/java/org/openscience/cdk/renderer/generators/AtomContainerBoundsGeneratorTest.java
test_class.identifier: AtomContainerBoundsGeneratorTest
test_class.superclass: extends AbstractGeneratorTest
test_case.body: @Test
      public void testEmptyContainer() {
          IAtomContainer emptyContainer = super.builder.newInstance(IAtomContainer.class);
  
          // nothing should be made
          IRenderingElement root = generator.generate(emptyContainer, model);
          List<IRenderingElement> elements = elementUtil.getAllSimpleElements(root);
          Assert.assertEquals(1, elements.size());
      }
test_case.class_method_signature: AtomContainerBoundsGeneratorTest.testEmptyContainer()
test_case.full_signature: @Test public void testEmptyContainer()
test_case.identifier: testEmptyContainer
test_case.invocations: newInstance generate getAllSimpleElements assertEquals size
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testEmptyContainer()
focal_class.file: display/renderextra/src/main/java/org/openscience/cdk/renderer/generators/AtomContainerBoundsGenerator.java
focal_class.identifier: AtomContainerBoundsGenerator
focal_class.interfaces: implements IGenerator<IAtomContainer>
focal_class.class_method_signature: AtomContainerBoundsGenerator.generate(IAtomContainer container, RendererModel model)
focal_class.full_signature: @Override public IRenderingElement generate(IAtomContainer container, RendererModel model)
focal_class.identifier: generate
focal_class.modifiers: @Override public
focal_class.parameters: (IAtomContainer container, RendererModel model)
focal_class.return: IRenderingElement
focal_class.signature: IRenderingElement generate(IAtomContainer container, RendererModel model)
focal_class.class_method_signature: AtomContainerBoundsGenerator.getParameters()
focal_class.full_signature: @Override public List<IGeneratorParameter<?>> getParameters()
focal_class.identifier: getParameters
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: List<IGeneratorParameter<?>>
focal_class.signature: List<IGeneratorParameter<?>> getParameters()
focal_method.body: @Override
      public IRenderingElement generate(IAtomContainer container, RendererModel model) {
          double[] minMax = GeometryUtil.getMinMax(container);
          return new RectangleElement(minMax[0], minMax[1], minMax[2], minMax[3], new Color(.7f, .7f, 1.0f));
  
      }
focal_method.class_method_signature: AtomContainerBoundsGenerator.generate(IAtomContainer container, RendererModel model)
focal_method.full_signature: @Override public IRenderingElement generate(IAtomContainer container, RendererModel model)
focal_method.identifier: generate
focal_method.invocations: getMinMax
focal_method.modifiers: @Override public
focal_method.parameters: (IAtomContainer container, RendererModel model)
focal_method.return: IRenderingElement
focal_method.signature: IRenderingElement generate(IAtomContainer container, RendererModel model)