StructureDiagramGenerator { @Deprecated public void setBondLength(double bondLength) { throw new UnsupportedOperationException( "Bond length should be adjusted post layout" + " with GeometryUtil.scaleMolecule();"); } StructureDiagramGenerator(); private  StructureDiagramGenerator(IdentityTemplateLibrary identityLibrary);  StructureDiagramGenerator(IAtomContainer molecule); final void generateCoordinates(IAtomContainer mol); final void generateCoordinates(final IReaction reaction); void setMolecule(IAtomContainer mol, boolean clone); void setMolecule(IAtomContainer mol, boolean clone, Set<IAtom> afix, Set<IBond> bfix); @Deprecated void setUseTemplates(boolean useTemplates); void setUseIdentityTemplates(boolean use); @Deprecated boolean getUseTemplates(); @Deprecated void setTemplateHandler(TemplateHandler templateHandler); @Deprecated TemplateHandler getTemplateHandler(); void setMolecule(IAtomContainer molecule); void setAlignMappedReaction(boolean align); IAtomContainer getMolecule(); @Deprecated void generateExperimentalCoordinates(); @Deprecated void generateExperimentalCoordinates(Vector2d firstBondVector); void generateCoordinates(Vector2d firstBondVector); void generateCoordinates(); @Deprecated void setBondLength(double bondLength); double getBondLength(); IAtom getOtherBondAtom(IAtom atom, IBond bond); static final Comparator<IAtomContainer> LARGEST_FIRST_COMPARATOR; }
@Test(expected = UnsupportedOperationException.class) public void setBondLength() { StructureDiagramGenerator sdg = new StructureDiagramGenerator(); sdg.setBondLength(2); }