test_class.declarator: generator
test_class.modifier: private
test_class.original_string: private BasicBondGenerator generator;
test_class.type: BasicBondGenerator
test_class.var_name: generator
test_class.file: display/renderbasic/src/test/java/org/openscience/cdk/renderer/generators/BasicBondGeneratorTest.java
test_class.identifier: BasicBondGeneratorTest
test_class.superclass: extends AbstractGeneratorTest
test_case.body: @Test
      public void testSquare() {
          IAtomContainer square = makeSquare();
  
          // generate all four bonds
          IRenderingElement root = generator.generate(square, model);
          List<IRenderingElement> elements = elementUtil.getAllSimpleElements(root);
          Assert.assertEquals(4, elements.size());
  
          // test that the center is at the origin
          Assert.assertEquals(new Point2d(0, 0), center(elements));
      }
test_case.class_method_signature: BasicBondGeneratorTest.testSquare()
test_case.full_signature: @Test public void testSquare()
test_case.identifier: testSquare
test_case.invocations: makeSquare generate getAllSimpleElements assertEquals size assertEquals center
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testSquare()
focal_class.declarator: bondWidth = new BondWidth()
focal_class.modifier: private
focal_class.original_string: private IGeneratorParameter<Double> bondWidth = new BondWidth();
focal_class.type: IGeneratorParameter<Double>
focal_class.var_name: bondWidth
focal_class.declarator: bondDistance = new BondDistance()
focal_class.modifier: private
focal_class.original_string: private IGeneratorParameter<Double> bondDistance = new BondDistance();
focal_class.type: IGeneratorParameter<Double>
focal_class.var_name: bondDistance
focal_class.declarator: defaultBondColor = new DefaultBondColor()
focal_class.modifier: private
focal_class.original_string: private IGeneratorParameter<Color> defaultBondColor = new DefaultBondColor();
focal_class.type: IGeneratorParameter<Color>
focal_class.var_name: defaultBondColor
focal_class.declarator: wedgeWidth = new WedgeWidth()
focal_class.modifier: private
focal_class.original_string: private IGeneratorParameter<Double> wedgeWidth = new WedgeWidth();
focal_class.type: IGeneratorParameter<Double>
focal_class.var_name: wedgeWidth
focal_class.declarator: ringCenterProportion = new TowardsRingCenterProportion()
focal_class.modifier: private
focal_class.original_string: private IGeneratorParameter<Double> ringCenterProportion = new TowardsRingCenterProportion();
focal_class.type: IGeneratorParameter<Double>
focal_class.var_name: ringCenterProportion
focal_class.declarator: logger               = LoggingToolFactory
                                                                       .createLoggingTool(BasicBondGenerator.class)
focal_class.modifier: private
focal_class.original_string: private ILoggingTool                logger               = LoggingToolFactory
                                                                       .createLoggingTool(BasicBondGenerator.class);
focal_class.type: ILoggingTool
focal_class.var_name: logger
focal_class.declarator: ringSet
focal_class.modifier: protected
focal_class.original_string: protected IRingSet                  ringSet;
focal_class.type: IRingSet
focal_class.var_name: ringSet
focal_class.declarator: overrideColor        = null
focal_class.modifier: private
focal_class.original_string: private Color                       overrideColor        = null;
focal_class.type: Color
focal_class.var_name: overrideColor
focal_class.declarator: overrideBondWidth    = -1
focal_class.modifier: private
focal_class.original_string: private double                      overrideBondWidth    = -1;
focal_class.type: double
focal_class.var_name: overrideBondWidth
focal_class.declarator: IDEAL_RINGSIZE       = 6
focal_class.modifier: private
focal_class.original_string: private int                         IDEAL_RINGSIZE       = 6;
focal_class.type: int
focal_class.var_name: IDEAL_RINGSIZE
focal_class.declarator: MIN_RINGSIZE_FACTOR  = 2.5
focal_class.modifier: private
focal_class.original_string: private double                      MIN_RINGSIZE_FACTOR  = 2.5;
focal_class.type: double
focal_class.var_name: MIN_RINGSIZE_FACTOR
focal_class.file: display/renderbasic/src/main/java/org/openscience/cdk/renderer/generators/BasicBondGenerator.java
focal_class.identifier: BasicBondGenerator
focal_class.interfaces: implements IGenerator<IAtomContainer>
focal_class.class_method_signature: BasicBondGenerator.BasicBondGenerator()
focal_class.full_signature: public  BasicBondGenerator()
focal_class.identifier: BasicBondGenerator
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  BasicBondGenerator()
focal_class.class_method_signature: BasicBondGenerator.setOverrideColor(Color color)
focal_class.full_signature: public void setOverrideColor(Color color)
focal_class.identifier: setOverrideColor
focal_class.modifiers: public
focal_class.parameters: (Color color)
focal_class.return: void
focal_class.signature: void setOverrideColor(Color color)
focal_class.class_method_signature: BasicBondGenerator.setOverrideBondWidth(double bondWidth)
focal_class.full_signature: public void setOverrideBondWidth(double bondWidth)
focal_class.identifier: setOverrideBondWidth
focal_class.modifiers: public
focal_class.parameters: (double bondWidth)
focal_class.return: void
focal_class.signature: void setOverrideBondWidth(double bondWidth)
focal_class.class_method_signature: BasicBondGenerator.getRingSet(IAtomContainer atomContainer)
focal_class.full_signature: protected IRingSet getRingSet(IAtomContainer atomContainer)
focal_class.identifier: getRingSet
focal_class.modifiers: protected
focal_class.parameters: (IAtomContainer atomContainer)
focal_class.return: IRingSet
focal_class.signature: IRingSet getRingSet(IAtomContainer atomContainer)
focal_class.class_method_signature: BasicBondGenerator.getColorForBond(IBond bond, RendererModel model)
focal_class.full_signature: public Color getColorForBond(IBond bond, RendererModel model)
focal_class.identifier: getColorForBond
focal_class.modifiers: public
focal_class.parameters: (IBond bond, RendererModel model)
focal_class.return: Color
focal_class.signature: Color getColorForBond(IBond bond, RendererModel model)
focal_class.class_method_signature: BasicBondGenerator.getWidthForBond(IBond bond, RendererModel model)
focal_class.full_signature: public double getWidthForBond(IBond bond, RendererModel model)
focal_class.identifier: getWidthForBond
focal_class.modifiers: public
focal_class.parameters: (IBond bond, RendererModel model)
focal_class.return: double
focal_class.signature: double getWidthForBond(IBond bond, RendererModel model)
focal_class.class_method_signature: BasicBondGenerator.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: BasicBondGenerator.generate(IBond currentBond, RendererModel model)
focal_class.full_signature: public IRenderingElement generate(IBond currentBond, RendererModel model)
focal_class.identifier: generate
focal_class.modifiers: public
focal_class.parameters: (IBond currentBond, RendererModel model)
focal_class.return: IRenderingElement
focal_class.signature: IRenderingElement generate(IBond currentBond, RendererModel model)
focal_class.class_method_signature: BasicBondGenerator.generateBondElement(IBond bond, RendererModel model)
focal_class.full_signature: public IRenderingElement generateBondElement(IBond bond, RendererModel model)
focal_class.identifier: generateBondElement
focal_class.modifiers: public
focal_class.parameters: (IBond bond, RendererModel model)
focal_class.return: IRenderingElement
focal_class.signature: IRenderingElement generateBondElement(IBond bond, RendererModel model)
focal_class.class_method_signature: BasicBondGenerator.generateBondElement(IBond bond, IBond.Order type, RendererModel model)
focal_class.full_signature: public IRenderingElement generateBondElement(IBond bond, IBond.Order type, RendererModel model)
focal_class.identifier: generateBondElement
focal_class.modifiers: public
focal_class.parameters: (IBond bond, IBond.Order type, RendererModel model)
focal_class.return: IRenderingElement
focal_class.signature: IRenderingElement generateBondElement(IBond bond, IBond.Order type, RendererModel model)
focal_class.class_method_signature: BasicBondGenerator.createLines(Point2d point1, Point2d point2, double width, double dist, Color color, ElementGroup group)
focal_class.full_signature: private void createLines(Point2d point1, Point2d point2, double width, double dist, Color color, ElementGroup group)
focal_class.identifier: createLines
focal_class.modifiers: private
focal_class.parameters: (Point2d point1, Point2d point2, double width, double dist, Color color, ElementGroup group)
focal_class.return: void
focal_class.signature: void createLines(Point2d point1, Point2d point2, double width, double dist, Color color, ElementGroup group)
focal_class.class_method_signature: BasicBondGenerator.generateDistanceData(Point2d point1, Point2d point2, double dist)
focal_class.full_signature: private double[] generateDistanceData(Point2d point1, Point2d point2, double dist)
focal_class.identifier: generateDistanceData
focal_class.modifiers: private
focal_class.parameters: (Point2d point1, Point2d point2, double dist)
focal_class.return: double[]
focal_class.signature: double[] generateDistanceData(Point2d point1, Point2d point2, double dist)
focal_class.class_method_signature: BasicBondGenerator.generateRingElements(IBond bond, IRing ring, RendererModel model)
focal_class.full_signature: public IRenderingElement generateRingElements(IBond bond, IRing ring, RendererModel model)
focal_class.identifier: generateRingElements
focal_class.modifiers: public
focal_class.parameters: (IBond bond, IRing ring, RendererModel model)
focal_class.return: IRenderingElement
focal_class.signature: IRenderingElement generateRingElements(IBond bond, IRing ring, RendererModel model)
focal_class.class_method_signature: BasicBondGenerator.generateInnerElement(IBond bond, IRing ring, RendererModel model)
focal_class.full_signature: public LineElement generateInnerElement(IBond bond, IRing ring, RendererModel model)
focal_class.identifier: generateInnerElement
focal_class.modifiers: public
focal_class.parameters: (IBond bond, IRing ring, RendererModel model)
focal_class.return: LineElement
focal_class.signature: LineElement generateInnerElement(IBond bond, IRing ring, RendererModel model)
focal_class.class_method_signature: BasicBondGenerator.generateStereoElement(IBond bond, RendererModel model)
focal_class.full_signature: private IRenderingElement generateStereoElement(IBond bond, RendererModel model)
focal_class.identifier: generateStereoElement
focal_class.modifiers: private
focal_class.parameters: (IBond bond, RendererModel model)
focal_class.return: IRenderingElement
focal_class.signature: IRenderingElement generateStereoElement(IBond bond, RendererModel model)
focal_class.class_method_signature: BasicBondGenerator.isDouble(IBond bond)
focal_class.full_signature: private boolean isDouble(IBond bond)
focal_class.identifier: isDouble
focal_class.modifiers: private
focal_class.parameters: (IBond bond)
focal_class.return: boolean
focal_class.signature: boolean isDouble(IBond bond)
focal_class.class_method_signature: BasicBondGenerator.isSingle(IBond bond)
focal_class.full_signature: private boolean isSingle(IBond bond)
focal_class.identifier: isSingle
focal_class.modifiers: private
focal_class.parameters: (IBond bond)
focal_class.return: boolean
focal_class.signature: boolean isSingle(IBond bond)
focal_class.class_method_signature: BasicBondGenerator.isStereoBond(IBond bond)
focal_class.full_signature: private boolean isStereoBond(IBond bond)
focal_class.identifier: isStereoBond
focal_class.modifiers: private
focal_class.parameters: (IBond bond)
focal_class.return: boolean
focal_class.signature: boolean isStereoBond(IBond bond)
focal_class.class_method_signature: BasicBondGenerator.bindsHydrogen(IBond bond)
focal_class.full_signature: protected boolean bindsHydrogen(IBond bond)
focal_class.identifier: bindsHydrogen
focal_class.modifiers: protected
focal_class.parameters: (IBond bond)
focal_class.return: boolean
focal_class.signature: boolean bindsHydrogen(IBond bond)
focal_class.class_method_signature: BasicBondGenerator.generateBond(IBond bond, RendererModel model)
focal_class.full_signature: public IRenderingElement generateBond(IBond bond, RendererModel model)
focal_class.identifier: generateBond
focal_class.modifiers: public
focal_class.parameters: (IBond bond, RendererModel model)
focal_class.return: IRenderingElement
focal_class.signature: IRenderingElement generateBond(IBond bond, RendererModel model)
focal_class.class_method_signature: BasicBondGenerator.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) {
          ElementGroup group = new ElementGroup();
          this.ringSet = this.getRingSet(container);
  
          //Sort the ringSet consistently to ensure consistent rendering.
          //If this is omitted, the bonds may 'tremble'.
          ringSet.sortAtomContainers(new AtomContainerComparatorBy2DCenter());
  
          for (IBond bond : container.bonds()) {
              group.add(MarkedElement.markupBond(this.generate(bond, model), bond));
          }
          return group;
      }
focal_method.class_method_signature: BasicBondGenerator.generate(IAtomContainer container, RendererModel model)
focal_method.full_signature: @Override public IRenderingElement generate(IAtomContainer container, RendererModel model)
focal_method.identifier: generate
focal_method.invocations: getRingSet sortAtomContainers bonds add markupBond generate
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)