My 2 cents, but wait for Miguel on this
Tobias Thierer wrote:
Hi,
I didn't get any reply to my previous eMail (feature request: customisable
jmol mouse interface), so I'm trying it again.
It is really important for me to customise JMol, specifically the Viewer
class. Important steps in that direction would be
1.) Make Viewer non-final (why the heck is it final in the first place!?)
Probably because only the classes in org.jmol.api were supposed to be
derived.
Other packages are the internal design of Jmol, not what should be
accessed from other applications.
Other developments shouldn't depend on Jmol internals.
2.) Provide a public setMouseManager() method for plugging in different
mouse interfaces.
Yes, maybe.
It would require adding a MouseManager interface or abstract class in
org.jmol.api and adding methods in some classes.
3.) I suppose the same holds for the other strategies that are part of
Viewer, e.g. fileManager, repaintManager, ...
I would prefer not to have to do those changes locally, which would make me
pull a copy of JMol into my repository, and keep it updated with the main
JMol repository.
So please, please, can you make JMol a little more customisable? Either of
1.) or 2.) would be greatly appreciated as a start, and it is so quick to do...
Not so quick (see my answer to 2), because the current design makes a
real separation between the api and the implementation.
Every access should be made through JmolViewer (in org.jmol.api) not
directly through Viewer.
It's not always easy to deal with it (see the limitations of Povray
export for example), but it is a needed design concept.
It needs to be enhanced, but IMHO it's very useful.
Nico
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Jmol-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-developers