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.autonavi;
/*www.java2s.com*/import android.graphics.drawable.Drawable;
import com.amap.mapapi.core.GeoPoint;
import com.amap.mapapi.core.OverlayItem;
import com.dennytech.smartmap.IGeoPoint;
import com.dennytech.smartmap.IOverlayItem;
publicclass ANOverlayItem implements IOverlayItem, Cloneable {
OverlayItem real;
@Override
public OverlayItem real() {
return real;
}
public ANOverlayItem(OverlayItem overlay) {
real = overlay;
}
/**
* Construct an overlay Item.
*
* @param point
* Position of the item.
* @param title
* Title of the item.
* @param snippet
* Snippet-text of the item.
*/public ANOverlayItem(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.getmMarker();
}
@Override
public IGeoPoint getPoint() {
returnnew ANGeoPoint(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 ANOverlayItem clone() {
returnnew ANOverlayItem(getPoint(), getTitle(), getSnippet());
}
}