public class OverlayItem extends Object
ItemizedOverlay
or ItemizedIconOverlay
.
Immutable class describing a GeoPoint with a Title and a Description.Modifier and Type | Class and Description |
---|---|
static class |
OverlayItem.HotspotPlace
Indicates a hotspot for an area.
|
Modifier and Type | Field and Description |
---|---|
protected static 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 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 |
---|---|
Drawable |
getDrawable() |
int |
getHeight() |
Drawable |
getMarker(int stateBitset) |
OverlayItem.HotspotPlace |
getMarkerHotspot() |
IGeoPoint |
getPoint() |
String |
getSnippet() |
String |
getTitle() |
String |
getUid() |
int |
getWidth() |
void |
setMarker(Drawable marker) |
void |
setMarkerHotspot(OverlayItem.HotspotPlace place) |
static void |
setState(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 Point DEFAULT_MARKER_SIZE
protected final String mUid
protected final String mTitle
protected final String mSnippet
protected final IGeoPoint mGeoPoint
protected 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 Drawable getMarker(int stateBitset)
public void setMarker(Drawable marker)
public void setMarkerHotspot(OverlayItem.HotspotPlace place)
public OverlayItem.HotspotPlace getMarkerHotspot()
public static void setState(Drawable drawable, int stateBitset)
public Drawable getDrawable()
public int getWidth()
public int getHeight()