label in mview

User 48b145d3f5

25-02-2011 19:52:16

Dear ChemAxon support,


I am using mview/msketch as part of a java application and I am trying to display molecular properties below each molecule.


This is the code



Molecule mol = p.getChemaxonMolecule();


mol.setProperty("logp","4");


mviewPane.setM(0,mol);


I have tried to use MViewParams but it I couldn't make it work..


Thanks,


Francesca



 



ChemAxon 7c2d26e5cf

28-02-2011 13:55:11

Please see the Molecule tables section of MarvinView paramaters.


Specify an advanced layout, following the instruction in the above document.


The following example can also help to learn the usage of the above parameters.



MarvinView Table View Example with Parameters


In the above example, if you modify the layout settings like this:


layout=:2:1:L:1:0:1:1:c:n:0:1:M:0:0:1:1:c:b:1:1

the label will be rendered under the canvas. The modified part is highlighted (rows and cols attribute).