User 44bb556150
27-07-2007 22:41:57
Can we get a lone pairs visualization option for the image export API? None is listed under the common available export options:
http://www.chemaxon.com/marvin/doc/user/images-doc.html#image
It's clearly possible since the MarvinView applet itself can do it and a respective function exists in chemaxon.marvin.util.MolPainterCommon. I tried hacking my own version of PngExport (attached) to achieve the effect, but got a Java SecurityException since my class isn't an official, signed part of the Marvin jar.
It should just be a matter of editing
chemaxon.marvin.modules.ImageExport
- parseOption: Add another option check for a "lonepairs" option
- initPainter: Use the above parsed option to actually set the respective attribute on the MolPainterCommon
Using Marvin 4.1.10
http://www.chemaxon.com/marvin/doc/user/images-doc.html#image
It's clearly possible since the MarvinView applet itself can do it and a respective function exists in chemaxon.marvin.util.MolPainterCommon. I tried hacking my own version of PngExport (attached) to achieve the effect, but got a Java SecurityException since my class isn't an official, signed part of the Marvin jar.
It should just be a matter of editing
chemaxon.marvin.modules.ImageExport
- parseOption: Add another option check for a "lonepairs" option
- initPainter: Use the above parsed option to actually set the respective attribute on the MolPainterCommon
Using Marvin 4.1.10