User d5d3760021
18-04-2016 16:10:24
Hello,
I'm working on a GUI tool using MarvinBeans for one of its panels. In the panel, I want to show different reactions (i.e., 2 dimensional sketches) corresponding to a user's selection. I'd like to be able to set the size of the panel to depend on the reaction itself since some take up significantly more space than others. E.g., something like this:
myMolecule = MolImporter.importMol(myData, myDataFormat);
structurePane = new MViewPane();
structurePane.setM(0, myMolecule);
structurePane.setPreferredSize(someAPI(myMolecule));
where someAPI takes into account font size, bond lengths, etc and tells me how much space the reaction needs. Is this possible?
Thanks!
I'm using:
Product Version: | MarvinSketch 6.0.1 |
Build Date: | 2013-06-21 |
Internal build id: | 6.0.1_b94 |
Operating System: | x86_64 Mac OS X 10.11.4 |
Java: | Oracle Corporation Java 1.7.0_79 |
Memory: | 3641.0M maximum, 245.5M total, 192.4M free |
Environment: | Application |
Browser: | - |