Revision 20098 trunk/applications/appgvSIG/src/com/iver/cit/gvsig/project/documents/view/toolListeners/SelectImageListener.java

View differences:

SelectImageListener.java
54 54

  
55 55

  
56 56
/**
57
* Extensi?n de la clase SelectImageListenerImple de FMap. Esta clase
58
* permite capturar el evento de la selecci?n de un punto sobre la vista
59
* . Controlara que capa de la pila que est? visible cae dentro del punto
60
* seleccionado poniendo esta capa como activa. En caso de que haya varias
61
* capas visibles sobre ese punto, pondr? como activa la capa superior.
62
*
63
* @author Nacho Brodin <brodin_ign@gva.es>
64
*/
57
 * <p>Listener to select the upper layer with raster data that has information in the associated <code>MapControl</code> object, down
58
 *  the position selected by a single click of any button of the mouse.</p>
59
 *
60
 * <p>The layer selected will be set as <i>active</i>, and the available controls for managing the data will be updated, enabling and
61
 *  disabling the necessary.</p>
62
 * 
63
 * <p>The status of the other layers will be changed to <i>not active</i>.</p>
64
 *
65
 * @deprecated
66
 * @author Nacho Brodin <brodin_ign@gva.es>
67
 */
65 68
public class SelectImageListener extends SelectImageListenerImpl {
66 69

  
67 70
	//FLyrRaster 			layer = null;
71

  
72
	/**
73
	 * Extent of the layer selected.
74
	 */
68 75
	Rectangle2D extentLayer = null;
76

  
69 77
	/**
70
	 * Contructor
71
	 * @param mapCtrl
78
	 * <p>Creates a new <code>SelectImageListener</code> object.</p>
79
	 * 
80
	 * @param mapCtrl the <code>MapControl</code> where are stored the layers
72 81
	 */
73 82
	public SelectImageListener(MapControl mapCtrl) {
74 83
		super(mapCtrl);
75 84
	}
76 85

  
77

  
78
	/* (non-Javadoc)
86
	/*
87
	 *  (non-Javadoc)
79 88
	 * @see com.iver.cit.gvsig.fmap.tools.Listeners.PointListener#point(com.iver.cit.gvsig.fmap.tools.Events.PointEvent)
80 89
	 */
81 90
	public void point(PointEvent event) {
......
99 108
		}
100 109
	}
101 110

  
111
	/**
112
	 * Determines if the <code>layer</code> is selected at a position starting by the end.
113
	 * 
114
	 * @param layer kind of layer
115
	 * @param pos number of positions starting by the end
116
	 * 
117
	 * @return <code>true</code> if the <code>layer</code> is selected at a position starting by the end, otherwise <code>false</code>
118
	 */
102 119
	private boolean select(FLayer layer){
103 120
		if (layer instanceof FLayers){
104 121
			FLayers laux=(FLayers)layer;

Also available in: Unified diff