public final class RootMapGroup extends DefaultMapGroup implements DeepHitTestQuery
| Modifier and Type | Class and Description |
|---|---|
static class |
RootMapGroup.FastUIDLookup
Keeps a cache of all items that have been added to the map for fast UID lookup.
|
DefaultMapGroup.MetaDataMapItemFilterMapGroup.MapItemsCallback, MapGroup.OnFriendlyNameChangedListener, MapGroup.OnGroupListChangedListener, MapGroup.OnItemCallback<T extends MapItem>, MapGroup.OnItemListChangedListener, MapGroup.OnVisibleChangedListener_friendlyName, _groups, _items, _visiblemetadata| Modifier and Type | Method and Description |
|---|---|
MapGroup |
addGroup()
Create and add a MapGroup
|
MapGroup |
addGroup(MapGroup groupIface)
Add a MapGroup
|
MapGroup |
addGroup(MapGroup groupIface,
DeepMapItemQuery query) |
MapGroup |
addGroup(java.lang.String friendlyName)
Create and add a MapGroup with a friendly display name
|
MapItem |
deepFindClosestItem(GeoPoint location,
double threshold,
java.util.Map<java.lang.String,java.lang.String> metadata)
Finds the closest MapItem to the specified point, that falls within the specified threshold.
|
MapItem |
deepFindItem(java.util.Map<java.lang.String,java.lang.String> metadata)
Deep traverse the map group to find an item that matches search constraints.
|
java.util.Collection<MapItem> |
deepFindItems(GeoPoint location,
double radius,
java.util.Map<java.lang.String,java.lang.String> metadata)
Find map items within a given area
|
MapItem |
deepFindUID(java.lang.String uid)
Stock implementation of searching for a UID.
|
MapItem |
deepHitTest(int xpos,
int ypos,
GeoPoint point,
MapView view)
Perform a hit-test for map items
|
java.util.SortedSet<MapItem> |
deepHitTest(MapView mapView,
HitTestQueryParameters params)
Perform a hit-test given a set of query parameters
NOTE: This is called on the GL thread
|
java.util.Collection<MapItem> |
getAllItems()
Get all items with a registered UID
|
boolean |
removeGroupImpl(MapGroup group,
boolean referenceOnly)
Remove a MapGroup if it belongs to this one ;
|
addItemImpl, clearGroups, clearItems, containsItem, deepFindItems, deepFindItems, deepFindMapGroup, deepForEachItem, findClosestItem, findItem, findItems, findItems, findItems, findMapGroup, forEachItem, getChildGroupById, getChildGroups, getFriendlyName, getGroupCount, getItemById, getItemCount, getItems, getMapGroups, getMapItems, getVisible, removeItemImpl, setFriendlyName, setVisible, setVisibleIgnoreChildrenaddItem, addOnFriendlyNameChangedListener, addOnGroupListChangedListener, addOnItemListChangedListener, addOnVisibleChangedListener, createMapGroupSerialId, createMarker, deepFindClosestItem, deepFindClosestItem, deepFindClosestItem, deepFindClosestItem, deepFindClosestItem, deepFindGroupByNameBreadthFirst, deepFindGroupByNameDepthFirst, deepFindGroupBySerialIdBreadthFirst, deepFindGroupBySerialIdDepthFirst, deepFindItem, deepFindItems, deepFindItems, deepFindItems, deepFindItemsWithMetaString, deepFindItemsWithMetaString, deepFindItemWithMetaString, deepFindItemWithMetaString, deepFindItemWithSerialId, deepHitTestItems, deepMapItems, deepMapItemsCount, deepMapItemsCount, dispatchFriendlyNameChanged, dispatchGroupAdded, dispatchGroupRemoved, dispatchItemAdded, dispatchItemRemoved, dispatchVisibleChanged, findClosestItem, findClosestItem, findClosestItem, findClosestItem, findClosestItem, findItem, findItems, findItems, findItems, findItemsWithMetaString, findItemWithMetaString, findItemWithMetaString, findItemWithMetaStringImpl, findMapGroup, getItemsRecursive, getParentGroup, getPath, getSerialId, hasItemListChangedListeners, hitTest, hitTestItems, mapItems, mapItemsCount, matchItemWithMetaString, matchItemWithMetaString, matchItemWithMetaString, onAddedNoSync, onRemovedNoSync, removeGroup, removeItem, removeOnFriendlyNameChangedListener, removeOnGroupListChangedListener, removeOnItemListChangedListener, removeOnVisibleChangedListener, search, setDefaultZOrdercopyMetaData, get, getMetaBoolean, getMetaData, getMetaDouble, getMetaIntArray, getMetaInteger, getMetaLong, getMetaMap, getMetaParcelable, getMetaSerializable, getMetaString, getMetaStringArrayList, hasMetaValue, removeMetaData, setMetaBoolean, setMetaData, setMetaDataImpl, setMetaDouble, setMetaIntArray, setMetaInteger, setMetaLong, setMetaMap, setMetaParcelable, setMetaSerializable, setMetaString, setMetaStringArrayList, toggleMetaDatapublic MapItem deepFindUID(java.lang.String uid)
deepFindUID in class DefaultMapGrouppublic final MapItem deepFindClosestItem(GeoPoint location, double threshold, java.util.Map<java.lang.String,java.lang.String> metadata)
DeepMapItemQuerydeepFindClosestItem in interface DeepMapItemQuerydeepFindClosestItem in class MapGrouplocation - The locationthreshold - The search threshold, in meters. Only items that are within this distance
from the point are considered. If no threshold is desired, the value
0.0d should be specified.metadata - Extra query metadatapublic final java.util.Collection<MapItem> deepFindItems(GeoPoint location, double radius, java.util.Map<java.lang.String,java.lang.String> metadata)
DeepMapItemQuerydeepFindItems in interface DeepMapItemQuerydeepFindItems in class MapGrouplocation - Geodetic locationradius - Radius in metersmetadata - Extra query metadatapublic java.util.SortedSet<MapItem> deepHitTest(MapView mapView, HitTestQueryParameters params)
DeepHitTestQuerydeepHitTest in interface DeepHitTestQuerymapView - Map view instanceparams - Hit-test query parameters (location of hit, bounds, etc.)public final MapItem deepHitTest(int xpos, int ypos, GeoPoint point, MapView view)
DeepMapItemQuerydeepHitTest in interface DeepMapItemQuerydeepHitTest in class MapGroupxpos - X-positionypos - Y-positionpoint - Ppoint on the map that was touchedview - Map viewpublic final MapItem deepFindItem(java.util.Map<java.lang.String,java.lang.String> metadata)
MapGroupdeepFindItem in interface DeepMapItemQuerydeepFindItem in class DefaultMapGroupmetadata - is the map looking for matches with a key and a value.public java.util.Collection<MapItem> getAllItems()
public final MapGroup addGroup(MapGroup groupIface)
DefaultMapGroupaddGroup in class DefaultMapGroupgroupIface - the MapGroup to addpublic final MapGroup addGroup(MapGroup groupIface, DeepMapItemQuery query)
public final MapGroup addGroup()
DefaultMapGroupaddGroup in class DefaultMapGrouppublic final MapGroup addGroup(java.lang.String friendlyName)
DefaultMapGroupaddGroup in class DefaultMapGroupfriendlyName - the friendly display namepublic final boolean removeGroupImpl(MapGroup group, boolean referenceOnly)
DefaultMapGroupremoveGroupImpl in class DefaultMapGroupgroup - the MapGroup to removereferenceOnly - If true only references to the group should be removed.
This will be the common case when the remove is effected by adding the child to
another group. If false it is assumed that the group is being
disposed of.