Android Open Source - SmartMap Google Overlay Item






From Project

Back to project page SmartMap.

License

The source code is released under:

Apache License

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;
//from w  w w. ja  v a 2  s .com
import 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;

public class 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() {
    return new 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);
    return this;
  }

  @Override
  public void setState(Drawable drawable, int stateBitset) {
    OverlayItem.setState(drawable, stateBitset);
  }

  @Override
  public GoogleOverlayItem clone() {
    return new GoogleOverlayItem(getPoint(), getTitle(), getSnippet());
  }
}




Java Source Code List

com.dennytech.smartmap.IGeoPoint.java
com.dennytech.smartmap.IItemizedOverlay.java
com.dennytech.smartmap.IMapController.java
com.dennytech.smartmap.IMapFragment.java
com.dennytech.smartmap.IMapViewLayoutParams.java
com.dennytech.smartmap.IMapView.java
com.dennytech.smartmap.IMyLocationOverlay.java
com.dennytech.smartmap.IOverlayItem.java
com.dennytech.smartmap.IOverlay.java
com.dennytech.smartmap.IProjection.java
com.dennytech.smartmap.ItemizedOverlayCallBack.java
com.dennytech.smartmap.MapUtils.java
com.dennytech.smartmap.MapViewCallback.java
com.dennytech.smartmap.OverlayCallBack.java
com.dennytech.smartmap.SMItemizedOverlay.java
com.dennytech.smartmap.SMMapFragment.java
com.dennytech.smartmap.SMMyLocationOverlay.java
com.dennytech.smartmap.SMOverlay.java
com.dennytech.smartmap.impl.autonavi.ANGeoPoint.java
com.dennytech.smartmap.impl.autonavi.ANItemizedOverlay.java
com.dennytech.smartmap.impl.autonavi.ANMapActivity.java
com.dennytech.smartmap.impl.autonavi.ANMapController.java
com.dennytech.smartmap.impl.autonavi.ANMapViewLayoutParams.java
com.dennytech.smartmap.impl.autonavi.ANMapView.java
com.dennytech.smartmap.impl.autonavi.ANMyLocationOverlay.java
com.dennytech.smartmap.impl.autonavi.ANOverlayItem.java
com.dennytech.smartmap.impl.autonavi.ANOverlay.java
com.dennytech.smartmap.impl.autonavi.ANProjection.java
com.dennytech.smartmap.impl.autonavi.myANMapView.java
com.dennytech.smartmap.impl.google.GoogleGeoPoint.java
com.dennytech.smartmap.impl.google.GoogleItemizedOverlay.java
com.dennytech.smartmap.impl.google.GoogleMapActivity.java
com.dennytech.smartmap.impl.google.GoogleMapController.java
com.dennytech.smartmap.impl.google.GoogleMapView.java
com.dennytech.smartmap.impl.google.GoogleMyLocationOverlay.java
com.dennytech.smartmap.impl.google.GoogleOverlayItem.java
com.dennytech.smartmap.impl.google.GoogleOverlay.java
com.dennytech.smartmap.impl.google.GoogleProjection.java
com.dennytech.smartmap.impl.google.myGoogleMapView.java