diff options
author | Bananeweizen <bananeweizen@gmx.de> | 2012-08-26 14:01:50 +0200 |
---|---|---|
committer | Bananeweizen <bananeweizen@gmx.de> | 2012-08-26 14:01:50 +0200 |
commit | e989666a734d4f36a20f70ed6b83339c2b0b4b54 (patch) | |
tree | d46d90af64a81da53824a949e05cc4be5c3cfbd1 /main/src/cgeo/geocaching/maps/google/GoogleOtherCachersOverlay.java | |
parent | 36d9c61be952cbfc6d62016bf1c6538b5db13f3d (diff) | |
download | cgeo-e989666a734d4f36a20f70ed6b83339c2b0b4b54.zip cgeo-e989666a734d4f36a20f70ed6b83339c2b0b4b54.tar.gz cgeo-e989666a734d4f36a20f70ed6b83339c2b0b4b54.tar.bz2 |
fix #1893: remove go4cache
Diffstat (limited to 'main/src/cgeo/geocaching/maps/google/GoogleOtherCachersOverlay.java')
-rw-r--r-- | main/src/cgeo/geocaching/maps/google/GoogleOtherCachersOverlay.java | 117 |
1 files changed, 0 insertions, 117 deletions
diff --git a/main/src/cgeo/geocaching/maps/google/GoogleOtherCachersOverlay.java b/main/src/cgeo/geocaching/maps/google/GoogleOtherCachersOverlay.java deleted file mode 100644 index 4c330c9..0000000 --- a/main/src/cgeo/geocaching/maps/google/GoogleOtherCachersOverlay.java +++ /dev/null @@ -1,117 +0,0 @@ -package cgeo.geocaching.maps.google; - -import cgeo.geocaching.maps.OtherCachersOverlay; -import cgeo.geocaching.maps.interfaces.ItemizedOverlayImpl; -import cgeo.geocaching.maps.interfaces.MapProjectionImpl; -import cgeo.geocaching.maps.interfaces.MapViewImpl; - -import com.google.android.maps.ItemizedOverlay; -import com.google.android.maps.MapView; - -import android.content.Context; -import android.graphics.Canvas; -import android.graphics.Point; -import android.graphics.drawable.Drawable; - -import java.util.concurrent.locks.Lock; -import java.util.concurrent.locks.ReentrantLock; - -public class GoogleOtherCachersOverlay extends ItemizedOverlay<GoogleOtherCachersOverlayItem> implements ItemizedOverlayImpl { - - private OtherCachersOverlay base; - private Lock lock = new ReentrantLock(); - - public GoogleOtherCachersOverlay(Context contextIn, Drawable markerIn) { - super(boundCenter(markerIn)); - base = new OtherCachersOverlay(this, contextIn); - } - - @Override - public OtherCachersOverlay getBase() { - return base; - } - - @Override - protected GoogleOtherCachersOverlayItem createItem(int i) { - if (base == null) { - return null; - } - - return (GoogleOtherCachersOverlayItem) base.createItem(i); - } - - @Override - public int size() { - if (base == null) { - return 0; - } - - return base.size(); - } - - @Override - protected boolean onTap(int arg0) { - if (base == null) { - return false; - } - - return base.onTap(arg0); - } - - @Override - public void draw(Canvas canvas, MapView mapView, boolean shadow) { - base.draw(canvas, (MapViewImpl) mapView, shadow); - } - - @Override - public void superPopulate() { - populate(); - } - - @Override - public Drawable superBoundCenter(Drawable markerIn) { - return super.boundCenter(markerIn); - } - - @Override - public Drawable superBoundCenterBottom(Drawable marker) { - return super.boundCenterBottom(marker); - } - - @Override - public void superSetLastFocusedItemIndex(int i) { - super.setLastFocusedIndex(i); - } - - @Override - public boolean superOnTap(int index) { - return super.onTap(index); - } - - @Override - public void superDraw(Canvas canvas, MapViewImpl mapView, boolean shadow) { - super.draw(canvas, (MapView) mapView, shadow); - } - - @Override - public void superDrawOverlayBitmap(Canvas canvas, Point drawPosition, - MapProjectionImpl projection, byte drawZoomLevel) { - // Nothing to do here - } - - @Override - public void lock() { - lock.lock(); - } - - @Override - public void unlock() { - lock.unlock(); - } - - @Override - public MapViewImpl getMapViewImpl() { - throw new UnsupportedOperationException(); - } - -} |