TableSupport.setCellSize

User 9852713200

23-07-2009 20:13:08

Hello,


We're using Marvin 5.2.3.  In Marvin API, it seems that setCellSize method in TableSupport class does not work as expected.  No matter what kind of dimension gets passed in, the molecule stays at one size.


Is there any way to make the table cell bigger programmatically when a SD file is loaded?


Thanks!

ChemAxon 0a9e2a55e1

24-07-2009 18:13:44

Hello,


The setCellSize method sets the cell size in the table, but do not update the viewer. Loading the molecule after using the setCellSize method, or calling the enqueueUpdate method afterwards should update the molecule - and the size - too.


If these solutions does not work please send an example code, and we will check the bug.


Best Regards,


Peter

User 9852713200

28-07-2009 14:02:54

Hello,


It still does not work. Can you please use the code example below and show me how I can change the cell size via code (in spreadsheet view)?


http://www.chemaxon.com/marvin/examples/beans/view-table/ViewTable.java.html


 


Thanks!


 

User ef5e605ae6

30-07-2009 11:03:06











Hi,


No way, setCellSize is for GridBagView, not SpreadsheetView. I fixed the API doc. SpreadsheetView column width and row height cannot be set currently but I created TableOptions.setRowHeight and setColumnWidth for Marvin 5.2.4.

User 9852713200

30-07-2009 14:28:16

Thanks!   When will Marvin 5.2.4 be released?

ChemAxon 990acf0dec

03-08-2009 15:25:17

Hi,


5.2.4 is scheduled to August 10.


Best regards,


Akos

User 9852713200

18-08-2009 16:18:36

Hello,


We have tried setColumnWidth method in Marvin 5.2.4.  But this method does not change the width of structure column.  Is there any way to change the width of structure column?


Thanks!

ChemAxon e500b51457

20-08-2009 13:31:12

Hello,



We need some more time to check the problem, since August 20-21 are National Holidays in Hungary. In the meantime, could you send us a code example of the usage of the above mentioned method?

Best Regards,
Erika


 

User 9852713200

20-08-2009 21:30:08

For code example, please find the line "TableOptions tblopts = tableSupport.getTableOptions();" in the code below.


http://www.chemaxon.com/marvin/examples/beans/view-table/ViewTable.java.html


 


Then change it to the follow:


TableOptions tblopts = tableSupport.getTableOptions();

tblopts.setColumnWidth(200);


You'll see that the width of structure/molecule column is not changed.


 


Thanks!


 


 


 


 


 


 

ChemAxon e500b51457

25-08-2009 19:37:01

Hello,



Apologies for the late answer. We could reproduce it and we will try to fix the problem.

We will notify you as soon as we find a solution.



Best regards,

Erika.

User 9852713200

25-08-2009 19:45:43

OK.  Maybe you can add another method called "setMoleculeColumnWidth" since there are two underlying tables in the object.  It'll be up to users to choose the desired method.


Thanks!

User ef5e605ae6

29-08-2009 19:53:36











Fixed TableOptions.setColumnWidth(int) to change the default width in the left table too and created a two-argument version, setColumnWidth(int column, int w). Marvin 5.2.5 will contain the bugfix and the new method.