Revision 43891 branches/org.gvsig.desktop-2018a/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.mapcontext/org.gvsig.fmap.mapcontext.api/src/main/java/org/gvsig/fmap/mapcontext/MapContextManager.java
MapContextManager.java | ||
---|---|---|
31 | 31 |
import java.awt.Font; |
32 | 32 |
import java.io.File; |
33 | 33 |
import java.util.List; |
34 |
import org.cresques.cts.ICoordTrans; |
|
34 | 35 |
|
35 | 36 |
import org.cresques.cts.IProjection; |
36 | 37 |
|
... | ... | |
63 | 64 |
*/ |
64 | 65 |
public interface MapContextManager extends Observable { |
65 | 66 |
|
67 |
public interface CreateLayerParameters { |
|
68 |
|
|
69 |
public DataStoreParameters getDataParameters(); |
|
70 |
|
|
71 |
public boolean useCache(); |
|
72 |
|
|
73 |
public ICoordTrans getCoordTrans(); |
|
74 |
} |
|
75 |
|
|
66 | 76 |
public static final String GET_DEFAULT_CRS = "MAPCONTEXTMANAGER_GET_DEFAULT_CRS"; |
67 | 77 |
public static final String CREATE_LEGEND = "MAPCONTEXTMANAGER_CREATE_LEGEND"; |
68 | 78 |
public static final String CREATE_MAPCONTEXT_DRAWER = "MAPCONTEXTMANAGER_CREATE_MAPCONTEXT_DRAWER"; |
... | ... | |
84 | 94 |
|
85 | 95 |
|
86 | 96 |
public MapContext createMapContext(); |
87 |
|
|
97 |
|
|
98 |
public boolean registerLayer( |
|
99 |
Class<? extends DataStore> dataStoreClass, |
|
100 |
Class<? extends FLayer> layerClass) ; |
|
101 |
|
|
88 | 102 |
/** |
89 | 103 |
* Create a new layer from the data parameters passed as parameter. |
90 | 104 |
* |
... | ... | |
98 | 112 |
public FLayer createLayer(String layerName, |
99 | 113 |
DataStoreParameters parameters) throws LoadLayerException; |
100 | 114 |
|
115 |
public FLayer createLayer( |
|
116 |
String layerName, |
|
117 |
CreateLayerParameters parameters |
|
118 |
) throws LoadLayerException; |
|
119 |
|
|
101 | 120 |
/** |
102 | 121 |
* Create a layer from a {@link DataStore}. |
103 | 122 |
* |
... | ... | |
111 | 130 |
public FLayer createLayer(String layerName, DataStore store) |
112 | 131 |
throws LoadLayerException; |
113 | 132 |
|
133 |
public FLayer createLayer( |
|
134 |
String layerName, |
|
135 |
DataStore store, |
|
136 |
CreateLayerParameters parameters |
|
137 |
) throws LoadLayerException; |
|
138 |
|
|
114 | 139 |
/** |
115 | 140 |
* Create a layer to be used as the {@link GraphicLayer}. |
116 | 141 |
* |
Also available in: Unified diff