aboutsummaryrefslogtreecommitdiffstats
path: root/src/cgeo/geocaching/mapinterfaces/MapFactory.java
diff options
context:
space:
mode:
authormucek4 <tomaz@gorenc.org>2011-07-11 08:12:48 +0200
committermucek4 <tomaz@gorenc.org>2011-07-11 08:12:48 +0200
commit3a311f2a45a79a19ebc4e2b66f5e92a2f390c04d (patch)
tree6109c451668d4517785e8225c06230b7f02d1414 /src/cgeo/geocaching/mapinterfaces/MapFactory.java
downloadcgeo-3a311f2a45a79a19ebc4e2b66f5e92a2f390c04d.zip
cgeo-3a311f2a45a79a19ebc4e2b66f5e92a2f390c04d.tar.gz
cgeo-3a311f2a45a79a19ebc4e2b66f5e92a2f390c04d.tar.bz2
First commit
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);
+
+}