|
From: E.L. W. (Egon) <eg...@sc...> - 2003-07-21 20:10:53
|
Hi all, The Renderer2D paintAtomSymbol() was lacking two things, the abililties to: 1. draw H3C-- instead of CH3-- 2. draw isotope info, e.g. 13C After some brainstorming this weekend, I gave this method a complete rewrite from scratch... the code had become dirty after addition of charge display, and some basic alignment... The result is not fully as I would like it to be, but quite extendable, and implements the above two new things... (and all of the old functionality). To give it a try, go checkout the JCPCDK module in jchempaint.sf.net's CVS, compile, run and try Insert->Insert SMILES, try: [13C]C(=O)NCCC[O-] And then do Edit->Add Implicit Hydrogens... This nicely demonstrates the SMILES parser and the rendering engine... (You might notice some strange things when zooming in...) Have fun, and feel free to send in your requests... Egon |