public class BullseyeDetailHandler extends CotDetailHandler
Constructor and Description |
---|
BullseyeDetailHandler(MapView mapView) |
Modifier and Type | Method and Description |
---|---|
boolean |
isSupported(MapItem item,
CotEvent event,
CotDetail detail)
Check if this handler supports this item
Used to filter out certain types from being processed by a handler
|
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, parseDouble, parseInt
public BullseyeDetailHandler(MapView mapView)
public boolean isSupported(MapItem item, CotEvent event, CotDetail detail)
CotDetailHandler
isSupported
in class CotDetailHandler
item
- Map itemevent
- CoT Eventdetail
- Associated CoT detailpublic 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