public class MenuResourceFactory extends java.lang.Object implements MapMenuFactory, XmlResourceResolver
Constructor and Description |
---|
MenuResourceFactory(AtakMapView mapView,
MapData mapData,
MapAssets mapAssets,
MenuMapAdapter adapter)
|
Modifier and Type | Method and Description |
---|---|
MapMenuWidget |
create(MapItem item)
Implements the
MapMenuFactory
interface to supply MapMenuWidget instances as associated
with MapItem types. |
MapAction |
resolveAction(java.lang.String xmlResource)
Convenience function to resolve asset based XML configurations
into fully formed MapAction instances.
|
MapAction |
resolveAction(java.lang.String xmlResource,
ConfigEnvironment config)
Convenience function to resolve asset based XML configurations
into fully formed MapAction instances with custom configurations.
|
MapMenuWidget |
resolveMenu(java.lang.String xmlResource)
Convenience function to resolve asset based XML configurations
into fully formed MapMenuWidget instances.
|
MapMenuWidget |
resolveMenu(java.lang.String resource,
ConfigEnvironment config)
Convenience function to resolve asset based XML configurations
into fully formed MapMenuWidget instances with custom configurations.
|
public MenuResourceFactory(AtakMapView mapView, MapData mapData, MapAssets mapAssets, MenuMapAdapter adapter)
mapView
- representing the application's main map view superclassmapData
- associated with the main map viewmapAssets
- associated with the main map viewadapter
- providing associations between XML configuration and MapItem typespublic MapMenuWidget create(MapItem item)
MapMenuFactory
interface to supply MapMenuWidget instances as associated
with MapItem types.create
in interface MapMenuFactory
item
- key to factory logic providing MapMenuWidget instancespublic MapAction resolveAction(java.lang.String xmlResource)
resolveAction
in interface XmlResourceResolver
xmlResource
- path to asset describing a MapActionpublic MapAction resolveAction(java.lang.String xmlResource, ConfigEnvironment config)
resolveAction
in interface XmlResourceResolver
xmlResource
- path to asset describing a MapActionconfig
- container for parser parameters and resolverspublic MapMenuWidget resolveMenu(java.lang.String xmlResource)
resolveMenu
in interface XmlResourceResolver
xmlResource
- path to asset describing a MapMenuWidgetpublic MapMenuWidget resolveMenu(java.lang.String resource, ConfigEnvironment config)
resolveMenu
in interface XmlResourceResolver
resource
- path to asset describing a MapMenuWidgetconfig
- container for parser parameters and resolvers