Revision 20100 branches/v10/libraries/libFMap/src/com/iver/cit/gvsig/fmap/tools/RectangleSelectionListener.java

View differences:

RectangleSelectionListener.java
59 59

  
60 60

  
61 61
/**
62
 * Implementaci?n de la interfaz RectangleListener como herramienta para
63
 * realizar una selecci?n por rect?ngulo.
62
 * <p>Listener that selects all features of the active and vector layers which intersect with the defined
63
 *  rectangle area in the associated {@link MapControl MapControl} object.</p>
64 64
 *
65 65
 * @author Vicente Caballero Navarro
66 66
 */
67 67
public class RectangleSelectionListener implements RectangleListener {
68
	/**
69
	 * The image to display when the cursor is active.
70
	 */
68 71
	private final Image img = new ImageIcon(MapControl.class.getResource(
69 72
				"images/RectSelectCursor.gif")).getImage();
73

  
74
	/**
75
	 * The cursor used to work with this tool listener.
76
	 * 
77
	 * @see #getCursor()
78
	 */
70 79
	private Cursor cur = Toolkit.getDefaultToolkit().createCustomCursor(img,
71 80
			new Point(16, 16), "");
81

  
82
	/**
83
	 * Reference to the <code>MapControl</code> object that uses.
84
	 */
72 85
	private MapControl mapCtrl;
73 86

  
74 87
	/**
75
	 * Crea un nuevo AreaListenerImpl.
88
  	 * <p>Creates a new <code>RectangleSelectionListener</code> object.</p>
76 89
	 *
77
	 * @param mc MapControl.
90
	 * @param mc the <code>MapControl</code> where is defined the rectangle
78 91
	 */
79 92
	public RectangleSelectionListener(MapControl mc) {
80 93
		this.mapCtrl = mc;
81 94
	}
82 95

  
83
	/**
96
	/*
97
	 * (non-Javadoc)
84 98
	 * @see com.iver.cit.gvsig.fmap.tools.Listeners.RectangleListener#rectangle(com.iver.cit.gvsig.fmap.tools.Events.RectangleEvent)
85 99
	 */
86 100
	public void rectangle(RectangleEvent event) throws BehaviorException {
......
108 122
		}
109 123
	}
110 124

  
111
	/**
125
	/*
126
	 * (non-Javadoc)
112 127
	 * @see com.iver.cit.gvsig.fmap.tools.Listeners.ToolListener#getCursor()
113 128
	 */
114 129
	public Cursor getCursor() {
115 130
		return cur;
116 131
	}
117 132

  
118
	/**
133
	/*
134
	 * (non-Javadoc)
119 135
	 * @see com.iver.cit.gvsig.fmap.tools.Listeners.ToolListener#cancelDrawing()
120 136
	 */
121 137
	public boolean cancelDrawing() {

Also available in: Unified diff