> What about putting this text file inline in the class... i.e. as a > String... that would solve all possible security things... The > build.xml could put the current txt file form CDK in the appropriate > class... Egon,
The JmolViewer has these files embedded. And it works just fine. That is what allows the viewer to display .xyz, .mol, and .pdb file using the SimpleModelAdapter. The only problem with using those atom definitions is that your cdk users will not get to define their own atom properties (vdw radius, covalent radius, atom color). And you said that you wanted to work on reloading these attributes on the fly (for the guy who submitted that bug report). >> Since I could not work on the cdk stuff, I decided to take a different >> tack. I switched the applet to use a SimpleModelAdapter which only >> reads .xyz, .mol, and .pdb files. The result was an applet which was >> significantly smaller. Previously the applet was >650K ... the reduced >> applet is 256K. >> >> For web-based applications where end-users will need to download the >> applet this 400K is a tremendous difference. > > Which libraries made the difference, i.e. which one could you remove? This Simple applet was made without using *any* cdk libraries. >> We need to talk about this some more to see what can be done. >> Otherwise, I will feel compelled to argue for splitting the applet >> into two jars so that people who are running simple applications will >> not have such a heavy cost in download time. > > Yes, we need to have a close look at that for the new code base... I will plan on splitting up the applet into multiple .jar files. I'll try to make a small core for simple display of simple file formats. Then perhaps two more ... one for advanced file formats and another one for advanced rendering/scripting. Miguel ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Jmol-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jmol-developers
