org.osmdroid.views.overlay
Class OverlayItem
java.lang.Object
org.osmdroid.views.overlay.OverlayItem
public class OverlayItem
- extends Object
Immutable class describing a GeoPoint with a Title and a Description.
- Author:
- Nicolas Gramlich, Theodore Hong, Fred Eisele
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ITEM_STATE_FOCUSED_MASK
public static final int ITEM_STATE_FOCUSED_MASK
- See Also:
- Constant Field Values
ITEM_STATE_PRESSED_MASK
public static final int ITEM_STATE_PRESSED_MASK
- See Also:
- Constant Field Values
ITEM_STATE_SELECTED_MASK
public static final int ITEM_STATE_SELECTED_MASK
- See Also:
- Constant Field Values
DEFAULT_MARKER_SIZE
protected static final android.graphics.Point DEFAULT_MARKER_SIZE
mUid
public final String mUid
mTitle
public final String mTitle
mDescription
public final String mDescription
mGeoPoint
public final GeoPoint mGeoPoint
mMarker
protected android.graphics.drawable.Drawable mMarker
mHotspotPlace
protected OverlayItem.HotspotPlace mHotspotPlace
OverlayItem
public OverlayItem(String aTitle,
String aDescription,
GeoPoint aGeoPoint)
- Parameters:
aTitle
- this should be singleLine (no '\n'
)aDescription
- a multiLine description ( '\n'
possible)aGeoPoint
-
OverlayItem
public OverlayItem(String aUid,
String aTitle,
String aDescription,
GeoPoint aGeoPoint)
getUid
public String getUid()
getTitle
public String getTitle()
getSnippet
public String getSnippet()
getPoint
public GeoPoint getPoint()
getMarker
public android.graphics.drawable.Drawable getMarker(int stateBitset)
setMarker
public void setMarker(android.graphics.drawable.Drawable marker)
setMarkerHotspot
public void setMarkerHotspot(OverlayItem.HotspotPlace place)
getMarkerHotspot
public OverlayItem.HotspotPlace getMarkerHotspot()
setState
public static void setState(android.graphics.drawable.Drawable drawable,
int stateBitset)
getDrawable
public android.graphics.drawable.Drawable getDrawable()
getWidth
public int getWidth()
getHeight
public int getHeight()
Copyright © 2012. All Rights Reserved.