public class LinkLineHandler extends java.lang.Object implements MapEventDispatcher.MapEventDispatchListener
Constructor and Description |
---|
LinkLineHandler(MapEventDispatcher mapEventDispatcher,
MapGroup linkGroup)
Generates a Broadcast receiver that generates a link between a first and a second UID.
|
Modifier and Type | Method and Description |
---|---|
int |
getNumDeferredLinks()
returns number of parents from each list
|
int |
getNumLinks()
returns number of parents that have a link
|
void |
onMapEvent(MapEvent event) |
boolean |
processLink(java.lang.String parentUid,
MapItem parentItem,
java.lang.String childUid,
MapItem childItem)
If child comes in with parent, then the parent Uid is given to add to deferred list.
|
public LinkLineHandler(MapEventDispatcher mapEventDispatcher, MapGroup linkGroup)
mapEventDispatcher
- the mapView to register / unregister item listeners for cases where there
are deferred links arriving.linkGroup
- the group which contains the associations/links.public boolean processLink(java.lang.String parentUid, MapItem parentItem, java.lang.String childUid, MapItem childItem)
parentUid
- unique identifier for the parentparentItem
- parent MapItem. One parent can have many children.childUid
- unique identifier for the childchildItem
- child MapItem. One child can only have one parent.public void onMapEvent(MapEvent event)
onMapEvent
in interface MapEventDispatcher.MapEventDispatchListener
public int getNumDeferredLinks()
public int getNumLinks()