|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.osmdroid.tileprovider.tilesource.BitmapTileSourceBase
public abstract class BitmapTileSourceBase
Nested Class Summary | |
---|---|
class |
BitmapTileSourceBase.LowMemoryException
|
Field Summary | |
---|---|
protected String |
mImageFilenameEnding
|
protected String |
mName
|
protected Random |
random
|
Constructor Summary | |
---|---|
BitmapTileSourceBase(String aName,
ResourceProxy.string aResourceId,
int aZoomMinLevel,
int aZoomMaxLevel,
int aTileSizePixels,
String aImageFilenameEnding)
|
Method Summary | |
---|---|
android.graphics.drawable.Drawable |
getDrawable(InputStream aFileInputStream)
Get a rendered Drawable from the specified InputStream. |
android.graphics.drawable.Drawable |
getDrawable(String aFilePath)
Get a rendered Drawable from the specified file path. |
int |
getMaximumZoomLevel()
Get the maximum zoom level this tile source can provide. |
int |
getMinimumZoomLevel()
Get the minimum zoom level this tile source can provide. |
String |
getTileRelativeFilenameString(MapTile tile)
Get a unique file path for the tile. |
int |
getTileSizePixels()
Get the tile size in pixels this tile source provides. |
String |
imageFilenameEnding()
|
String |
localizedName(ResourceProxy proxy)
A localized human-friendly name for this tile source |
String |
name()
A human-friendly name for this tile source |
int |
ordinal()
An ordinal identifier for this tile source |
String |
pathBase()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final String mName
protected final String mImageFilenameEnding
protected final Random random
Constructor Detail |
---|
public BitmapTileSourceBase(String aName, ResourceProxy.string aResourceId, int aZoomMinLevel, int aZoomMaxLevel, int aTileSizePixels, String aImageFilenameEnding)
Method Detail |
---|
public int ordinal()
ITileSource
ordinal
in interface ITileSource
public String name()
ITileSource
name
in interface ITileSource
public String pathBase()
public String imageFilenameEnding()
public int getMinimumZoomLevel()
ITileSource
getMinimumZoomLevel
in interface ITileSource
public int getMaximumZoomLevel()
ITileSource
getMaximumZoomLevel
in interface ITileSource
public int getTileSizePixels()
ITileSource
getTileSizePixels
in interface ITileSource
public String localizedName(ResourceProxy proxy)
ITileSource
localizedName
in interface ITileSource
proxy
- a resource proxy
public android.graphics.drawable.Drawable getDrawable(String aFilePath)
ITileSource
getDrawable
in interface ITileSource
aFilePath
- a file path
public String getTileRelativeFilenameString(MapTile tile)
ITileSource
getTileRelativeFilenameString
in interface ITileSource
tile
- the tile
public android.graphics.drawable.Drawable getDrawable(InputStream aFileInputStream) throws BitmapTileSourceBase.LowMemoryException
ITileSource
getDrawable
in interface ITileSource
aFileInputStream
- an InputStream
BitmapTileSourceBase.LowMemoryException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |