I was interested in making Jmol work on Android and spent some time refactoring
the code. The challenge was to isolate the graphics toolkit since Android
doesn't support Swing.
By removing the dependency on Swing I was able to successfully create a simple
Jmol Android App. The app is capable of loading models and user interaction
(rotate and zoom) via the touch panel (although I haven't implemented
pinch-zoom yet). I tried a variety of molecules from PDB.org without problems.
Some screenshots:
https://skydrive.live.com/redir.aspx?cid=38307cadfc15224b&page=play&resid=38307CADFC15224B!105&authkey=aMGRb02VYIs%24
The refactoring turned out to not be extensive in terms of number of modified
files but required the separation of the Swing Frames into their own project.
That effectively created a core Jmol library which doesn't have any UI. The
existing Swing Frames and applets are built on top of it, as well as the
Android app.
To further test the library I compiled it with IKVM into a .NET DLL. That
allowed me to create a native Windows executable written in C#, no JVM
required. It could make it easier for people to integrate Jmol into a variety
of other projects.
I worked off of a trunk snapshot a few months old. I would be glad to discuss
my changes if there is interest in integrating them.
Mario
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
Jmol-developers mailing list
Jmol-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-developers