public class RouteImporter extends EditablePolylineImporter
_context, _group, _mapView, _prefs, FROM_MISSIONPACKAGE, FROM_STATESAVER, NOTIFICATION_IDcrcBlacklist, supportedMimeTypescontentType| Constructor and Description |
|---|
RouteImporter(MapView mapView,
RouteMapReceiver routeMapReceiver) |
| Modifier and Type | Method and Description |
|---|---|
PointMapItem |
createMarker(EditablePolyline poly,
CotDetail linkDetails)
Given a link from an AssocSet's Cot event, creates the corresponding item.
|
protected int |
getNotificationIcon(MapItem item)
Get an to represent this importer's notification
Note: Due to a limitation with the Android notification API,
this method MUST return an ATAK core icon resource ID
|
CommsMapComponent.ImportResult |
importData(CotEvent event,
android.os.Bundle extras) |
protected CommsMapComponent.ImportResult |
importMapItem(MapItem existing,
CotEvent event,
android.os.Bundle extras)
Import a map item via CoT event
Sub-class implementation is responsible for the following:
- Create the new map item (if it doesn't exist)
- Update item metadata based on event content
- Add the item to a map group (if not already added)
|
protected void |
postNotification(MapItem item)
Post notification for a newly received map item
|
createPoint, loadPointsaddToGroup, addToGroup, dispatchItemImported, findItem, findItem, isLocalImport, isStateSaverImport, persistgetSupportedCotTypes, importNonCotData, isPrefixOnly, setPrefixOnlycrcDetails, getSupportedMIMETypes, importData, importData, importData, parseColor, parseDouble, parseIntdeleteData, getContentType, importUriAsStreamclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdeleteData, getContentTypepublic RouteImporter(MapView mapView, RouteMapReceiver routeMapReceiver)
protected int getNotificationIcon(MapItem item)
MapItemImportergetNotificationIcon in class DrawingImporteritem - Map item (not null)public CommsMapComponent.ImportResult importData(CotEvent event, android.os.Bundle extras)
importData in interface CotEventImporterimportData in class MapItemImporterprotected void postNotification(MapItem item)
MapItemImporterpostNotification in class MapItemImporteritem - Map item to post the notification forprotected CommsMapComponent.ImportResult importMapItem(MapItem existing, CotEvent event, android.os.Bundle extras)
MapItemImporterimportMapItem in class DrawingImporterexisting - Existing map item (null if new)event - CoT eventextras - Import extrasCommsMapComponent.ImportResult.SUCCESS if handled successfully
CommsMapComponent.ImportResult.FAILURE if handled but failed
CommsMapComponent.ImportResult.IGNORE if not handled or N/A
CommsMapComponent.ImportResult.DEFERRED if we should try again laterpublic PointMapItem createMarker(EditablePolyline poly, CotDetail linkDetails)
EditablePolylineImportercreateMarker in class EditablePolylineImporterpoly - The associated polylinelinkDetails - The point details