Revision 30011 branches/v2_0_0_prep/extensions/extEditing/src/org/gvsig/editing/gui/cad/CADToolAdapter.java

View differences:

CADToolAdapter.java
40 40
import org.gvsig.fmap.geom.util.Converter;
41 41
import org.gvsig.fmap.geom.util.UtilFunctions;
42 42
import org.gvsig.fmap.mapcontext.MapContext;
43
import org.gvsig.fmap.mapcontext.MapContextLocator;
44
import org.gvsig.fmap.mapcontext.MapContextManager;
43 45
import org.gvsig.fmap.mapcontext.ViewPort;
44 46
import org.gvsig.fmap.mapcontext.layers.vectorial.FLyrVect;
45 47
import org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol;
46
import org.gvsig.fmap.mapcontext.rendering.symbols.SymbologyFactory;
47 48
import org.gvsig.fmap.mapcontrol.MapControl;
48 49
import org.gvsig.fmap.mapcontrol.tools.BehaviorException;
49 50
import org.gvsig.fmap.mapcontrol.tools.Behavior.Behavior;
......
138 139
	 * @see #getEditionManager()
139 140
	 */
140 141
	private EditionManager editionManager = new EditionManager();
142
	
143
	/**
144
	 * Reference to the MapContext library manager, used to create symbols
145
	 * and legends.
146
	 */
147
	private MapContextManager mapContextManager = MapContextLocator
148
			.getMapContextManager();
141 149

  
142 150
	/**
143 151
	 * Identifies that the data are absolute coordinates of the new point from
......
197 205
	/**
198 206
	 * Unused attribute.
199 207
	 */
200
	private ISymbol symbol = SymbologyFactory.createDefaultSymbolByShapeType(
208
	private ISymbol symbol = mapContextManager.createSymbol(
201 209
			Geometry.TYPES.POINT, Color.RED);
202 210

  
203 211
	/**

Also available in: Unified diff