RS Labels

User 818520b6b8

03-05-2005 07:40:43

Hi all,





I want Marvin View bean to show always RS Labels for Absolute Stereo.





What should I do?





Shall I use viewer.setParams(


"#\n"+


"# MarvinView properties\n"+


"#\n"+


"rows=1\n"+


"cols=1\n" ..... ??????





Or is there another option?





I have the same problem with Marvin Sketch.





Thanks a lot.

ChemAxon 7c2d26e5cf

03-05-2005 12:39:23

You can set the visibility of R/S labels with several way:





- Selecting the required option from the "Edit->Misc->R/S labels" sub menu.





- Setting of the chiralitySupport parameter.


http://www.chemaxon.com/marvin/doc/dev/viewman.html#parameters.chiralitySupport


Code:
viewer.setParams(


"#\n"+


"# MarvinView properties\n"+


"#\n"+


"rows=1\n"+


"cols=1\n" +


"chiralitySupport=selected")






- Usage of MarvinPane.setChiralitySupport(int).


http://www.chemaxon.com/marvin/doc/api/chemaxon/marvin/beans/MarvinPane.html#setChiralitySupport(int)


Code:
viewer.setChiralitySupport(StereoConstants.CHIRALITYSUPPORT_SELECTED)

User 818520b6b8

03-05-2005 12:52:51

This one works fine:


"chiralitySupport=selected\n"





But viewer.setChiralitySupport(StereoConstants.CHIRALITYSUPPORT_SELECTED) does not exist in our version of API.





Thanks.

ChemAxon 7c2d26e5cf

03-05-2005 14:18:23

Have you imported "chemaxon.struc" package?


Code:
import chemaxon.struc.*;


...


MViewPane viewer;


...


viewer.setChiralitySupport(StereoConstants.CHIRALITYSUPPORT_SELECTED);



The above code works for me. I have used the latest Marvin (3.5.5).


Perhaps, you use an old version of Marvin Beans where setChiralitySupport() was not implemented yet.





Tamas

User 818520b6b8

03-05-2005 14:35:00

Yes, I'm using and older version.





Thanks a lot.