|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.android.maps.Overlay
com.google.android.maps.ItemizedOverlay<MobileWorkItemOverlay>
de.msponer.android.yac.activities.position.TappableWorkListOverlay<Item>
Item
- The superclass that is extended.public class TappableWorkListOverlay<Item extends MobileWorkItemOverlay>
List of Google maps overlays locating mobile work items. Implementing tappable functionality.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.google.android.maps.ItemizedOverlay |
---|
com.google.android.maps.ItemizedOverlay.OnFocusChangeListener |
Nested classes/interfaces inherited from class com.google.android.maps.Overlay |
---|
com.google.android.maps.Overlay.Snappable |
Field Summary |
---|
Fields inherited from class com.google.android.maps.Overlay |
---|
SHADOW_X_SKEW, SHADOW_Y_SCALE |
Constructor Summary | |
---|---|
TappableWorkListOverlay(Drawable defaultMarker)
Constructor setting the default marker. |
|
TappableWorkListOverlay(Drawable defaultMarker,
Context context)
Constructor setting the default marker and the activity context. |
Method Summary | |
---|---|
void |
addOverlay(Item overlay)
Adds a new overlay element to the list and populates it. |
protected MobileWorkItemOverlay |
createItem(int i)
|
void |
draw(Canvas canvas,
com.google.android.maps.MapView mapView,
boolean shadow)
|
protected boolean |
onTap(int index)
Implements the tap functionality. |
int |
size()
|
protected void |
startWorkItemActivity(MobileWorkItem mobileWorkItem)
Starts the work item activity. |
Methods inherited from class com.google.android.maps.ItemizedOverlay |
---|
boundCenter, boundCenterBottom, getCenter, getFocus, getIndexToDraw, getItem, getLastFocusedIndex, getLatSpanE6, getLonSpanE6, hitTest, nextFocus, onKeyUp, onSnapToItem, onTap, onTouchEvent, onTrackballEvent, populate, setDrawFocusedItem, setFocus, setLastFocusedIndex, setOnFocusChangeListener |
Methods inherited from class com.google.android.maps.Overlay |
---|
draw, drawAt, onKeyDown |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TappableWorkListOverlay(Drawable defaultMarker)
defaultMarker
- The default marker.public TappableWorkListOverlay(Drawable defaultMarker, Context context)
defaultMarker
- The default marker.context
- The activity context.Method Detail |
---|
protected MobileWorkItemOverlay createItem(int i)
createItem
in class com.google.android.maps.ItemizedOverlay<MobileWorkItemOverlay>
public int size()
size
in class com.google.android.maps.ItemizedOverlay<MobileWorkItemOverlay>
public void addOverlay(Item overlay)
overlay
- The overlay to add.protected boolean onTap(int index)
onTap
in class com.google.android.maps.ItemizedOverlay<MobileWorkItemOverlay>
index
- The tapped index.
protected void startWorkItemActivity(MobileWorkItem mobileWorkItem)
mobileWorkItem
- The mobile work item that is passed to the activity.public void draw(Canvas canvas, com.google.android.maps.MapView mapView, boolean shadow)
draw
in class com.google.android.maps.ItemizedOverlay<MobileWorkItemOverlay>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |