That's right. So that call is telling Jmol that there is a callback
listener. So now look for implementations of JmolCallbakListener. You will
find:


public class AppConsole extends JmolConsole ...
public abstract class JmolConsole extends GenericConsole ...
public abstract class GenericConsole implements JmolAppConsoleInterface,
JmolCallbackListener

There it is! You just make a class implement JmolCallbackListener and then
do in that class whatever you want to do to intercept those callbacks the
way GenericConsole does.

Note that it is not a callback distribution -- there is only one
"JmolCallbackListener" allowed -- if you want more, you need to implement
that yourself from that one class.

Bob


​
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Jmol-developers mailing list
Jmol-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-developers

Reply via email to