Dear CDK users, I am using cdk-1.3.8.jar + cdk-jchempaint-16.jar. When I render a molecule, only one atom is rendered (see attachment). Can anybody provide hint about what combination of CDK and cdk-jchempaint is stable or maybe my code is not adequate?
Thanks in advance. -- With best regards, Dmitry
<<attachment: sample.jpg>>
BufferedImage image = new BufferedImage(800, 600, BufferedImage.TYPE_INT_RGB); IMolecule molecule = MoleculeFactory.makeAdenine(); StructureDiagramGenerator sdg = new StructureDiagramGenerator(); sdg.setMolecule(molecule); sdg.generateCoordinates(); molecule = sdg.getMolecule(); Graphics2D graphics = image.createGraphics(); graphics.setColor(Color.WHITE); graphics.fillRect(0, 0, image.getWidth(), image.getHeight()); IRenderer<IAtomContainer> chemicalMoleculeRenderer = new AtomContainerRenderer(Arrays.asList(new BasicSceneGenerator(), new BasicBondGenerator(), new BasicAtomGenerator()), new AWTFontManager()); Rectangle imageRect = chemicalMoleculeRenderer.paint(molecule, new AWTDrawVisitor(graphics));
------------------------------------------------------------------------------ Protect Your Site and Customers from Malware Attacks Learn about various malware tactics and how to avoid them. Understand malware threats, the impact they can have on your business, and how you can protect your company and customers by using code signing. http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________ Cdk-user mailing list Cdk-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/cdk-user