Revision 41141

View differences:

trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.mapcontext/org.gvsig.fmap.mapcontext.api/src/main/java/org/gvsig/fmap/mapcontext/MapContextManager.java
59 59
 */
60 60
public interface MapContextManager {
61 61

  
62
	public MapContext createMapContext();
63
	
62 64
	/**
63 65
	 * Create a new layer from the data parameters passed as parameter.
64 66
	 * 
trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.mapcontext/org.gvsig.fmap.mapcontext.api/src/main/java/org/gvsig/fmap/mapcontext/impl/DefaultMapContextManager.java
39 39
import java.util.Map;
40 40

  
41 41
import org.cresques.cts.IProjection;
42
import org.slf4j.Logger;
43
import org.slf4j.LoggerFactory;
44

  
45 42
import org.gvsig.fmap.crs.CRSFactory;
46 43
import org.gvsig.fmap.dal.DataServerExplorer;
47 44
import org.gvsig.fmap.dal.DataStore;
......
49 46
import org.gvsig.fmap.dal.exception.DataException;
50 47
import org.gvsig.fmap.dal.feature.FeatureStore;
51 48
import org.gvsig.fmap.dal.feature.FeatureType;
49
import org.gvsig.fmap.mapcontext.MapContext;
52 50
import org.gvsig.fmap.mapcontext.MapContextDrawer;
53 51
import org.gvsig.fmap.mapcontext.MapContextException;
54 52
import org.gvsig.fmap.mapcontext.MapContextLocator;
55 53
import org.gvsig.fmap.mapcontext.MapContextManager;
56 54
import org.gvsig.fmap.mapcontext.MapContextRuntimeException;
55
import org.gvsig.fmap.mapcontext.ViewPort;
57 56
import org.gvsig.fmap.mapcontext.exceptions.LoadLayerException;
58 57
import org.gvsig.fmap.mapcontext.layers.FLayer;
59 58
import org.gvsig.fmap.mapcontext.layers.LayerFactory;
......
75 74
import org.gvsig.tools.dynobject.exception.DynMethodException;
76 75
import org.gvsig.tools.dynobject.exception.DynMethodNotSupportedException;
77 76
import org.gvsig.tools.persistence.PersistenceManager;
77
import org.slf4j.Logger;
78
import org.slf4j.LoggerFactory;
78 79

  
79 80
/**
80 81
 * Default implementation of the {@link MapContextManager}.
......
96 97

  
97 98
	private String defaultVectorLegend;
98 99

  
100
	public MapContext createMapContext() {
101
		return new MapContext(new ViewPort());
102
	}
103
	
99 104
	public SymbolManager getSymbolManager() {
100 105
		return MapContextLocator.getSymbolManager();
101 106
	}

Also available in: Unified diff