@Deprecated public abstract class ItemizedOverlay<Item extends OverlayItem> extends Overlay
Modifier and Type | Class and Description |
---|---|
static interface |
ItemizedOverlay.OnFocusChangeListener
Deprecated.
焦点变化监听器
|
contentLayer, id, isVisible, mapContext, mapView, SHADOW_X_SKEW, SHADOW_Y_SCALE, zIndex
Constructor and Description |
---|
ItemizedOverlay(android.content.Context context)
Deprecated.
使用默认的drawable构造一个ItemizedOverlay对象
|
ItemizedOverlay(android.graphics.drawable.Drawable defaultMarker)
Deprecated.
根据给定的drawable对象构造一个新的ItemizedOverlay对象。
|
Modifier and Type | Method and Description |
---|---|
static android.graphics.drawable.Drawable |
boundCenter(android.graphics.drawable.Drawable drawable)
Deprecated.
调整Drawable对象边界,使(0,0)是这个Drawable对象的中心点。
|
static android.graphics.drawable.Drawable |
boundCenterBottom(android.graphics.drawable.Drawable drawableOriginal)
Deprecated.
调整Drawable对象的边界,使(0,0)是这个Drawable对象底部中心点。
|
protected abstract Item |
createItem(int i)
Deprecated.
子类通过该方法创建实体item。
|
void |
draw(android.graphics.Canvas canvas,
MapView mapView)
Deprecated.
绘制事件,子类可以重新该方法。
|
GeoPoint |
getCenter()
Deprecated.
获取标注集合的中心点
|
Item |
getFocus()
Deprecated.
返回当前焦点选中的item。
|
protected int |
getIndexToDraw(int drawOrder)
Deprecated.
通过绘制顺序索引,获取加入集合的次序
|
Item |
getItem(int position)
Deprecated.
返回给定索引对应的item。
|
int |
getLastFocusedIndex()
Deprecated.
返回最近焦点选中item的序号。
|
int |
getLatSpanE6()
Deprecated.
获取标注集合的纬度跨度
|
int |
getLonSpanE6()
Deprecated.
获取标注集合的经度跨度
|
boolean |
isShadowEnable()
Deprecated.
标注的阴影是否已经开启
|
Item |
nextFocus(boolean forwards)
Deprecated.
返回给定方向上下一个将要被焦点选中的item。
|
void |
onEmptyTap(GeoPoint pt)
Deprecated.
|
boolean |
onLongPress(GeoPoint p,
android.view.MotionEvent event,
MapView mapView)
Deprecated.
处理一个长按覆盖物事件。
|
boolean |
onTap(GeoPoint p,
MapView mapView)
Deprecated.
处理一个点击事件。
|
protected boolean |
onTap(int index)
Deprecated.
点击事件
|
boolean |
onTouchEvent(android.view.MotionEvent event,
MapView mapView)
Deprecated.
处理一个触摸事件。
|
protected void |
populate()
Deprecated.
填充生成标注集合对象,完成绘制标注的准备工作。
|
void |
setDrawFocusedItem(boolean drawFocusedItem)
Deprecated.
设置是否绘制焦点选中的item。
|
void |
setFocus(Item item)
Deprecated.
设置焦点选中的item。
|
protected void |
setLastFocusedIndex(int lastFocusedIndex)
Deprecated.
设置最近焦点选中item的序号。
|
void |
setOnFocusChangeListener(ItemizedOverlay.OnFocusChangeListener listener)
Deprecated.
设置焦点变换时的监听。
|
void |
setShadowEnable(boolean boEnable)
Deprecated.
|
abstract int |
size()
Deprecated.
OverlayItem列表中item的数量。
|
checkInBounds, destroy, draw, equalsRemote, getId, getZIndex, hashCodeRemote, init, isVisible, onRemoveOverlay, remove, setVisible, setZIndex
public ItemizedOverlay(android.graphics.drawable.Drawable defaultMarker)
defaultMarker
- drawable对象public ItemizedOverlay(android.content.Context context)
context
- Context对象public static android.graphics.drawable.Drawable boundCenterBottom(android.graphics.drawable.Drawable drawableOriginal)
drawable
- 要调整的drawable对象public static android.graphics.drawable.Drawable boundCenter(android.graphics.drawable.Drawable drawable)
drawable
- 要调整的drawable对象protected abstract Item createItem(int i)
i
- item索引号public abstract int size()
protected final void populate()
public void setShadowEnable(boolean boEnable)
boEnable
- public boolean isShadowEnable()
public GeoPoint getCenter()
protected int getIndexToDraw(int drawOrder)
drawOrder
- 绘制索引public final Item getItem(int position)
position
- 索引public int getLatSpanE6()
public int getLonSpanE6()
public void setOnFocusChangeListener(ItemizedOverlay.OnFocusChangeListener listener)
listener
- 监听器public void setDrawFocusedItem(boolean drawFocusedItem)
drawFocusedItem
- 是否绘制public final int getLastFocusedIndex()
protected void setLastFocusedIndex(int lastFocusedIndex)
lastFocusedIndex
- 设置的序号public Item getFocus()
public void setFocus(Item item)
item
- 焦点选中的itempublic Item nextFocus(boolean forwards)
forwards
- 方向public void onEmptyTap(GeoPoint pt)
onEmptyTap
in class Overlay
public boolean onLongPress(GeoPoint p, android.view.MotionEvent event, MapView mapView)
onLongPress
in class Overlay
public boolean onTouchEvent(android.view.MotionEvent event, MapView mapView)
Overlay
onTouchEvent
in class Overlay
protected boolean onTap(int index)
index
- 点击点中的序号