public class ExpirableBitmapDrawable extends BitmapDrawable
BitmapDrawable
for a 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)Drawable.Callback, Drawable.ConstantState
Modifier and Type | Field and Description |
---|---|
static int |
EXPIRED |
static int |
NOT_FOUND |
static int |
SCALED |
static int |
UP_TO_DATE |
Constructor and Description |
---|
ExpirableBitmapDrawable(Bitmap pBitmap) |
Modifier and Type | Method and Description |
---|---|
int[] |
getState() |
static int |
getState(Drawable pTile) |
static boolean |
isDrawableExpired(Drawable pTile)
Deprecated.
|
boolean |
isStateful() |
static void |
setDrawableExpired(Drawable pTile)
Deprecated.
use
setState(Drawable, int) instead |
static void |
setState(Drawable pTile,
int status) |
boolean |
setState(int[] pStateSet) |
applyTheme, canApplyTheme, draw, getAlpha, getBitmap, getChangingConfigurations, getColorFilter, getConstantState, getGravity, getIntrinsicHeight, getIntrinsicWidth, getOpacity, getOutline, getPaint, getTileModeX, getTileModeY, hasAntiAlias, hasMipMap, inflate, isAutoMirrored, isFilterBitmap, mutate, onBoundsChange, onStateChange, setAlpha, setAntiAlias, setAutoMirrored, setColorFilter, setDither, setFilterBitmap, setGravity, setMipMap, setTargetDensity, setTargetDensity, setTargetDensity, setTileModeX, setTileModeXY, setTileModeY, setTintList, setTintMode
clearColorFilter, copyBounds, copyBounds, createFromPath, createFromResourceStream, createFromResourceStream, createFromStream, createFromXml, createFromXml, createFromXmlInner, createFromXmlInner, getBounds, getCallback, getCurrent, getDirtyBounds, getHotspotBounds, getLayoutDirection, getLevel, getMinimumHeight, getMinimumWidth, getPadding, getTransparentRegion, inflate, invalidateSelf, isVisible, jumpToCurrentState, onLayoutDirectionChanged, onLevelChange, resolveOpacity, scheduleSelf, setBounds, setBounds, setCallback, setChangingConfigurations, setColorFilter, setHotspot, setHotspotBounds, setLayoutDirection, setLevel, setTint, setVisible, unscheduleSelf
public static final int UP_TO_DATE
public static final int EXPIRED
public static final int SCALED
public static final int NOT_FOUND
public ExpirableBitmapDrawable(Bitmap pBitmap)
public boolean isStateful()
isStateful
in class BitmapDrawable
@Deprecated public static boolean isDrawableExpired(Drawable pTile)
public static int getState(Drawable pTile)
@Deprecated public static void setDrawableExpired(Drawable pTile)
setState(Drawable, int)
insteadpublic static void setState(Drawable pTile, int status)