com.xtremelabs.robolectric.shadows
Class ShadowItemizedOverlay

java.lang.Object
  extended by com.xtremelabs.robolectric.shadows.ShadowItemizedOverlay

@Implements(value=com.google.android.maps.ItemizedOverlay.class)
public class ShadowItemizedOverlay
extends java.lang.Object

Shadow for ItemizedOverlay that just keeps track of what has been called and enables the return value for hitTest(com.google.android.maps.OverlayItem, android.graphics.drawable.Drawable, int, int) to be set up by tests.


Constructor Summary
ShadowItemizedOverlay()
           
 
Method Summary
static android.graphics.drawable.Drawable boundCenterBottom(android.graphics.drawable.Drawable drawable)
           
 boolean hitTest(com.google.android.maps.OverlayItem item, android.graphics.drawable.Drawable drawable, int i, int i1)
           
 boolean isPopulated()
           
 boolean lastFocusedIndexWasReset()
          Non-Android accessor that indicates whether setLastFocusedIndex(int) has been called with a value other than -1.
 void populate()
           
 void setIsPopulated(boolean isPopulated)
           
 void setLastFocusedIndex(int i)
           
 void setShouldHit(boolean shouldHit)
          Sets up the return value for hitTest(com.google.android.maps.OverlayItem, android.graphics.drawable.Drawable, int, int)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShadowItemizedOverlay

public ShadowItemizedOverlay()
Method Detail

populate

@Implementation
public final void populate()

hitTest

@Implementation
public boolean hitTest(com.google.android.maps.OverlayItem item,
                                      android.graphics.drawable.Drawable drawable,
                                      int i,
                                      int i1)

setLastFocusedIndex

@Implementation
public void setLastFocusedIndex(int i)

boundCenterBottom

@Implementation
public static android.graphics.drawable.Drawable boundCenterBottom(android.graphics.drawable.Drawable drawable)

lastFocusedIndexWasReset

public boolean lastFocusedIndexWasReset()
Non-Android accessor that indicates whether setLastFocusedIndex(int) has been called with a value other than -1.

Returns:
whether setLastFocusedIndex(int) has been called with a value other than -1

setIsPopulated

public void setIsPopulated(boolean isPopulated)

isPopulated

public boolean isPopulated()

setShouldHit

public void setShouldHit(boolean shouldHit)
Sets up the return value for hitTest(com.google.android.maps.OverlayItem, android.graphics.drawable.Drawable, int, int)

Parameters:
shouldHit - the value that hitTest(com.google.android.maps.OverlayItem, android.graphics.drawable.Drawable, int, int) shoule return