aboutsummaryrefslogtreecommitdiffstats
path: root/src/cgeo/geocaching/mapinterfaces/MapFactory.java
blob: 26703c57baf9e2df81573c3f8519ce19e6a068e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package cgeo.geocaching.mapinterfaces;

import cgeo.geocaching.cgCoord;
import cgeo.geocaching.cgUser;
import cgeo.geocaching.geopoint.Geopoint;

import android.app.Activity;
import android.content.Context;

/**
 * Defines functions of a factory class to get implementation specific objects
 * (GeoPoints, OverlayItems, ...)
 * 
 * @author rsudev
 * 
 */
public interface MapFactory {

    public Class<? extends Activity> getMapClass();

    public int getMapViewId();

    public int getMapLayoutId();

    public GeoPointImpl getGeoPointBase(final Geopoint coords);

    CacheOverlayItemImpl getCacheOverlayItem(cgCoord coordinate, String type);

    public UserOverlayItemImpl getUserOverlayItemBase(Context context,
            cgUser userOne);

}