us.zuercher.gpx2map.source
Class AbstractCachedMapSource
java.lang.Object
us.zuercher.gpx2map.source.AbstractCachedMapSource
- All Implemented Interfaces:
- MapSource
- Direct Known Subclasses:
- AbstractTiledUrlMapSource
public abstract class AbstractCachedMapSource
- extends Object
- implements MapSource
AbstractCachedMapSource is a MapSource
base class that provides
storage of the cache directory location. It does not provide any caching
services.
- Author:
- Stephan Zuercher
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
cacheDir
private File cacheDir
- Main cache directory.
AbstractCachedMapSource
public AbstractCachedMapSource()
setCacheDir
public final void setCacheDir(File cacheDir)
- Configure the main cache directory for this
MapSource
.
- Specified by:
setCacheDir
in interface MapSource
- Parameters:
cacheDir
- the main cache directory
getCacheDir
protected final File getCacheDir()
- Retrieve the main cache directory configured for this
MapSource
.
- Returns:
- the main cache directory configured for this
MapSource
.