public class ItemizedOverlayWithFocus<Item extends OverlayItem> extends ItemizedIconOverlay<Item>
ItemizedIconOverlay.ActiveItem, ItemizedIconOverlay.OnItemGestureListener<T>
ItemizedOverlay.OnFocusChangeListener
Overlay.Snappable
Modifier and Type | Field and Description |
---|---|
protected static int |
DEFAULTMARKER_BACKGROUNDCOLOR |
static int |
DESCRIPTION_BOX_CORNERWIDTH |
static int |
DESCRIPTION_BOX_PADDING |
static int |
DESCRIPTION_LINE_HEIGHT |
protected static int |
DESCRIPTION_MAXWIDTH |
static int |
DESCRIPTION_TITLE_EXTRA_LINE_HEIGHT
Additional to
DESCRIPTION_LINE_HEIGHT . |
protected android.graphics.Paint |
mDescriptionPaint |
protected int |
mFocusedItemIndex |
protected boolean |
mFocusItemsOnTap |
protected android.graphics.Paint |
mMarkerBackgroundPaint |
protected int |
mMarkerFocusedBackgroundColor |
protected android.graphics.drawable.Drawable |
mMarkerFocusedBase |
protected android.graphics.Paint |
mTitlePaint |
mItemList, mOnItemGestureListener
mDefaultMarker, mDrawFocusedItem
mResourceProxy, mScale, SHADOW_X_SKEW, SHADOW_Y_SCALE
DEBUGMODE, DEFAULT_ZOOMLEVEL_MINIMAP_DIFFERENCE, NOT_SET
Constructor and Description |
---|
ItemizedOverlayWithFocus(android.content.Context ctx,
List<Item> aList,
ItemizedIconOverlay.OnItemGestureListener<Item> aOnItemTapListener) |
ItemizedOverlayWithFocus(List<Item> aList,
android.graphics.drawable.Drawable pMarker,
android.graphics.drawable.Drawable pMarkerFocused,
int pFocusedBackgroundColor,
ItemizedIconOverlay.OnItemGestureListener<Item> aOnItemTapListener,
ResourceProxy pResourceProxy) |
ItemizedOverlayWithFocus(List<Item> aList,
ItemizedIconOverlay.OnItemGestureListener<Item> aOnItemTapListener,
ResourceProxy pResourceProxy) |
Modifier and Type | Method and Description |
---|---|
void |
draw(android.graphics.Canvas c,
MapView osmv,
boolean shadow)
Draw a marker on each of our items.
|
Item |
getFocusedItem() |
protected boolean |
onSingleTapUpHelper(int index,
Item item,
MapView mapView) |
void |
setFocusedItem(int pIndex) |
void |
setFocusedItem(Item pItem) |
void |
setFocusItemsOnTap(boolean doit) |
void |
unSetFocusedItem() |
addItem, addItem, addItems, createItem, getDrawnItemsLimit, onLongPress, onLongPressHelper, onSingleTapConfirmed, onSnapToItem, removeAllItems, removeAllItems, removeItem, removeItem, setDrawnItemsLimit, size
boundToHotspot, getDefaultMarker, getFocus, getItem, hitTest, onDrawItem, onTap, populate, setDrawFocusedItem, setFocus, setOnFocusChangeListener
drawAt, getSafeMenuId, getSafeMenuIdSequence, isEnabled, onDetach, onDoubleTap, onDoubleTapEvent, onDown, onFling, onKeyDown, onKeyUp, onScroll, onShowPress, onSingleTapUp, onTouchEvent, onTrackballEvent, setEnabled
public static final int DESCRIPTION_BOX_PADDING
public static final int DESCRIPTION_BOX_CORNERWIDTH
public static final int DESCRIPTION_LINE_HEIGHT
public static final int DESCRIPTION_TITLE_EXTRA_LINE_HEIGHT
DESCRIPTION_LINE_HEIGHT
.protected static final int DEFAULTMARKER_BACKGROUNDCOLOR
protected static final int DESCRIPTION_MAXWIDTH
protected final int mMarkerFocusedBackgroundColor
protected final android.graphics.Paint mMarkerBackgroundPaint
protected final android.graphics.Paint mDescriptionPaint
protected final android.graphics.Paint mTitlePaint
protected android.graphics.drawable.Drawable mMarkerFocusedBase
protected int mFocusedItemIndex
protected boolean mFocusItemsOnTap
public ItemizedOverlayWithFocus(android.content.Context ctx, List<Item> aList, ItemizedIconOverlay.OnItemGestureListener<Item> aOnItemTapListener)
public ItemizedOverlayWithFocus(List<Item> aList, ItemizedIconOverlay.OnItemGestureListener<Item> aOnItemTapListener, ResourceProxy pResourceProxy)
public ItemizedOverlayWithFocus(List<Item> aList, android.graphics.drawable.Drawable pMarker, android.graphics.drawable.Drawable pMarkerFocused, int pFocusedBackgroundColor, ItemizedIconOverlay.OnItemGestureListener<Item> aOnItemTapListener, ResourceProxy pResourceProxy)
public Item getFocusedItem()
public void setFocusedItem(int pIndex)
public void unSetFocusedItem()
public void setFocusedItem(Item pItem)
public void setFocusItemsOnTap(boolean doit)
protected boolean onSingleTapUpHelper(int index, Item item, MapView mapView)
onSingleTapUpHelper
in class ItemizedIconOverlay<Item extends OverlayItem>
public void draw(android.graphics.Canvas c, MapView osmv, boolean shadow)
ItemizedOverlay
draw
in class ItemizedOverlay<Item extends OverlayItem>
osmv
- the MapView that requested the draw. Use MapView.getProjection() to convert
between on-screen pixels and latitude/longitude pairsshadow
- if true, draw the shadow layer. If false, draw the overlay contents.Copyright © 2015. All Rights Reserved.