Many thanks to everybody who has replied to help me. Gilleain, nice hint: it has solved the problem.
While looking into CDK code, however, I was not able to interpret the difference between "scale" and "zoom" parameters. They both seem to serve the same goal... On 14.01.2011 17:53, gilleain torrance wrote: > Hi Dmitry, > > Your code needs the line: > > chemicalMoleculeRenderer.setup(molecule, new Rectangle(800, 600)); > > just before the call to paint. What this does is set the scale and > center in the renderer. If you do this, you get a picture of adenine > (attached). Yes, it is upside-down.... > > gilleain > > 2011/1/14 Dmitry Katsubo <dmitry.kats...@gmail.com>: >> 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 ------------------------------------------------------------------------------ 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