MarvinBeans: MViewPane setRendering

User 2a533dbb3b

24-02-2011 20:32:25

I've been trying to programtically change how a molecule is displayed in MViewPane.  For example, "ballstick".  I've tried setting it the following way:
    mViewPane.setRendering(DispOptConsts.BALLSTICK_RENDERING_S);

This correctly displays the structure as "Ball & Stick".  The problem is if I I click on the mViewPane it reverts to "wireframe" display.

Is there a different method I should be using to modify the display?

ChemAxon 7c2d26e5cf

25-02-2011 16:22:58

We will check it.

ChemAxon 7c2d26e5cf

09-03-2011 14:08:51

Indeed, it is a bug.


Until it is fixed, I can recommend the following workaround:


 


viewPane.setRendering(BALLSTICK_RENDERING_S);
viewPane.getUserSettings().setViewRendering2d(BALLSTICK_RENDERING_S);

ChemAxon 7c2d26e5cf

09-09-2011 15:54:58

The bugfix is available in upcomming 5.6 release.