Use the DepictionGenerator (which in turn calls the StandardGenerator),
JavaDoc=
http://cdk.github.io/cdk/2.0/docs/api/index.html?org/openscience/cdk/depict/DepictionGenerator.html
DepictionGenerator dg = new DepictionGenerator().withAtomNumbers();
> IAtomContainer mol = ...;
> dg.depict(mol).writeTo("~/mol.svg");
Note these are the numbers 1..nAtoms in storage order and not IUPAC numbers.
On 21 April 2017 at 09:49, Nikolas Glaser <[email protected]> wrote:
> Okay right this way I found the Standard-Generator description on git hub.
>
> I think I can work with that. Sorry for the spam.
>
>
> > On 21. Apr 2017, at 10:46, Nikolas Glaser <[email protected]> wrote:
> >
> > Hello everyone,
> >
> > has someone an easy example method to draw an image of an AtomContainer
> with the AtomNumber (the index of the array of atoms) next to each atom?
> >
> > I can’t find a working solution since 2 hours. So I need some help.
> > Would be great if someone can help me.
> >
> > Cheers,
> > Niko
>
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Cdk-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/cdk-user
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Cdk-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cdk-user