1 package JSci.instruments; 2 3 /** Interface for an object that is interested to receive the coordinates 4 measured by a ParticleTracker. The object can be registered to a 5 ParticleTracker.*/ 6 public interface ParticleTrackerListener { 7 /** This method is called by the ParticleTracker whenever it measures 8 the coordinates of the objects in the image. 9 @param time the timestamp of the image 10 @param n the number of the object (can be different from the index) 11 @param x the x coordinates of the templates 12 @param y the y coordinates of the templates 13 @param z the z coordinates of the templates; can be null if no z measure is made 14 */ 15 void receivePosition(long time,int[] n,double[] x,double[] y,double[] z); 16 } 17