Revision 20100 branches/v10/applications/appgvSIG/src/com/iver/cit/gvsig/project/documents/view/toolListeners/MapOverviewPanListener.java

View differences:

MapOverviewPanListener.java
60 60

  
61 61

  
62 62
/**
63
 * DOCUMENT ME!
63
 * <p>Listener for moving the extent of the associated {@link MapOverview MapOverview} object
64
 *  according the movement between the initial and final points of line determined by the movement
65
 *  dragging with the third button of the mouse.</p>
66
 * 
67
 * <p>Updates the extent of its <code>ViewPort</code> with the new position.</p>
64 68
 *
65 69
 * @author Vicente Caballero Navarro
66 70
 */
67 71
public class MapOverviewPanListener implements PanListener {
72
	/**
73
	 * The image to display when the cursor is active.
74
	 */
68 75
	private final Image icursor = new ImageIcon(MapControl.class.getResource(
69 76
				"images/CruxCursor.png")).getImage();
77

  
78
	/**
79
	 * The cursor used to work with this tool listener.
80
	 * 
81
	 * @see #getCursor()
82
	 */
70 83
	private Cursor cur = Toolkit.getDefaultToolkit().createCustomCursor(icursor,
71 84
			new Point(16, 16), "");
85

  
86
	/**
87
	 * Reference to the <code>MapControl</code> object that uses.
88
	 */
72 89
	protected MapControl mapControl;
73 90

  
74 91
	/**
75
	 * Crea un nuevo ZoomOutListenerImpl.
92
 	 * <p>Creates a new listener for changing the position of the extent of the associated {@link MapOverview MapOverview} object.</p>
76 93
	 *
77
	 * @param mapControl DOCUMENT ME!
94
	 * @param mapControl the <code>MapControl</code> object which represents the <code>MapOverview</code>  
78 95
	 */
79 96
	public MapOverviewPanListener(MapControl mapControl) {
80 97
		this.mapControl = mapControl;
81 98
	}
82 99

  
83
	/**
100
	/*
101
	 * (non-Javadoc)
84 102
	 * @see com.iver.cit.gvsig.fmap.tools.Listeners.ToolListener#getCursor()
85 103
	 */
86 104
	public Cursor getCursor() {
87 105
		return cur;
88 106
	}
89 107

  
90
	/**
108
	/*
109
	 * (non-Javadoc)
91 110
	 * @see com.iver.cit.gvsig.fmap.tools.Listeners.ToolListener#cancelDrawing()
92 111
	 */
93 112
	public boolean cancelDrawing() {
......
138 157

  
139 158
	}
140 159
	*/
141
	
142
	/** 
143
	 * Es llamado mientras se hace del 'Dragg' del 
144
	 * raton. Pinta el recuadro de la forma.
145
	 **/
160

  
161
	/*
162
	 * @see com.iver.cit.gvsig.fmap.tools.Listeners.PanListener#move(MoveEvent)
163
	 */
146 164
	public void move(MoveEvent event) throws BehaviorException {
147 165
		
148 166
		
......
181 199
	}
182 200
	
183 201
	/** 
184
	 * Comprueba que el estado de los botones
185
	 * sea el deseado para esta herramienta.
186
	 **/
202
	 * Determines if has pressed the button 3 of the mouse.
203
	 */
187 204
	private boolean checkModifiers(MouseEvent event) {
188 205
		
189 206
		int modifiers = event.getModifiers();

Also available in: Unified diff