Package org.gvsig.fmap.mapcontext
Class MapContextLocator
java.lang.Object
org.gvsig.tools.locator.AbstractLocator
org.gvsig.tools.locator.BaseLocator
org.gvsig.fmap.mapcontext.MapContextLocator
- All Implemented Interfaces:
org.gvsig.tools.locator.Locator,org.gvsig.tools.locator.Locator_withExists
public class MapContextLocator
extends org.gvsig.tools.locator.BaseLocator
Locator for the MapContext library.
- Author:
- Cèsar Ordiñana
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic LayerOrderManagerReturns the default order manager or null if none was registered as default.static MapContextLocatorstatic MapContextManagerReturn a reference to MapContextManager.static ListGets list of available order managers.static SymbolManagerReturn a reference to theSymbolManager.static voidregisterDefaultOrderManager(Class lom_class) Register the class as the default order manager.static voidregisterMapContextManager(Class clazz) Registers the Class implementing the MapContextManager interface.static voidregisterOrderManager(Class lom_class) Adds the class to the list of available order managersstatic voidregisterSymbolManager(Class clazz) Registers the Class implementing the SymbolManager interface.Methods inherited from class org.gvsig.tools.locator.BaseLocator
getLocatorNameMethods inherited from class org.gvsig.tools.locator.AbstractLocator
exists, get, getNames, register, register, register, register, registerDefault, registerDefault, toString
-
Field Details
-
MAPCONTEXT_MANAGER_NAME
- See Also:
-
SYMBOL_MANAGER_NAME
- See Also:
-
DEFAULT_LAYER_ORDER_MANAGER_NAME
- See Also:
-
LAYER_ORDER_MANAGER_NAME
- See Also:
-
LAYER_ORDER_MANAGER_EXT_POINT
- See Also:
-
-
Method Details
-
getInstance
-
getMapContextManager
public static MapContextManager getMapContextManager() throws org.gvsig.tools.locator.LocatorExceptionReturn a reference to MapContextManager.- Returns:
- a reference to MapContextManager
- Throws:
org.gvsig.tools.locator.LocatorException- if there is no access to the class or the class cannot be instantiated- See Also:
-
registerMapContextManager
Registers the Class implementing the MapContextManager interface.- Parameters:
clazz- implementing the MapContextManager interface
-
getSymbolManager
Return a reference to theSymbolManager.- Returns:
- a reference to the SymbolManager.
- Throws:
org.gvsig.tools.locator.LocatorException- if there is no access to the class or the class cannot be instantiated- See Also:
-
registerSymbolManager
Registers the Class implementing the SymbolManager interface.- Parameters:
clazz- implementing the SymbolManager interface
-
registerDefaultOrderManager
public static void registerDefaultOrderManager(Class lom_class) throws org.gvsig.tools.locator.LocatorException Register the class as the default order manager. This will only work if there is not a default order manager already. Also registers the class in the list of available order managers.- Parameters:
lom_class-- Throws:
org.gvsig.tools.locator.LocatorException
-
registerOrderManager
Adds the class to the list of available order managers- Parameters:
lom_class-
-
getDefaultOrderManager
public static LayerOrderManager getDefaultOrderManager() throws org.gvsig.tools.locator.LocatorExceptionReturns the default order manager or null if none was registered as default.- Returns:
- Throws:
org.gvsig.tools.locator.LocatorException
-
getOrderManagers
Gets list of available order managers.- Returns:
-