test_class.declarator: generator
test_class.modifier: private
test_class.original_string: private ExtendedAtomGenerator generator;
test_class.type: ExtendedAtomGenerator
test_class.var_name: generator
test_class.file: display/renderextra/src/test/java/org/openscience/cdk/renderer/generators/ExtendedAtomGeneratorTest.java
test_class.identifier: ExtendedAtomGeneratorTest
test_class.superclass: extends BasicAtomGeneratorTest
test_case.body: @Test
      @Override
      public void testSingleBond() {
          IAtomContainer container = makeSingleBond();
          model.set(CompactAtom.class, true);
          model.set(CompactShape.class, Shape.OVAL);
          model.set(ShowEndCarbons.class, true);
  
          // generate the single line element
          IRenderingElement root = generator.generate(container, model);
          List<IRenderingElement> elements = elementUtil.getAllSimpleElements(root);
          Assert.assertEquals(2, elements.size());
  
          // test that the endpoints are distinct
          OvalElement ovalA = (OvalElement) elements.get(0);
          OvalElement ovalB = (OvalElement) elements.get(1);
          Assert.assertNotSame(0, distance(ovalA.xCoord, ovalA.yCoord, ovalB.xCoord, ovalB.yCoord));
      }
test_case.class_method_signature: ExtendedAtomGeneratorTest.testSingleBond()
test_case.full_signature: @Test @Override public void testSingleBond()
test_case.identifier: testSingleBond
test_case.invocations: makeSingleBond set set set generate getAllSimpleElements assertEquals size get get assertNotSame distance
test_case.modifiers: @Test @Override public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testSingleBond()
focal_class.declarator: showImplicitHydrogens = new ShowImplicitHydrogens()
focal_class.modifier: private
focal_class.original_string: private IGeneratorParameter<Boolean> showImplicitHydrogens = new ShowImplicitHydrogens();
focal_class.type: IGeneratorParameter<Boolean>
focal_class.var_name: showImplicitHydrogens
focal_class.declarator: showAtomTypeNames = new ShowAtomTypeNames()
focal_class.modifier: private
focal_class.original_string: private ShowAtomTypeNames showAtomTypeNames = new ShowAtomTypeNames();
focal_class.type: ShowAtomTypeNames
focal_class.var_name: showAtomTypeNames
focal_class.file: display/renderextra/src/main/java/org/openscience/cdk/renderer/generators/ExtendedAtomGenerator.java
focal_class.identifier: ExtendedAtomGenerator
focal_class.class_method_signature: ExtendedAtomGenerator.generate(IAtomContainer container, IAtom atom, RendererModel model)
focal_class.full_signature: @Override public IRenderingElement generate(IAtomContainer container, IAtom atom, RendererModel model)
focal_class.identifier: generate
focal_class.modifiers: @Override public
focal_class.parameters: (IAtomContainer container, IAtom atom, RendererModel model)
focal_class.return: IRenderingElement
focal_class.signature: IRenderingElement generate(IAtomContainer container, IAtom atom, RendererModel model)
focal_class.class_method_signature: ExtendedAtomGenerator.decorate(TextGroupElement textGroup, IAtomContainer container, IAtom atom, RendererModel model)
focal_class.full_signature: private void decorate(TextGroupElement textGroup, IAtomContainer container, IAtom atom, RendererModel model)
focal_class.identifier: decorate
focal_class.modifiers: private
focal_class.parameters: (TextGroupElement textGroup, IAtomContainer container, IAtom atom, RendererModel model)
focal_class.return: void
focal_class.signature: void decorate(TextGroupElement textGroup, IAtomContainer container, IAtom atom, RendererModel model)
focal_class.class_method_signature: ExtendedAtomGenerator.getNextPosition(Stack<Position> unused)
focal_class.full_signature: private Position getNextPosition(Stack<Position> unused)
focal_class.identifier: getNextPosition
focal_class.modifiers: private
focal_class.parameters: (Stack<Position> unused)
focal_class.return: Position
focal_class.signature: Position getNextPosition(Stack<Position> unused)
focal_class.class_method_signature: ExtendedAtomGenerator.getUnusedPositions(IAtomContainer container, IAtom atom)
focal_class.full_signature: private Stack<Position> getUnusedPositions(IAtomContainer container, IAtom atom)
focal_class.identifier: getUnusedPositions
focal_class.modifiers: private
focal_class.parameters: (IAtomContainer container, IAtom atom)
focal_class.return: Stack<Position>
focal_class.signature: Stack<Position> getUnusedPositions(IAtomContainer container, IAtom atom)
focal_class.class_method_signature: ExtendedAtomGenerator.getPosition(IAtom atom, IAtom connectedAtom)
focal_class.full_signature: private Position getPosition(IAtom atom, IAtom connectedAtom)
focal_class.identifier: getPosition
focal_class.modifiers: private
focal_class.parameters: (IAtom atom, IAtom connectedAtom)
focal_class.return: Position
focal_class.signature: Position getPosition(IAtom atom, IAtom connectedAtom)
focal_class.class_method_signature: ExtendedAtomGenerator.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_class.superclass: extends BasicAtomGenerator
focal_method.body: @Override
      public IRenderingElement generate(IAtomContainer container, IAtom atom, RendererModel model) {
          boolean drawNumbers = false;
          if (model.hasParameter(WillDrawAtomNumbers.class)) {
              drawNumbers = model.getParameter(WillDrawAtomNumbers.class).getValue();
          }
          if (!hasCoordinates(atom) || invisibleHydrogen(atom, model)
                  || (invisibleCarbon(atom, container, model) && !drawNumbers)) {
              return null;
          } else if (model.getParameter(CompactAtom.class).getValue()) {
              return this.generateCompactElement(atom, model);
          } else {
              String text;
              if (atom instanceof IPseudoAtom) {
                  text = ((IPseudoAtom) atom).getLabel();
              } else if (invisibleCarbon(atom, container, model) && drawNumbers) {
                  text = String.valueOf(container.indexOf(atom) + 1);
              } else {
                  text = atom.getSymbol();
              }
              Point2d point = atom.getPoint2d();
              Color ccolor = getAtomColor(atom, model);
              TextGroupElement textGroup = new TextGroupElement(point.x, point.y, text, ccolor);
              decorate(textGroup, container, atom, model);
              return textGroup;
          }
      }
focal_method.class_method_signature: ExtendedAtomGenerator.generate(IAtomContainer container, IAtom atom, RendererModel model)
focal_method.full_signature: @Override public IRenderingElement generate(IAtomContainer container, IAtom atom, RendererModel model)
focal_method.identifier: generate
focal_method.invocations: hasParameter getValue getParameter hasCoordinates invisibleHydrogen invisibleCarbon getValue getParameter generateCompactElement getLabel invisibleCarbon valueOf indexOf getSymbol getPoint2d getAtomColor decorate
focal_method.modifiers: @Override public
focal_method.parameters: (IAtomContainer container, IAtom atom, RendererModel model)
focal_method.return: IRenderingElement
focal_method.signature: IRenderingElement generate(IAtomContainer container, IAtom atom, RendererModel model)