Re: [Jmol-developers] public api for findNearestAtomIndex

2005-01-20 Thread Dmitry Markman
thanks for your answer, Miguel I took a look at my code and I realized that I'm already using JmolStatusListener but my problem is I want to know that user clicked on the window but didn't pick up any atom that's why I have the following code: addMouseListener(new MouseAdapter(){

Re: [Jmol-developers] public api for findNearestAtomIndex

2005-01-19 Thread Miguel
Dmitry wrote: > Hi > is there the public api to find the nearest atom from mouse click? > > what I found that package's method in the class org.jmol.viewer.Viewer > int findNearestAtomIndex(int x, int y) If you set up a jmol.api.JmolStatusListener then you will automatically be called every tim

[Jmol-developers] public api for findNearestAtomIndex

2005-01-19 Thread Dmitry Markman
Hi is there the public api to find the nearest atom from mouse click? what I found that package's method in the class org.jmol.viewer.Viewer int findNearestAtomIndex(int x, int y) but JmolViewer abstract class doesn't have any appropriate method (at least I didn't find it) I can use reflection o