If you think the Android project SmartMap listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
Java Source Code
package com.dennytech.smartmap.impl.google;
//fromwww.java2s.comimport android.graphics.drawable.Drawable;
import com.dennytech.smartmap.IGeoPoint;
import com.dennytech.smartmap.IOverlayItem;
import com.google.android.maps.GeoPoint;
import com.google.android.maps.OverlayItem;
publicclass GoogleOverlayItem implements IOverlayItem, Cloneable {
OverlayItem real;
@Override
public OverlayItem real() {
return real;
}
/**
* Construct an overlay Item.
*
* @param point
* Position of the item.
* @param title
* Title of the item.
* @param snippet
* Snippet-text of the item.
*/public GoogleOverlayItem(IGeoPoint point, String title, String snippet) {
real = new OverlayItem((GeoPoint) point.real(), title, snippet);
}
@Override
public Drawable getMarker(int stateBitset) {
return real.getMarker(stateBitset);
}
@Override
public Drawable getmMarker() {
return real.getMarker(0);
}
@Override
public IGeoPoint getPoint() {
returnnew GoogleGeoPoint(real.getPoint());
}
@Override
public String getSnippet() {
return real.getSnippet();
}
@Override
public String getTitle() {
return real.getTitle();
}
@Override
public String routableAddress() {
return real.routableAddress();
}
@Override
public IOverlayItem setMarker(Drawable drawable) {
real.setMarker(drawable);
returnthis;
}
@Override
publicvoid setState(Drawable drawable, int stateBitset) {
OverlayItem.setState(drawable, stateBitset);
}
@Override
public GoogleOverlayItem clone() {
returnnew GoogleOverlayItem(getPoint(), getTitle(), getSnippet());
}
}