Revision 30187 branches/v2_0_0_prep/libraries/libFMap_mapcontext/src/org/gvsig/fmap/mapcontext/layers/operations/InfoByPoint.java

View differences:

InfoByPoint.java
41 41
package org.gvsig.fmap.mapcontext.layers.operations;
42 42

  
43 43
import java.awt.Point;
44
import java.util.Iterator;
44 45

  
45 46
import org.gvsig.fmap.dal.exception.DataException;
46 47
import org.gvsig.fmap.mapcontext.exceptions.LoadLayerException;
......
63 64
	 *  singular implementation of this method would use it in a different way. The coordinates also depend on the implementation.
64 65
	 * @param cancel shared object that determines if this layer can continue being drawn
65 66
	 *
66
	 * @return an array with XML items that have the information of that point
67
	 * @return a DynObjectIterator. If the InfoByPoint Object is a vector layer it should return a Feature iterator. If the Object is a Layers object It will return an iterator of iterators
67 68
	 * @throws DataException TODO
68 69
	 * @throws LoadLayerException any exception produced using the driver.
69 70
	 */
70
	public XMLItem[] getInfo(Point p, double tolerance, Cancellable cancel) throws LoadLayerException, DataException;
71
	public Iterator getInfo(Point p, double tolerance, Cancellable cancel) throws LoadLayerException, DataException;
71 72
}

Also available in: Unified diff