public class OverlayItem extends Object
Modifier and Type | Class and Description |
---|---|
static class |
OverlayItem.HotspotPlace
Indicates a hotspot for an area.
|
Modifier and Type | Field and Description |
---|---|
protected static android.graphics.Point |
DEFAULT_MARKER_SIZE |
static int |
ITEM_STATE_FOCUSED_MASK |
static int |
ITEM_STATE_PRESSED_MASK |
static int |
ITEM_STATE_SELECTED_MASK |
protected IGeoPoint |
mGeoPoint |
protected OverlayItem.HotspotPlace |
mHotspotPlace |
protected android.graphics.drawable.Drawable |
mMarker |
protected String |
mSnippet |
protected String |
mTitle |
protected String |
mUid |
Constructor and Description |
---|
OverlayItem(String aTitle,
String aSnippet,
IGeoPoint aGeoPoint) |
OverlayItem(String aUid,
String aTitle,
String aDescription,
IGeoPoint aGeoPoint) |
Modifier and Type | Method and Description |
---|---|
android.graphics.drawable.Drawable |
getDrawable() |
int |
getHeight() |
android.graphics.drawable.Drawable |
getMarker(int stateBitset) |
OverlayItem.HotspotPlace |
getMarkerHotspot() |
IGeoPoint |
getPoint() |
String |
getSnippet() |
String |
getTitle() |
String |
getUid() |
int |
getWidth() |
void |
setMarker(android.graphics.drawable.Drawable marker) |
void |
setMarkerHotspot(OverlayItem.HotspotPlace place) |
static void |
setState(android.graphics.drawable.Drawable drawable,
int stateBitset) |
public static final int ITEM_STATE_FOCUSED_MASK
public static final int ITEM_STATE_PRESSED_MASK
public static final int ITEM_STATE_SELECTED_MASK
protected static final android.graphics.Point DEFAULT_MARKER_SIZE
protected final String mUid
protected final String mTitle
protected final String mSnippet
protected final IGeoPoint mGeoPoint
protected android.graphics.drawable.Drawable mMarker
protected OverlayItem.HotspotPlace mHotspotPlace
public OverlayItem(String aTitle, String aSnippet, IGeoPoint aGeoPoint)
aTitle
- this should be singleLine (no '\n'
)aSnippet
- a multiLine description ( '\n'
possible)aGeoPoint
- public String getUid()
public String getTitle()
public String getSnippet()
public IGeoPoint getPoint()
public android.graphics.drawable.Drawable getMarker(int stateBitset)
public void setMarker(android.graphics.drawable.Drawable marker)
public void setMarkerHotspot(OverlayItem.HotspotPlace place)
public OverlayItem.HotspotPlace getMarkerHotspot()
public static void setState(android.graphics.drawable.Drawable drawable, int stateBitset)
public android.graphics.drawable.Drawable getDrawable()
public int getWidth()
public int getHeight()
Copyright © 2015. All Rights Reserved.