public abstract class ShapeSprite extends Sprite
ALPHA, drawBounds, ROTATE, ROTATE_X, ROTATE_Y, SCALE, SCALE_X, SCALE_Y, TRANSLATE_X, TRANSLATE_X_PERCENTAGE, TRANSLATE_Y, TRANSLATE_Y_PERCENTAGE| Constructor and Description |
|---|
ShapeSprite() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
drawSelf(android.graphics.Canvas canvas) |
abstract void |
drawShape(android.graphics.Canvas canvas,
android.graphics.Paint paint) |
int |
getColor() |
int |
getUseColor() |
void |
setAlpha(int alpha) |
void |
setColor(int color) |
void |
setColorFilter(android.graphics.ColorFilter colorFilter) |
clipSquare, draw, getAlpha, getAnimationDelay, getDrawBounds, getOpacity, getPivotX, getPivotY, getRotate, getRotateX, getRotateY, getScale, getScaleX, getScaleY, getTranslateX, getTranslateXPercentage, getTranslateY, getTranslateYPercentage, invalidateDrawable, isRunning, obtainAnimation, onAnimationUpdate, onBoundsChange, onCreateAnimation, reset, scheduleDrawable, setAnimationDelay, setDrawBounds, setDrawBounds, setPivotX, setPivotY, setRotate, setRotateX, setRotateY, setScale, setScaleX, setScaleY, setTranslateX, setTranslateXPercentage, setTranslateY, setTranslateYPercentage, start, stop, unscheduleDrawableapplyTheme, canApplyTheme, clearColorFilter, copyBounds, copyBounds, createFromPath, createFromResourceStream, createFromResourceStream, createFromStream, createFromXml, createFromXml, createFromXmlInner, createFromXmlInner, getBounds, getCallback, getChangingConfigurations, getColorFilter, getConstantState, getCurrent, getDirtyBounds, getHotspotBounds, getIntrinsicHeight, getIntrinsicWidth, getLayoutDirection, getLevel, getMinimumHeight, getMinimumWidth, getOutline, getPadding, getState, getTransparentRegion, inflate, inflate, invalidateSelf, isAutoMirrored, isFilterBitmap, isStateful, isVisible, jumpToCurrentState, mutate, onLayoutDirectionChanged, onLevelChange, onStateChange, resolveOpacity, scheduleSelf, setAutoMirrored, setBounds, setBounds, setCallback, setChangingConfigurations, setColorFilter, setDither, setFilterBitmap, setHotspot, setHotspotBounds, setLayoutDirection, setLevel, setState, setTint, setTintList, setTintMode, setVisible, unscheduleSelfpublic int getUseColor()
public void setColorFilter(android.graphics.ColorFilter colorFilter)
setColorFilter in class Spriteprotected final void drawSelf(android.graphics.Canvas canvas)
public abstract void drawShape(android.graphics.Canvas canvas,
android.graphics.Paint paint)