public class ShapeDetailHandler extends CotDetailHandler
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
TAG |
| 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, parseIntpublic static final java.lang.String TAG
public boolean isSupported(MapItem item, CotEvent event, CotDetail detail)
CotDetailHandlerisSupported in class CotDetailHandleritem - Map itemevent - CoT Eventdetail - Associated CoT detailpublic boolean toCotDetail(MapItem item, CotEvent event, CotDetail detail)
CotDetailHandlertoCotDetail in class CotDetailHandleritem - 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)
CotDetailHandlertoItemMetadata in class CotDetailHandleritem - 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