|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.google.android.maps.OverlayItem
public class OverlayItem
The basic component of any ItemizedOverlay.
| Field Summary | |
|---|---|
static int |
ITEM_STATE_FOCUSED_MASK
State bitset bit: Indicates the overlay item is in the focused state. |
static int |
ITEM_STATE_PRESSED_MASK
State bitset bit: indicates the overlay item is in the pressed state. |
static int |
ITEM_STATE_SELECTED_MASK
State bitset bit: Indicates the overlay item is in the selected state. |
protected android.graphics.drawable.Drawable |
mMarker
The overlay marker used to indicate this item. |
protected GeoPoint |
mPoint
Position of this item. |
protected java.lang.String |
mSnippet
Snippet text of this item. |
protected java.lang.String |
mTitle
Title text of this item. |
| Constructor Summary | |
|---|---|
OverlayItem(GeoPoint point,
java.lang.String title,
java.lang.String snippet)
Construct an overlay item. |
|
| Method Summary | |
|---|---|
android.graphics.drawable.Drawable |
getMarker(int stateBitset)
Returns the marker that should be used when drawing this item on the map. |
GeoPoint |
getPoint()
Returns the GeoPoint of this overlay. |
java.lang.String |
getSnippet()
Returns the snippet text of this overlay. |
java.lang.String |
getTitle()
Returns the title text of this overlay. |
java.lang.String |
routableAddress()
Returns the position of this item in a map-routable format. |
void |
setMarker(android.graphics.drawable.Drawable marker)
Sets the marker to be used when drawing this item on the map. |
static void |
setState(android.graphics.drawable.Drawable drawable,
int stateBitset)
Sets the state of a drawable to match a given state bitset. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final GeoPoint mPoint
protected final java.lang.String mTitle
protected final java.lang.String mSnippet
protected android.graphics.drawable.Drawable mMarker
public static final int ITEM_STATE_FOCUSED_MASK
public static final int ITEM_STATE_SELECTED_MASK
public static final int ITEM_STATE_PRESSED_MASK
| Constructor Detail |
|---|
public OverlayItem(GeoPoint point,
java.lang.String title,
java.lang.String snippet)
point - Position of the item.title - Title text.snippet - Snippet text.| Method Detail |
|---|
public void setMarker(android.graphics.drawable.Drawable marker)
R.attr.state_pressed,
R.attr.state_selected and
R.attr.state_focused attributes.
public android.graphics.drawable.Drawable getMarker(int stateBitset)
setState(android.graphics.drawable.Drawable, int) on the overlay
item's marker, if it exists, and then return it.
stateBitset - The current state.
public static void setState(android.graphics.drawable.Drawable drawable,
int stateBitset)
R.attr.state_pressed,
R.attr.state_selected and
R.attr.state_focused attributes, and then
calling Drawable.setState(int[]).
drawable - The drawable to modify.stateBitset - The state bitset to set.public java.lang.String getTitle()
public java.lang.String getSnippet()
public GeoPoint getPoint()
public java.lang.String routableAddress()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||