public class ShapeMsdDetailHandler extends CotDetailHandler
MsdShape
Constructor and Description |
---|
ShapeMsdDetailHandler(MapView mapView) |
Modifier and Type | Method and Description |
---|---|
boolean |
toCotDetail(MapItem item,
CotEvent event,
CotDetail detail)
Convert map item metadata to a CoT detail
|
CommsMapComponent.ImportResult |
toItemMetadata(MapItem item,
CotEvent event,
CotDetail detail)
Convert CoT event detail to map item metadata
|
getDetailNames, getMapItem, getPoint, isSupported, parseDouble, parseInt
public ShapeMsdDetailHandler(MapView mapView)
public boolean toCotDetail(MapItem item, CotEvent event, CotDetail detail)
CotDetailHandler
toCotDetail
in class CotDetailHandler
item
- Map item to readevent
- Item's associated CoT eventdetail
- The CoT event root detail (add to this)public CommsMapComponent.ImportResult toItemMetadata(MapItem item, CotEvent event, CotDetail detail)
CotDetailHandler
toItemMetadata
in class CotDetailHandler
item
- Map itemevent
- Item's associated CoT eventdetail
- The detail associated with this handler (read from this)CommsMapComponent.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 later