API to turn the absolute stereo label on programmatically

User e951339c43

10-06-2011 13:41:04

Hi, I was wondering if there is a way to turn the absolute stereo label on programmatically. I have searched this forum and the closest I could find was this thread. However there has been no follow up on the subject since 2006 and I was wondering if this has been addressed.


 


The "Absolute" label can be turned on in MarvinSketch by invoking Options -> Show Absolute Labels as shown in the screenshot. I would like to have an API that I can access in my Swing app. Specifically,




 


Is this something that can be supported?


 


Thanks,


Ning Yu

ChemAxon 7c2d26e5cf

15-06-2011 11:42:42

You can set the visibility of the "Absolute" label by the following way:


MSketchPane msketchPane = new MSketchPane();
msketchPane.setParams(chemaxon.marvin.sketch.SketchParameterConstants.ABSOLUTE_LABEL_VISIBLE+"=true\n");

You can find further description about the setParams method and ABSOLUTE_LABEL_VISIBLE in the Marvin Beans API doc:


MarvinPane.setParams(String)


chemaxon.marvin.sketch.SketchParameterConstants.ABSOLUTE_LABEL_VISIBLE

User e951339c43

20-06-2011 18:15:16

Thanks for the reply! Can I set the text to be rendered instead of the default "Absolute"?

ChemAxon 7c2d26e5cf

21-06-2011 13:31:23

Currently, it is not possible. the "Absolute" label is hardcoded into Marvin.


Is it a keen issue for you?