public interface MapContextManager extends Observable
MapContextDrawer.| Modifier and Type | Field and Description |
|---|---|
static String |
CREATE_GRAPHICS_LAYER |
static String |
CREATE_LAYER |
static String |
CREATE_LEGEND |
static String |
CREATE_LEGEND_READER |
static String |
CREATE_MAPCONTEXT |
static String |
CREATE_MAPCONTEXT_DRAWER |
static String |
CREATE_SYMBOL |
static String |
GET_DEFAULT_CRS |
static String |
LOAD_LAYER |
static String |
LOAD_MAPCONTEXT |
static String |
LOAD_SYMBOLS |
static String |
REGISTER_ICON_LAYER |
static String |
REGISTER_LEGEND |
static String |
REGISTER_LEGEND_READER |
static String |
REGISTER_LEGEND_WRITER |
static String |
REGISTER_MULTILAYER_SYMBOL |
static String |
REGISTER_SYMBOL |
static String |
SET_MAPCONTEXT_DRAWER |
| Modifier and Type | Method and Description |
|---|---|
MapContextDrawer |
createDefaultMapContextDrawerInstance()
Creates a new instance of the default
MapContextDrawer
implementation. |
IVectorLegend |
createDefaultVectorLegend(int shapeType) |
GraphicLayer |
createGraphicsLayer(IProjection projection)
Create a layer to be used as the
GraphicLayer. |
FLayer |
createLayer(String layerName,
DataStore store)
Create a layer from a
DataStore. |
FLayer |
createLayer(String layerName,
DataStoreParameters parameters)
Create a new layer from the data parameters passed as parameter.
|
ILegend |
createLegend(String legendName) |
ILegendReader |
createLegendReader(String format)
Creates a legend reader for the given format
("sld", "gvsleg", etc are extracted from the MIME long string)
|
ILegendWriter |
createLegendWriter(Class legendClass,
String format)
Creates a legend writer for the specified legend class
|
MapContext |
createMapContext() |
MapContextDrawer |
createMapContextDrawerInstance(Class drawerClazz)
Creates a new instance of the provided
MapContextDrawer
implementation. |
IMultiLayerSymbol |
createMultiLayerSymbol(int shapeType)
Deprecated.
to be removed in gvSIG 2.0 @see
SymbolManager |
IMultiLayerSymbol |
createMultiLayerSymbol(String symbolName)
Deprecated.
to be removed in gvSIG 2.0 @see
SymbolManager |
ISymbol |
createSymbol(int shapeType)
Deprecated.
to be removed in gvSIG 2.0 @see
SymbolManager |
ISymbol |
createSymbol(int shapeType,
Color color)
Deprecated.
to be removed in gvSIG 2.0 @see
SymbolManager |
ISymbol |
createSymbol(String symbolName)
Deprecated.
to be removed in gvSIG 2.0 @see
SymbolManager |
ISymbol |
createSymbol(String symbolName,
Color color)
Deprecated.
to be removed in gvSIG 2.0 @see
SymbolManager |
File |
getColorTableLibraryFolder() |
int |
getDefaultCartographicSupportMeasureUnit()
Deprecated.
to be removed in gvSIG 2.0
|
int |
getDefaultCartographicSupportReferenceSystem()
Deprecated.
to be removed in gvSIG 2.0
|
IProjection |
getDefaultCRS()
Returns the default CRS.
|
Color |
getDefaultSymbolColor()
Deprecated.
to be removed in gvSIG 2.0
|
Color |
getDefaultSymbolFillColor()
Deprecated.
to be removed in gvSIG 2.0
|
Font |
getDefaultSymbolFont()
Deprecated.
to be removed in gvSIG 2.0
|
String |
getIconLayer(DataStore store) |
ILabelingStrategy |
getLabelingStrategy(DataStore dataStore)
It returns the labeling strategy associated with a
DataStore. |
ILegend |
getLegend(DataStore dataStore)
It returns the legend associated with a
DataStore. |
List |
getLegendReadingFormats()
Format is a MIME type string.
|
List |
getLegendWritingFormats()
Format is a MIME type string.
|
String |
getSymbolLibraryPath()
Deprecated.
to be removed in gvSIG 2.0
|
SymbolManager |
getSymbolManager()
Returns the current
SymbolManager. |
IWarningSymbol |
getWarningSymbol(String message,
String symbolDesc,
int symbolDrawExceptionType)
Deprecated.
to be removed in gvSIG 2.0 @see
SymbolManager |
boolean |
isDefaultSymbolFillColorAleatory()
Deprecated.
to be removed in gvSIG 2.0
|
void |
registerIconLayer(String store,
String iconName) |
void |
registerLegend(String legendName,
Class legendClass) |
void |
registerLegendReader(String format,
Class readerClass)
Registers legend reader.
|
void |
registerLegendWriter(Class legendClass,
String format,
Class writerClass)
Registers legend writer.
|
void |
registerMultiLayerSymbol(String symbolName,
Class symbolClass)
Deprecated.
to be removed in gvSIG 2.0 @see
SymbolManager |
void |
registerMultiLayerSymbol(String symbolName,
int[] shapeTypes,
Class symbolClass)
Deprecated.
to be removed in gvSIG 2.0 @see
SymbolManager |
void |
registerSymbol(String symbolName,
Class symbolClass)
Deprecated.
to be removed in gvSIG 2.0 @see
SymbolManager |
void |
registerSymbol(String symbolName,
int[] shapeTypes,
Class symbolClass)
Deprecated.
to be removed in gvSIG 2.0 @see
SymbolManager |
void |
resetDefaultSymbolColor()
Deprecated.
to be removed in gvSIG 2.0
|
void |
resetDefaultSymbolFillColor()
Deprecated.
to be removed in gvSIG 2.0
|
void |
resetDefaultSymbolFillColorAleatory()
Deprecated.
to be removed in gvSIG 2.0
|
void |
resetDefaultSymbolFont()
Deprecated.
to be removed in gvSIG 2.0
|
void |
resetSymbolLibraryPath()
Deprecated.
to be removed in gvSIG 2.0
|
void |
setColorTableLibraryFolder(File colorTableLibraryFolder) |
void |
setDefaultCartographicSupportMeasureUnit(int defaultCartographicSupportMeasureUnit)
Deprecated.
to be removed in gvSIG 2.0
|
void |
setDefaultCartographicSupportReferenceSystem(int defaultCartographicSupportReferenceSystem)
Deprecated.
to be removed in gvSIG 2.0
|
void |
setDefaultMapContextDrawer(Class drawerClazz)
Sets the class to use as the default implementation for the
MapContextDrawer. |
void |
setDefaultSymbolColor(Color defaultSymbolColor)
Deprecated.
to be removed in gvSIG 2.0
|
void |
setDefaultSymbolFillColor(Color defaultSymbolFillColor)
Deprecated.
to be removed in gvSIG 2.0
|
void |
setDefaultSymbolFillColorAleatory(boolean defaultSymbolFillColorAleatory)
Deprecated.
to be removed in gvSIG 2.0
|
void |
setDefaultSymbolFont(Font defaultSymbolFont)
Deprecated.
to be removed in gvSIG 2.0
|
void |
setDefaultVectorLegend(String legendName) |
void |
setSymbolLibraryPath(String symbolLibraryPath)
Deprecated.
to be removed in gvSIG 2.0
|
void |
validateMapContextDrawer(Class drawerClazz) |
addObserver, deleteObserver, deleteObserversstatic final String GET_DEFAULT_CRS
static final String CREATE_LEGEND
static final String CREATE_MAPCONTEXT_DRAWER
static final String SET_MAPCONTEXT_DRAWER
static final String CREATE_GRAPHICS_LAYER
static final String REGISTER_LEGEND
static final String REGISTER_LEGEND_READER
static final String CREATE_LEGEND_READER
static final String REGISTER_LEGEND_WRITER
static final String CREATE_SYMBOL
static final String LOAD_SYMBOLS
static final String REGISTER_MULTILAYER_SYMBOL
static final String REGISTER_SYMBOL
static final String CREATE_LAYER
static final String LOAD_LAYER
static final String REGISTER_ICON_LAYER
static final String CREATE_MAPCONTEXT
static final String LOAD_MAPCONTEXT
MapContext createMapContext()
FLayer createLayer(String layerName, DataStoreParameters parameters) throws LoadLayerException
layerName - name used in for the new layer.parameters - used for create the DataStore of the new layerLoadLayerExceptionFLayer createLayer(String layerName, DataStore store) throws LoadLayerException
DataStore.layerName - name used in for the new layer.store - used for the new layerLoadLayerExceptionGraphicLayer createGraphicsLayer(IProjection projection)
GraphicLayer.projection - used in the layer.GraphicLayer.SymbolManager getSymbolManager()
SymbolManager.SymbolManagervoid setDefaultMapContextDrawer(Class drawerClazz) throws MapContextException
MapContextDrawer.drawerClazz - the MapContextDrawer class to useMapContextException - if there is any error setting the classvoid validateMapContextDrawer(Class drawerClazz) throws MapContextException
MapContextExceptionMapContextDrawer createDefaultMapContextDrawerInstance() throws MapContextException
MapContextDrawer
implementation.MapContextDrawer instanceMapContextException - if there is an error creating the new object instanceMapContextDrawer createMapContextDrawerInstance(Class drawerClazz) throws MapContextException
MapContextDrawer
implementation.drawerClazz - the MapContextDrawer implementation classMapContextDrawer instanceMapContextException - if there is an error creating the new object instancevoid registerLegend(String legendName, Class legendClass) throws MapContextRuntimeException
MapContextRuntimeExceptionILegend createLegend(String legendName) throws MapContextRuntimeException
MapContextRuntimeExceptionvoid setDefaultVectorLegend(String legendName)
IVectorLegend createDefaultVectorLegend(int shapeType) throws MapContextRuntimeException
MapContextRuntimeExceptionvoid registerLegendWriter(Class legendClass, String format, Class writerClass) throws MapContextRuntimeException
legendClass - Legend classformat - File type in mime format.writerClass - Class object of the writerMapContextRuntimeExceptionvoid registerLegendReader(String format, Class readerClass) throws MapContextRuntimeException
format - readerClass - MapContextRuntimeExceptionILegendWriter createLegendWriter(Class legendClass, String format) throws MapContextException
MapContextExceptionILegendReader createLegendReader(String format) throws MapContextRuntimeException
MapContextRuntimeExceptionList getLegendReadingFormats()
List getLegendWritingFormats()
int getDefaultCartographicSupportMeasureUnit()
SymbolPreferences}.void setDefaultCartographicSupportMeasureUnit(int defaultCartographicSupportMeasureUnit)
SymbolPreferences}.int getDefaultCartographicSupportReferenceSystem()
SymbolPreferences}.void setDefaultCartographicSupportReferenceSystem(int defaultCartographicSupportReferenceSystem)
SymbolPreferences}.Color getDefaultSymbolColor()
SymbolPreferences}.void setDefaultSymbolColor(Color defaultSymbolColor)
SymbolPreferences}.void resetDefaultSymbolColor()
SymbolPreferences}.Color getDefaultSymbolFillColor()
SymbolPreferences}.void setDefaultSymbolFillColor(Color defaultSymbolFillColor)
SymbolPreferences}.void resetDefaultSymbolFillColor()
SymbolPreferences}.boolean isDefaultSymbolFillColorAleatory()
SymbolPreferences}.void setDefaultSymbolFillColorAleatory(boolean defaultSymbolFillColorAleatory)
SymbolPreferences}.void resetDefaultSymbolFillColorAleatory()
SymbolPreferences}.Font getDefaultSymbolFont()
SymbolPreferences}.void setDefaultSymbolFont(Font defaultSymbolFont)
SymbolPreferences}.void resetDefaultSymbolFont()
SymbolPreferences}.String getSymbolLibraryPath()
SymbolPreferences}.void setSymbolLibraryPath(String symbolLibraryPath)
SymbolPreferences}.void resetSymbolLibraryPath()
SymbolPreferences}.ISymbol createSymbol(String symbolName) throws MapContextRuntimeException
SymbolManagerMapContextRuntimeExceptionISymbol createSymbol(int shapeType) throws MapContextRuntimeException
SymbolManagerMapContextRuntimeExceptionISymbol createSymbol(String symbolName, Color color) throws MapContextRuntimeException
SymbolManagerMapContextRuntimeExceptionISymbol createSymbol(int shapeType, Color color) throws MapContextRuntimeException
SymbolManagerMapContextRuntimeExceptionIMultiLayerSymbol createMultiLayerSymbol(String symbolName) throws MapContextRuntimeException
SymbolManagerMapContextRuntimeExceptionIMultiLayerSymbol createMultiLayerSymbol(int shapeType) throws MapContextRuntimeException
SymbolManagerMapContextRuntimeExceptionvoid registerSymbol(String symbolName, Class symbolClass) throws MapContextRuntimeException
SymbolManagerMapContextRuntimeExceptionvoid registerSymbol(String symbolName, int[] shapeTypes, Class symbolClass) throws MapContextException
SymbolManagerMapContextExceptionvoid registerMultiLayerSymbol(String symbolName, Class symbolClass) throws MapContextRuntimeException
SymbolManagerMapContextRuntimeExceptionvoid registerMultiLayerSymbol(String symbolName, int[] shapeTypes, Class symbolClass) throws MapContextRuntimeException
SymbolManagerMapContextRuntimeExceptionIWarningSymbol getWarningSymbol(String message, String symbolDesc, int symbolDrawExceptionType) throws MapContextRuntimeException
SymbolManagerMapContextRuntimeExceptionILegend getLegend(DataStore dataStore)
DataStore.
If the legend doesn't exist it returns null.dataStore - the store that could have a legend.null.ILabelingStrategy getLabelingStrategy(DataStore dataStore)
DataStore.
If the labeling strategy doesn't exist it returns null.dataStore - the store that could have a labeling strategy.null.IProjection getDefaultCRS()
File getColorTableLibraryFolder()
void setColorTableLibraryFolder(File colorTableLibraryFolder)