aboutsummaryrefslogtreecommitdiffstats
path: root/src/cgeo/geocaching/mapinterfaces/MapFactory.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/cgeo/geocaching/mapinterfaces/MapFactory.java')
-rw-r--r--src/cgeo/geocaching/mapinterfaces/MapFactory.java30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/cgeo/geocaching/mapinterfaces/MapFactory.java b/src/cgeo/geocaching/mapinterfaces/MapFactory.java
new file mode 100644
index 0000000..fe09626
--- /dev/null
+++ b/src/cgeo/geocaching/mapinterfaces/MapFactory.java
@@ -0,0 +1,30 @@
+package cgeo.geocaching.mapinterfaces;
+
+import android.content.Context;
+import cgeo.geocaching.cgCoord;
+import cgeo.geocaching.cgUser;
+
+/**
+ * Defines functions of a factory class to get implementation specific objects
+ * (GeoPoints, OverlayItems, ...)
+ * @author rsudev
+ *
+ */
+public interface MapFactory {
+
+ public Class getMapClass();
+
+ public int getMapViewId();
+
+ public int getMapLayoutId();
+
+ public GeoPointImpl getGeoPointBase(int latE6, int lonE6);
+
+ public OverlayImpl getOverlayBaseWrapper(OverlayBase ovlIn);
+
+ CacheOverlayItemImpl getCacheOverlayItem(cgCoord coordinate, String type);
+
+ public UserOverlayItemImpl getUserOverlayItemBase(Context context,
+ cgUser userOne);
+
+}