I was wondering if the new CDK-Jchempaint 9 is able to render lone
pairs/radicals. I am using cdk 1.3.4 and tried to do the following code:
List<IAtomContainerGenerator> generators = new
//this does not work because it implements IGenerator instead of
Oops... yeah, sorry about that. I 'cleaned up' the API in version 9 a
bit, to have further distinguish between AtomContainer and Reaction
rendering, making IGenerator a super interface giving access to the
rendering parameters, so that the code no longer needed separate
methods for generators... but it seems I have been somewhat careless
with the patch... my apologies!
That should do it, at least for the lone pairs.
Renderer renderer = new Renderer(generators, new AWTFontManager());
The renderer can only be instantiated using a list of
Am I doing something wrong here?
No, this is a bug. I'll file it and fix in in version 10 of the patch.