public class ShapeUtils
extends java.lang.Object
Constructor and Description |
---|
ShapeUtils() |
Modifier and Type | Method and Description |
---|---|
static MapItem |
getReferenceShape(MapView view,
boolean bToast,
java.lang.String uid,
MapGroup group,
java.lang.String shapeUID)
Note, this is messy, but have to break this out by type due to inconsistent
behavior across shape types, and their center markers
Find the reference shape
Circle: the center marker (u-d-c-c)
Rectangle: the Rectangle (u-d-r)
DrawingShape
|
static GeoPointMetaData |
getShapeCenter(MapItem item)
Note, this is messy, but have to break this out by type due to inconsistent
behavior across shape types
|
static MapItem |
getShapeCenterMarker(MapItem item)
Note, this is messy, but have to break this out by type due to inconsistent
behavior across shape types
|
static java.lang.String |
getShapeUID(android.content.Intent intent)
Given an intent, get the uid for the shape.
|
static java.lang.String |
getShapeUID(MapItem item)
Given a map item, return the uid for the associated shape
|
static android.content.Intent |
getZoomShapeIntent(MapItem item)
Given a Map Item produce an intent to zoom to the shape.
|
static MapItem |
resolveShape(MapItem item)
XXX - For 3.0 - Given a MapItem which would be the center point for a shape,
return either the center point if no associated shape is found or return
the associated shape.
|
public static java.lang.String getShapeUID(android.content.Intent intent)
intent
- the intent that references a shape uidpublic static java.lang.String getShapeUID(MapItem item)
item
- the map itempublic static MapItem resolveShape(MapItem item)
item
- the map item to resolve the shape from.public static android.content.Intent getZoomShapeIntent(MapItem item)
item
- the map itempublic static MapItem getReferenceShape(MapView view, boolean bToast, java.lang.String uid, MapGroup group, java.lang.String shapeUID)
view
- the mapview to use for getting the reference shapebToast
- True to toast GeoFence messages to useruid
- the uid of the reference shapegroup
- the group to useshapeUID
- allow a shapeUID to be passed in optionally, e.g. from a radial menu intentpublic static GeoPointMetaData getShapeCenter(MapItem item)
item
- the center point of the shape