-
public class ExpirableBitmapDrawable extends BitmapDrawable
A BitmapDrawable for a org.osmdroid.util.MapTileIndex that has a state to indicate its relevancy: up-to-date (not expired yet), expired, scaled (computed during zoom) and not found (default grey tile)
-
-
Field Summary
Fields Modifier and Type Field Description public final static intUP_TO_DATEpublic final static intEXPIREDpublic final static intSCALEDpublic final static intNOT_FOUND
-
Constructor Summary
Constructors Constructor Description ExpirableBitmapDrawable(Bitmap pBitmap)
-
Method Summary
Modifier and Type Method Description Array<int>getState()booleanisStateful()booleansetState(Array<int> pStateSet)static booleanisDrawableExpired(Drawable pTile)static intgetState(Drawable pTile)static voidsetDrawableExpired(Drawable pTile)static voidsetState(Drawable pTile, int status)-
Methods inherited from class android.graphics.drawable.BitmapDrawable
applyTheme, canApplyTheme, draw, getAlpha, getBitmap, getChangingConfigurations, getColorFilter, getConstantState, getGravity, getIntrinsicHeight, getIntrinsicWidth, getOpacity, getOpticalInsets, getOutline, getPaint, getTileModeX, getTileModeY, hasAntiAlias, hasFocusStateSpecified, hasMipMap, inflate, isAutoMirrored, isFilterBitmap, isStateful, mutate, setAlpha, setAntiAlias, setAutoMirrored, setBitmap, setColorFilter, setDither, setFilterBitmap, setGravity, setMipMap, setTargetDensity, setTileModeX, setTileModeXY, setTileModeY, setTintBlendMode, setTintList -
Methods inherited from class android.graphics.drawable.Drawable
clearColorFilter, copyBounds, copyBounds, createFromPath, createFromResourceStream, createFromStream, createFromXml, createFromXmlInner, getBounds, getCallback, getCurrent, getDirtyBounds, getHotspotBounds, getLayoutDirection, getLevel, getMinimumHeight, getMinimumWidth, getPadding, getState, getTransparentRegion, invalidateSelf, isProjected, isVisible, jumpToCurrentState, onLayoutDirectionChanged, resolveOpacity, scheduleSelf, setBounds, setCallback, setChangingConfigurations, setHotspot, setHotspotBounds, setLayoutDirection, setLevel, setState, setTint, setTintMode, setVisible, unscheduleSelf -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
ExpirableBitmapDrawable
ExpirableBitmapDrawable(Bitmap pBitmap)
-
-
Method Detail
-
isStateful
boolean isStateful()
-
isDrawableExpired
@Deprecated() static boolean isDrawableExpired(Drawable pTile)
-
setDrawableExpired
@Deprecated() static void setDrawableExpired(Drawable pTile)
-
-
-
-