public interface MapContextManager extends Observable
MapContextDrawer
.Modifier and Type | Interface and Description |
---|---|
static interface |
MapContextManager.CreateLayerParameters |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CREATE_GRAPHICS_LAYER |
static java.lang.String |
CREATE_LAYER |
static java.lang.String |
CREATE_LEGEND |
static java.lang.String |
CREATE_LEGEND_READER |
static java.lang.String |
CREATE_MAPCONTEXT |
static java.lang.String |
CREATE_MAPCONTEXT_DRAWER |
static java.lang.String |
CREATE_SYMBOL |
static java.lang.String |
GET_DEFAULT_CRS |
static java.lang.String |
LOAD_LAYER |
static java.lang.String |
LOAD_MAPCONTEXT |
static java.lang.String |
LOAD_SYMBOLS |
static java.lang.String |
REGISTER_ICON_LAYER |
static java.lang.String |
REGISTER_LEGEND |
static java.lang.String |
REGISTER_LEGEND_READER |
static java.lang.String |
REGISTER_LEGEND_WRITER |
static java.lang.String |
REGISTER_MULTILAYER_SYMBOL |
static java.lang.String |
REGISTER_SYMBOL |
static java.lang.String |
SET_MAPCONTEXT_DRAWER |
Modifier and Type | Method and Description |
---|---|
MapContextDrawer |
createDefaultMapContextDrawerInstance()
Creates a new instance of the default
MapContextDrawer
implementation. |
RasterLegend |
createDefaultRasterLegend(java.util.List<BandDescriptor> bands) |
IVectorLegend |
createDefaultVectorLegend(int shapeType) |
GraphicLayer |
createGraphicsLayer(IProjection projection)
Create a layer to be used as the
GraphicLayer . |
FLayer |
createLayer(java.lang.String layerName,
DataStore store)
Create a layer from a
DataStore . |
FLayer |
createLayer(java.lang.String layerName,
DataStore store,
MapContextManager.CreateLayerParameters parameters) |
FLayer |
createLayer(java.lang.String layerName,
DataStoreParameters parameters)
Create a new layer from the data parameters passed as parameter.
|
FLayer |
createLayer(java.lang.String layerName,
MapContextManager.CreateLayerParameters parameters) |
LayerInformationBuilder |
createLayerInformationBuilder() |
ILegend |
createLegend(java.lang.String legendName) |
ILegendReader |
createLegendReader(java.lang.String format)
Creates a legend reader for the given format ("sld", "gvsleg", etc are
extracted from the MIME long string)
|
ILegendWriter |
createLegendWriter(java.lang.Class legendClass,
java.lang.String format)
Creates a legend writer for the specified legend class
|
MapContext |
createMapContext() |
MapContextDrawer |
createMapContextDrawerInstance(java.lang.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(java.lang.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,
java.awt.Color color)
Deprecated.
to be removed in gvSIG 2.0 @see
SymbolManager |
ISymbol |
createSymbol(java.lang.String symbolName)
Deprecated.
to be removed in gvSIG 2.0 @see
SymbolManager |
ISymbol |
createSymbol(java.lang.String symbolName,
java.awt.Color color)
Deprecated.
to be removed in gvSIG 2.0 @see
SymbolManager |
java.io.File |
getColorTableLibraryFolder() |
int |
getDefaultCartographicSupportMeasureUnit() |
int |
getDefaultCartographicSupportReferenceSystem() |
IProjection |
getDefaultCRS()
Returns the default CRS.
|
java.lang.String |
getDefaultRasterLegend() |
java.awt.Color |
getDefaultSymbolColor() |
java.awt.Color |
getDefaultSymbolFillColor() |
java.awt.Font |
getDefaultSymbolFont() |
java.lang.String |
getDefaultVectorLegend() |
javax.swing.Icon |
getIcon(int geometryType,
boolean hasSelection) |
java.lang.String |
getIconLayer(DataStore store) |
java.lang.String |
getIconLayer(java.lang.String providerName) |
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 . |
java.util.List |
getLegendReadingFormats()
Format is a MIME type string.
|
java.util.List |
getLegendWritingFormats()
Format is a MIME type string.
|
java.lang.String |
getSymbolLibraryPath() |
SymbolManager |
getSymbolManager()
Returns the current
SymbolManager . |
IWarningSymbol |
getWarningSymbol(java.lang.String message,
java.lang.String symbolDesc,
int symbolDrawExceptionType)
Deprecated.
to be removed in gvSIG 2.0 @see
SymbolManager |
boolean |
isDefaultSymbolFillColorAleatory() |
void |
registerIconLayer(java.lang.String store,
java.lang.String iconName) |
boolean |
registerLayer(java.lang.Class theClass,
java.lang.Class<? extends FLayer> layerClass) |
boolean |
registerLayer(Factory<FLayer> factory)
Register a factory to create new layers based on the parameters
of the store and the store itself.
|
void |
registerLegend(java.lang.String legendName,
java.lang.Class legendClass) |
void |
registerLegendReader(java.lang.String format,
java.lang.Class readerClass)
Registers legend reader.
|
void |
registerLegendWriter(java.lang.Class legendClass,
java.lang.String format,
java.lang.Class writerClass)
Registers legend writer.
|
void |
registerMultiLayerSymbol(java.lang.String symbolName,
java.lang.Class symbolClass)
Deprecated.
to be removed in gvSIG 2.0 @see
SymbolManager |
void |
registerMultiLayerSymbol(java.lang.String symbolName,
int[] shapeTypes,
java.lang.Class symbolClass)
Deprecated.
to be removed in gvSIG 2.0 @see
SymbolManager |
void |
registerSymbol(java.lang.String symbolName,
java.lang.Class symbolClass)
Deprecated.
to be removed in gvSIG 2.0 @see
SymbolManager |
void |
registerSymbol(java.lang.String symbolName,
int[] shapeTypes,
java.lang.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(java.io.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(java.lang.Class drawerClazz)
Sets the class to use as the default implementation for the
MapContextDrawer . |
void |
setDefaultRasterLegend(java.lang.String defaultRasterLegend) |
void |
setDefaultSymbolColor(java.awt.Color defaultSymbolColor)
Deprecated.
to be removed in gvSIG 2.0
|
void |
setDefaultSymbolFillColor(java.awt.Color defaultSymbolFillColor)
Deprecated.
to be removed in gvSIG 2.0
|
void |
setDefaultSymbolFillColorAleatory(boolean defaultSymbolFillColorAleatory)
Deprecated.
to be removed in gvSIG 2.0
|
void |
setDefaultSymbolFont(java.awt.Font defaultSymbolFont)
Deprecated.
to be removed in gvSIG 2.0
|
void |
setDefaultVectorLegend(java.lang.String legendName) |
void |
setSymbolLibraryPath(java.lang.String symbolLibraryPath)
Deprecated.
to be removed in gvSIG 2.0
|
void |
validateMapContextDrawer(java.lang.Class drawerClazz) |
addObserver, deleteObserver, deleteObservers
static final java.lang.String GET_DEFAULT_CRS
static final java.lang.String CREATE_LEGEND
static final java.lang.String CREATE_MAPCONTEXT_DRAWER
static final java.lang.String SET_MAPCONTEXT_DRAWER
static final java.lang.String CREATE_GRAPHICS_LAYER
static final java.lang.String REGISTER_LEGEND
static final java.lang.String REGISTER_LEGEND_READER
static final java.lang.String CREATE_LEGEND_READER
static final java.lang.String REGISTER_LEGEND_WRITER
static final java.lang.String CREATE_SYMBOL
static final java.lang.String LOAD_SYMBOLS
static final java.lang.String REGISTER_MULTILAYER_SYMBOL
static final java.lang.String REGISTER_SYMBOL
static final java.lang.String CREATE_LAYER
static final java.lang.String LOAD_LAYER
static final java.lang.String REGISTER_ICON_LAYER
static final java.lang.String CREATE_MAPCONTEXT
static final java.lang.String LOAD_MAPCONTEXT
MapContext createMapContext()
boolean registerLayer(java.lang.Class theClass, java.lang.Class<? extends FLayer> layerClass)
boolean registerLayer(Factory<FLayer> factory)
factory
- FLayer createLayer(java.lang.String layerName, DataStoreParameters parameters) throws LoadLayerException
layerName
- name used in for the new layer.parameters
- used for create the DataStore
of the new layerLoadLayerException
FLayer createLayer(java.lang.String layerName, MapContextManager.CreateLayerParameters parameters) throws LoadLayerException
LoadLayerException
FLayer createLayer(java.lang.String layerName, DataStore store) throws LoadLayerException
DataStore
.layerName
- name used in for the new layer.store
- used for the new layerLoadLayerException
FLayer createLayer(java.lang.String layerName, DataStore store, MapContextManager.CreateLayerParameters parameters) throws LoadLayerException
LoadLayerException
GraphicLayer createGraphicsLayer(IProjection projection)
GraphicLayer
.projection
- used in the layer.GraphicLayer
.SymbolManager getSymbolManager()
SymbolManager
.SymbolManager
void setDefaultMapContextDrawer(java.lang.Class drawerClazz) throws MapContextException
MapContextDrawer
.drawerClazz
- the MapContextDrawer
class to useMapContextException
- if there is any error setting the classvoid validateMapContextDrawer(java.lang.Class drawerClazz) throws MapContextException
MapContextException
MapContextDrawer createDefaultMapContextDrawerInstance() throws MapContextException
MapContextDrawer
implementation.MapContextDrawer
instanceMapContextException
- if there is an error creating the new object
instanceMapContextDrawer createMapContextDrawerInstance(java.lang.Class drawerClazz) throws MapContextException
MapContextDrawer
implementation.drawerClazz
- the MapContextDrawer
implementation classMapContextDrawer
instanceMapContextException
- if there is an error creating the new object
instancevoid registerLegend(java.lang.String legendName, java.lang.Class legendClass) throws MapContextRuntimeException
MapContextRuntimeException
ILegend createLegend(java.lang.String legendName) throws MapContextRuntimeException
MapContextRuntimeException
java.lang.String getDefaultVectorLegend()
void setDefaultVectorLegend(java.lang.String legendName)
java.lang.String getDefaultRasterLegend()
void setDefaultRasterLegend(java.lang.String defaultRasterLegend)
IVectorLegend createDefaultVectorLegend(int shapeType) throws MapContextRuntimeException
MapContextRuntimeException
RasterLegend createDefaultRasterLegend(java.util.List<BandDescriptor> bands)
void registerLegendWriter(java.lang.Class legendClass, java.lang.String format, java.lang.Class writerClass) throws MapContextRuntimeException
legendClass
- Legend classformat
- File type in mime format.writerClass
- Class object of the writerMapContextRuntimeException
void registerLegendReader(java.lang.String format, java.lang.Class readerClass) throws MapContextRuntimeException
format
- readerClass
- MapContextRuntimeException
ILegendWriter createLegendWriter(java.lang.Class legendClass, java.lang.String format) throws MapContextException
legendClass
- format
- MapContextException
ILegendReader createLegendReader(java.lang.String format) throws MapContextRuntimeException
format
- MapContextRuntimeException
java.util.List getLegendReadingFormats()
java.util.List getLegendWritingFormats()
int getDefaultCartographicSupportMeasureUnit()
SymbolPreferences}.
void setDefaultCartographicSupportMeasureUnit(int defaultCartographicSupportMeasureUnit)
defaultCartographicSupportMeasureUnit
- SymbolPreferences}.
int getDefaultCartographicSupportReferenceSystem()
SymbolPreferences}.
void setDefaultCartographicSupportReferenceSystem(int defaultCartographicSupportReferenceSystem)
defaultCartographicSupportReferenceSystem
- SymbolPreferences}.
java.awt.Color getDefaultSymbolColor()
SymbolPreferences}.
void setDefaultSymbolColor(java.awt.Color defaultSymbolColor)
defaultSymbolColor
- SymbolPreferences}.
void resetDefaultSymbolColor()
SymbolPreferences}.
java.awt.Color getDefaultSymbolFillColor()
SymbolPreferences}.
void setDefaultSymbolFillColor(java.awt.Color defaultSymbolFillColor)
defaultSymbolFillColor
- SymbolPreferences}.
void resetDefaultSymbolFillColor()
SymbolPreferences}.
boolean isDefaultSymbolFillColorAleatory()
SymbolPreferences}.
void setDefaultSymbolFillColorAleatory(boolean defaultSymbolFillColorAleatory)
defaultSymbolFillColorAleatory
- SymbolPreferences}.
void resetDefaultSymbolFillColorAleatory()
SymbolPreferences}.
java.awt.Font getDefaultSymbolFont()
SymbolPreferences}.
void setDefaultSymbolFont(java.awt.Font defaultSymbolFont)
defaultSymbolFont
- SymbolPreferences}.
void resetDefaultSymbolFont()
SymbolPreferences}.
java.lang.String getSymbolLibraryPath()
SymbolPreferences}.
void setSymbolLibraryPath(java.lang.String symbolLibraryPath)
symbolLibraryPath
- SymbolPreferences}.
void resetSymbolLibraryPath()
SymbolPreferences}.
ISymbol createSymbol(java.lang.String symbolName) throws MapContextRuntimeException
SymbolManager
symbolName
- MapContextRuntimeException
ISymbol createSymbol(int shapeType) throws MapContextRuntimeException
SymbolManager
shapeType
- MapContextRuntimeException
ISymbol createSymbol(java.lang.String symbolName, java.awt.Color color) throws MapContextRuntimeException
SymbolManager
symbolName
- color
- MapContextRuntimeException
ISymbol createSymbol(int shapeType, java.awt.Color color) throws MapContextRuntimeException
SymbolManager
shapeType
- color
- MapContextRuntimeException
IMultiLayerSymbol createMultiLayerSymbol(java.lang.String symbolName) throws MapContextRuntimeException
SymbolManager
symbolName
- MapContextRuntimeException
IMultiLayerSymbol createMultiLayerSymbol(int shapeType) throws MapContextRuntimeException
SymbolManager
shapeType
- MapContextRuntimeException
void registerSymbol(java.lang.String symbolName, java.lang.Class symbolClass) throws MapContextRuntimeException
SymbolManager
symbolName
- symbolClass
- MapContextRuntimeException
void registerSymbol(java.lang.String symbolName, int[] shapeTypes, java.lang.Class symbolClass) throws MapContextException
SymbolManager
symbolName
- shapeTypes
- symbolClass
- MapContextException
void registerMultiLayerSymbol(java.lang.String symbolName, java.lang.Class symbolClass) throws MapContextRuntimeException
SymbolManager
symbolName
- symbolClass
- MapContextRuntimeException
void registerMultiLayerSymbol(java.lang.String symbolName, int[] shapeTypes, java.lang.Class symbolClass) throws MapContextRuntimeException
SymbolManager
symbolName
- shapeTypes
- symbolClass
- MapContextRuntimeException
IWarningSymbol getWarningSymbol(java.lang.String message, java.lang.String symbolDesc, int symbolDrawExceptionType) throws MapContextRuntimeException
SymbolManager
message
- symbolDesc
- symbolDrawExceptionType
- MapContextRuntimeException
ILegend 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
.void registerIconLayer(java.lang.String store, java.lang.String iconName)
java.lang.String getIconLayer(DataStore store)
java.lang.String getIconLayer(java.lang.String providerName)
IProjection getDefaultCRS()
java.io.File getColorTableLibraryFolder()
void setColorTableLibraryFolder(java.io.File colorTableLibraryFolder)
LayerInformationBuilder createLayerInformationBuilder()
javax.swing.Icon getIcon(int geometryType, boolean hasSelection)