Andreas wrote:

>>So, currently that is the *only* data that you are getting from the
>> viewer?
>>
> yes. - Actually this is only Residue / chain related data, so far no
> atoms are accessed.
>
> Something else I would like to be able to, is to show the Jmol popup
> menu on right mouse click - but I did not succeed to see any effect of
>   viewer.popupMenu(e.getX(),e.getY());
> but I did not have too much time to look into this and most likely it is
> just a bug on my side.

The popup should work.

> -- and if I may suggest another possible way to communicate with the
> viewer: Events and Event listeners could be added directly to the viewer
> class, instead of the  JPanel. E.g. if the mouse is over an Atom, do a
> MouseOverAtomEvent. - So a event.getAtomIndex() could replace the
> viewer.findNearestAtomIndex() method. --- Just a thought.

The problem is that the viewer must run on 1.1 JVMs ... and the
EventListener model was not as developed in those days.

However, I am going to change/reimplement the viewer event listening
mechanism at some point, probably modelling it on the beans property
change mechanism.


Miguel



-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
_______________________________________________
Jmol-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jmol-developers

Reply via email to