public class DefaultMapContextManager extends Object implements MapContextManager
MapContextManager.CREATE_GRAPHICS_LAYER, CREATE_LAYER, CREATE_LEGEND, CREATE_LEGEND_READER, CREATE_MAPCONTEXT, CREATE_MAPCONTEXT_DRAWER, CREATE_SYMBOL, GET_DEFAULT_CRS, LOAD_LAYER, LOAD_MAPCONTEXT, LOAD_SYMBOLS, REGISTER_ICON_LAYER, REGISTER_LEGEND, REGISTER_LEGEND_READER, REGISTER_LEGEND_WRITER, REGISTER_MULTILAYER_SYMBOL, REGISTER_SYMBOL, SET_MAPCONTEXT_DRAWER| Constructor and Description |
|---|
DefaultMapContextManager() |
public MapContext createMapContext()
createMapContext in interface MapContextManagerpublic SymbolManager getSymbolManager()
MapContextManagerSymbolManager.getSymbolManager in interface MapContextManagerSymbolManagerpublic String getSymbolLibraryPath()
getSymbolLibraryPath in interface MapContextManagerSymbolPreferences}.public void setSymbolLibraryPath(String symbolLibraryPath)
setSymbolLibraryPath in interface MapContextManagerSymbolPreferences}.public void resetSymbolLibraryPath()
resetSymbolLibraryPath in interface MapContextManagerSymbolPreferences}.public Color getDefaultSymbolColor()
getDefaultSymbolColor in interface MapContextManagerSymbolPreferences}.public Color getDefaultSymbolFillColor()
getDefaultSymbolFillColor in interface MapContextManagerSymbolPreferences}.public Font getDefaultSymbolFont()
getDefaultSymbolFont in interface MapContextManagerSymbolPreferences}.public String getSymbolFileExtension()
public boolean isDefaultSymbolFillColorAleatory()
isDefaultSymbolFillColorAleatory in interface MapContextManagerSymbolPreferences}.public void resetDefaultSymbolColor()
resetDefaultSymbolColor in interface MapContextManagerSymbolPreferences}.public void resetDefaultSymbolFillColor()
resetDefaultSymbolFillColor in interface MapContextManagerSymbolPreferences}.public void resetDefaultSymbolFillColorAleatory()
resetDefaultSymbolFillColorAleatory in interface MapContextManagerSymbolPreferences}.public void resetDefaultSymbolFont()
resetDefaultSymbolFont in interface MapContextManagerSymbolPreferences}.public void setDefaultSymbolColor(Color defaultSymbolColor)
setDefaultSymbolColor in interface MapContextManagerSymbolPreferences}.public void setDefaultSymbolFillColor(Color defaultSymbolFillColor)
setDefaultSymbolFillColor in interface MapContextManagerSymbolPreferences}.public void setDefaultSymbolFillColorAleatory(boolean defaultSymbolFillColorAleatory)
setDefaultSymbolFillColorAleatory in interface MapContextManagerSymbolPreferences}.public void setDefaultSymbolFont(Font defaultSymbolFont)
setDefaultSymbolFont in interface MapContextManagerSymbolPreferences}.public void setSymbolFileExtension(String extension)
public int getDefaultCartographicSupportMeasureUnit()
getDefaultCartographicSupportMeasureUnit in interface MapContextManagerSymbolPreferences}.public void setDefaultCartographicSupportMeasureUnit(int defaultCartographicSupportMeasureUnit)
setDefaultCartographicSupportMeasureUnit in interface MapContextManagerSymbolPreferences}.public int getDefaultCartographicSupportReferenceSystem()
getDefaultCartographicSupportReferenceSystem in interface MapContextManagerSymbolPreferences}.public void setDefaultCartographicSupportReferenceSystem(int defaultCartographicSupportReferenceSystem)
setDefaultCartographicSupportReferenceSystem in interface MapContextManagerSymbolPreferences}.public MapContextDrawer createMapContextDrawerInstance(Class drawerClazz) throws MapContextException
MapContextManagerMapContextDrawer
implementation.createMapContextDrawerInstance in interface MapContextManagerdrawerClazz - the MapContextDrawer implementation classMapContextDrawer instanceMapContextException - if there is an error creating the new object instancepublic MapContextDrawer createDefaultMapContextDrawerInstance() throws MapContextException
MapContextManagerMapContextDrawer
implementation.createDefaultMapContextDrawerInstance in interface MapContextManagerMapContextDrawer instanceMapContextException - if there is an error creating the new object instancepublic void setDefaultMapContextDrawer(Class drawerClazz) throws MapContextException
MapContextManagerMapContextDrawer.setDefaultMapContextDrawer in interface MapContextManagerdrawerClazz - the MapContextDrawer class to useMapContextException - if there is any error setting the classpublic void validateMapContextDrawer(Class drawerClazz) throws MapContextException
validateMapContextDrawer in interface MapContextManagerMapContextExceptionpublic GraphicLayer createGraphicsLayer(IProjection projection)
MapContextManagerGraphicLayer.createGraphicsLayer in interface MapContextManagerprojection - used in the layer.GraphicLayer.public String getDefaultVectorLegend()
public void setDefaultVectorLegend(String defaultVectorLegend)
setDefaultVectorLegend in interface MapContextManagerpublic void registerLegend(String legendName, Class legendClass) throws MapContextRuntimeException
registerLegend in interface MapContextManagerMapContextRuntimeExceptionpublic ILegend createLegend(String legendName) throws MapContextRuntimeException
createLegend in interface MapContextManagerMapContextRuntimeExceptionpublic IVectorLegend createDefaultVectorLegend(int shapeType) throws MapContextRuntimeException
createDefaultVectorLegend in interface MapContextManagerMapContextRuntimeExceptionpublic void registerLegendReader(String format, Class readerClass) throws MapContextRuntimeException
MapContextManagerregisterLegendReader in interface MapContextManagerMapContextRuntimeExceptionpublic ILegendReader createLegendReader(String format) throws MapContextRuntimeException
MapContextManagercreateLegendReader in interface MapContextManagerMapContextRuntimeExceptionpublic void registerLegendWriter(Class legendClass, String format, Class writerClass) throws MapContextRuntimeException
MapContextManagerregisterLegendWriter in interface MapContextManagerlegendClass - Legend classformat - File type in mime format.writerClass - Class object of the writerMapContextRuntimeExceptionpublic ILegendWriter createLegendWriter(Class legendClass, String format) throws MapContextRuntimeException
MapContextManagercreateLegendWriter in interface MapContextManagerMapContextRuntimeExceptionpublic List getLegendReadingFormats()
MapContextManagergetLegendReadingFormats in interface MapContextManagerpublic List getLegendWritingFormats()
MapContextManagergetLegendWritingFormats in interface MapContextManagerpublic IMultiLayerSymbol createMultiLayerSymbol(int shapeType) throws MapContextRuntimeException
createMultiLayerSymbol in interface MapContextManagerMapContextRuntimeExceptionpublic IMultiLayerSymbol createMultiLayerSymbol(String symbolName) throws MapContextRuntimeException
createMultiLayerSymbol in interface MapContextManagerMapContextRuntimeExceptionpublic ISymbol createSymbol(int shapeType, Color color) throws MapContextRuntimeException
createSymbol in interface MapContextManagerMapContextRuntimeExceptionpublic ISymbol createSymbol(int shapeType) throws MapContextRuntimeException
createSymbol in interface MapContextManagerMapContextRuntimeExceptionpublic ISymbol createSymbol(String symbolName, Color color) throws MapContextRuntimeException
createSymbol in interface MapContextManagerMapContextRuntimeExceptionpublic ISymbol createSymbol(String symbolName) throws MapContextRuntimeException
createSymbol in interface MapContextManagerMapContextRuntimeExceptionpublic IWarningSymbol getWarningSymbol(String message, String symbolDesc, int symbolDrawExceptionType) throws MapContextRuntimeException
getWarningSymbol in interface MapContextManagerMapContextRuntimeExceptionpublic ISymbol[] loadSymbols(File folder, FileFilter filter) throws SymbolException
SymbolExceptionpublic ISymbol[] loadSymbols(File folder) throws SymbolException
SymbolExceptionpublic void registerMultiLayerSymbol(String symbolName, Class symbolClass) throws MapContextRuntimeException
registerMultiLayerSymbol in interface MapContextManagerMapContextRuntimeExceptionpublic void registerMultiLayerSymbol(String symbolName, int[] shapeTypes, Class symbolClass) throws MapContextRuntimeException
registerMultiLayerSymbol in interface MapContextManagerMapContextRuntimeExceptionpublic void registerSymbol(String symbolName, Class symbolClass) throws MapContextRuntimeException
registerSymbol in interface MapContextManagerMapContextRuntimeExceptionpublic void registerSymbol(String symbolName, int[] shapeTypes, Class symbolClass) throws MapContextException
registerSymbol in interface MapContextManagerMapContextExceptionpublic void saveSymbol(ISymbol symbol, String fileName, File folder, boolean overwrite) throws SymbolException
SymbolExceptionpublic void saveSymbol(ISymbol symbol, String fileName, File folder) throws SymbolException
SymbolExceptionpublic FLayer createLayer(String layerName, DataStoreParameters parameters) throws LoadLayerException
MapContextManagercreateLayer in interface MapContextManagerlayerName - name used in for the new layer.parameters - used for create the DataStore of the new layerLoadLayerExceptionpublic FLayer createLayer(String layerName, DataStore store) throws LoadLayerException
MapContextManagerDataStore.createLayer in interface MapContextManagerlayerName - name used in for the new layer.store - used for the new layerLoadLayerExceptionpublic ILegend getLegend(DataStore dataStore)
MapContextManagerDataStore.
If the legend doesn't exist it returns null.getLegend in interface MapContextManagerdataStore - the store that could have a legend.null.public ILabelingStrategy getLabelingStrategy(DataStore dataStore)
MapContextManagerDataStore.
If the labeling strategy doesn't exist it returns null.getLabelingStrategy in interface MapContextManagerdataStore - the store that could have a labeling strategy.null.public void registerIconLayer(String storeProviderName, String iconName)
registerIconLayer in interface MapContextManagerpublic String getIconLayer(DataStore store)
getIconLayer in interface MapContextManagerpublic IProjection getDefaultCRS()
MapContextManagergetDefaultCRS in interface MapContextManagerpublic Notification notifyLoadMapContext(MapContext mapContext)
public Notification notifyLoadLayer(FLayer layer)
public void addObserver(Observer o)
addObserver in interface Observablepublic void deleteObserver(Observer o)
deleteObserver in interface Observablepublic void deleteObservers()
deleteObservers in interface Observableprotected Notification notifyObservers(String type, Object value)
protected Notification notifyObservers(String type, Object value1, Object value2)
protected Notification notifyObservers(String type, Object value1, Object value2, Object value3)
public File getColorTableLibraryFolder()
getColorTableLibraryFolder in interface MapContextManagerpublic void setColorTableLibraryFolder(File colorTableLibraryFolder)
setColorTableLibraryFolder in interface MapContextManager