Revision 10837 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/MapControl.java

View differences:

MapControl.java
219 219
		CompoundBehavior tool = new CompoundBehavior(tools);
220 220
		addMapTool(name, tool);
221 221
	}
222
	
222

  
223 223
	/**
224 224
	 * Devuelve una herramienta (tool) registrada.
225 225
	 *
......
232 232

  
233 233
	/**
234 234
	 * Devuelve los nombres de herramientas (tool) registradas.
235
	 * 
235
	 *
236 236
	 * @return Set (String) nombres de las herramientas.
237 237
	 */
238 238
	public Set getMapToolsKeySet() {
239 239
		return namesMapTools.keySet();
240 240
	}
241 241

  
242
	
242

  
243 243
	/**
244 244
	 * Returns true if this map control contains a tool named with the value
245 245
	 * passed in the toolName parameter. If you have added two tools with the
......
274 274
	public String getCurrentTool() {
275 275
		return currentTool;
276 276
	}
277
	
278 277

  
278

  
279 279
	/**
280 280
	 * Cancela el dibujado. Se espera a que la cancelaci?n surta efecto
281 281
	 */
......
1013 1013
		setTool(prevTool);
1014 1014
	}
1015 1015

  
1016
		public void zoomIn() {
1016
	public void zoomIn() {
1017
		getMapContext().clearAllCachingImageDrawnLayers();
1017 1018
		Behavior mapTool = (Behavior) namesMapTools.get("zoomIn");
1018 1019
		ViewPort vp=getViewPort();
1019 1020
		Rectangle2D r=getViewPort().getAdjustedExtent();
......
1027 1028
		}
1028 1029
	}
1029 1030
	public void zoomOut() {
1031
		getMapContext().clearAllCachingImageDrawnLayers();
1030 1032
		Behavior mapTool = (Behavior) namesMapTools.get("zoomOut");
1031 1033
		ViewPort vp=getViewPort();
1032 1034
		Rectangle2D r=getViewPort().getAdjustedExtent();

Also available in: Unified diff