Revision 40927 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
MapContextManager.java | ||
---|---|---|
29 | 29 |
|
30 | 30 |
import java.awt.Color; |
31 | 31 |
import java.awt.Font; |
32 |
import java.util.List; |
|
32 | 33 |
|
33 | 34 |
import org.cresques.cts.IProjection; |
34 | 35 |
|
... | ... | |
150 | 151 |
IVectorLegend createDefaultVectorLegend(int shapeType) |
151 | 152 |
throws MapContextRuntimeException; |
152 | 153 |
|
153 |
void registerLegendWriter(String legendName, String format, |
|
154 |
// ================================================================ |
|
155 |
// = Legend reading/writing (GVSLEG, SLD, etc) |
|
156 |
|
|
157 |
/** |
|
158 |
* Registers legend writer. |
|
159 |
* Format is a MIME type string. Examples: |
|
160 |
* |
|
161 |
* "application/zip; subtype=gvsleg", |
|
162 |
* "text/xml; subtype=sld/1.0.0", |
|
163 |
* "text/xml; subtype=sld/1.1.0", |
|
164 |
* |
|
165 |
* @param legendClass Legend class |
|
166 |
* @param format File type in mime format. |
|
167 |
* @param writerClass Class object of the writer |
|
168 |
* @throws MapContextRuntimeException |
|
169 |
*/ |
|
170 |
void registerLegendWriter(Class legendClass, String format, |
|
154 | 171 |
Class writerClass) throws MapContextRuntimeException; |
155 | 172 |
|
173 |
/** |
|
174 |
* |
|
175 |
* Registers legend reader. |
|
176 |
* Format is a MIME type string. Examples: |
|
177 |
* |
|
178 |
* "application/zip; subtype=gvsleg", |
|
179 |
* "text/xml; subtype=sld/1.0.0", |
|
180 |
* "text/xml; subtype=sld/1.1.0", |
|
181 |
* |
|
182 |
* @param format |
|
183 |
* @param readerClass |
|
184 |
* @throws MapContextRuntimeException |
|
185 |
*/ |
|
156 | 186 |
void registerLegendReader(String format, Class readerClass) |
157 | 187 |
throws MapContextRuntimeException; |
158 | 188 |
|
159 |
ILegendWriter createLegendWriter(String legendName, String format) |
|
189 |
/** |
|
190 |
* Creates a legend writer for the specified legend class |
|
191 |
* |
|
192 |
*/ |
|
193 |
ILegendWriter createLegendWriter(Class legendClass, String format) |
|
160 | 194 |
throws MapContextException; |
161 | 195 |
|
196 |
/** |
|
197 |
* Creates a legend reader for the given format |
|
198 |
* ("sld", "gvsleg", etc are extracted from the MIME long string) |
|
199 |
*/ |
|
162 | 200 |
ILegendReader createLegendReader(String format) |
163 | 201 |
throws MapContextRuntimeException; |
202 |
|
|
203 |
/** |
|
204 |
* |
|
205 |
* Format is a MIME type string. Examples: |
|
206 |
* |
|
207 |
* "application/zip; subtype=gvsleg", |
|
208 |
* "text/xml; subtype=sld/1.0.0", |
|
209 |
* "text/xml; subtype=sld/1.1.0", |
|
210 |
* |
|
211 |
* @return A list of Strings with the available formats for reading |
|
212 |
* legends |
|
213 |
*/ |
|
214 |
List getLegendReadingFormats(); |
|
164 | 215 |
|
165 | 216 |
/** |
217 |
* |
|
218 |
* Format is a MIME type string. Examples: |
|
219 |
* |
|
220 |
* "application/zip; subtype=gvsleg", |
|
221 |
* "text/xml; subtype=sld/1.0.0", |
|
222 |
* "text/xml; subtype=sld/1.1.0", |
|
223 |
* |
|
224 |
* @return A list of Strings with the available formats for writing |
|
225 |
* legends |
|
226 |
*/ |
|
227 |
List getLegendWritingFormats(); |
|
228 |
|
|
229 |
|
|
230 |
// ================================================================ |
|
231 |
|
|
232 |
/** |
|
166 | 233 |
* @deprecated to be removed in gvSIG 2.0 |
167 | 234 |
* @see {@link SymbolPreferences}. |
168 | 235 |
*/ |
Also available in: Unified diff