public abstract class BaseRenderBean
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
protected static java.lang.String |
ANIMATE_ALPHA |
protected static java.lang.String |
ANIMATE_SCALE |
protected android.graphics.Bitmap |
bitmap |
protected java.lang.String |
bitmapName |
protected int |
id |
protected boolean |
isRemote |
protected boolean |
isStopIncreaseY |
protected float |
mAlpha |
protected float |
mAlphaDuration |
protected float |
mAlphaEndTime |
protected float |
mAlphaStartTime |
protected float |
mIncreaseY |
protected float |
mInitialAlpha |
protected android.graphics.RectF |
mInitialRectF |
protected float |
mInitialScale |
protected float |
mInitialSize |
protected float |
mInitialX |
protected float |
mInitialY |
protected boolean |
mirrored |
protected float |
mLifeStartTime |
protected float |
mLifeTime |
protected android.graphics.RectF |
mMappedRectF |
protected float |
mScale |
protected float |
mScaleDuration |
protected float |
mScaleEndTime |
protected float |
mScaleStartTime |
protected int |
mState |
protected boolean |
needSaveCache |
protected float |
speed |
static int |
STATE_ALIVE |
static int |
STATE_DEAD |
构造器和说明 |
---|
BaseRenderBean() |
限定符和类型 | 方法和说明 |
---|---|
float |
getAlpha() |
float |
getAlphaEndTime() |
float |
getAlphaStartTime() |
float |
getAlphaTime() |
int |
getBitHeight() |
android.graphics.Bitmap |
getBitmap() |
java.lang.String |
getBitmapName() |
int |
getBitWidth() |
com.ksy.recordlib.service.glrecoder.gles.Drawable2d |
getDrawable2d() |
int |
getId() |
float |
getIncreaseY() |
float |
getInitialAlpha() |
android.graphics.RectF |
getInitialRectF() |
float |
getInitialScale() |
float |
getInitialSize() |
float |
getInitialY() |
float |
getLifeStartTime() |
float |
getLifeTime() |
android.graphics.RectF |
getMappedRectF() |
float |
getScale() |
float |
getScaleEndTime() |
float |
getScaleStartTime() |
float |
getScaleTime() |
float |
getSpeed() |
int |
getState() |
boolean |
hasCreateDrawable() |
void |
init(float initialX,
float initialY,
android.graphics.Bitmap bitmap,
float initialSize) |
boolean |
isAlive() |
boolean |
isMirrored() |
boolean |
isNeedSaveCache() |
boolean |
isRemote() |
boolean |
isStopIncreaseY() |
void |
isStopIncreaseY(boolean isStopIncrease) |
void |
modify(long millis) |
void |
setAlpha(float mAlpha) |
void |
setAnimation(BaseAnimation animation)
设置动画效果
|
void |
setBitmap(android.graphics.Bitmap bitmap) |
void |
setBitmapName(java.lang.String bitmapName) |
void |
setCreateDrawable(boolean hasCreate) |
void |
setDrawable2D(com.ksy.recordlib.service.glrecoder.gles.Drawable2d drawable2d) |
void |
setId(int id) |
void |
setIncreaseY(float increaseY) |
void |
setInitialRectF(android.graphics.RectF rectF) |
void |
setLifeStartTime(long millis) |
void |
setLifeTime(float millis) |
void |
setMappedRectF(android.graphics.RectF mappedRectF) |
void |
setMirrored(boolean mirrored) |
void |
setNeedSaveCache(boolean needSaveCache) |
void |
setRemote(boolean remote) |
void |
setScale(float scale) |
void |
setSpeed(float speed) |
void |
setState(int state) |
abstract int |
update(long millis)
子类实现 更新当前状态
|
void |
updateRectF() |
public static final int STATE_ALIVE
public static final int STATE_DEAD
protected static final java.lang.String ANIMATE_ALPHA
protected static final java.lang.String ANIMATE_SCALE
protected volatile int id
protected volatile android.graphics.Bitmap bitmap
protected volatile java.lang.String bitmapName
protected volatile float speed
protected volatile boolean mirrored
protected volatile boolean isRemote
protected volatile boolean needSaveCache
protected volatile float mInitialX
protected volatile float mInitialY
protected volatile android.graphics.RectF mInitialRectF
protected volatile android.graphics.RectF mMappedRectF
protected volatile float mIncreaseY
protected volatile boolean isStopIncreaseY
protected volatile float mInitialScale
protected volatile float mInitialSize
protected volatile float mLifeStartTime
protected volatile float mLifeTime
protected volatile int mState
protected volatile float mScale
protected volatile float mScaleDuration
protected volatile float mScaleStartTime
protected volatile float mScaleEndTime
protected volatile float mInitialAlpha
protected volatile float mAlpha
protected volatile float mAlphaDuration
protected volatile float mAlphaStartTime
protected volatile float mAlphaEndTime
public boolean isNeedSaveCache()
public void setNeedSaveCache(boolean needSaveCache)
public void setId(int id)
public void setBitmap(android.graphics.Bitmap bitmap)
public void setBitmapName(java.lang.String bitmapName)
public void setSpeed(float speed)
public void setMirrored(boolean mirrored)
public void setScale(float scale)
public void setAlpha(float mAlpha)
public void setMappedRectF(android.graphics.RectF mappedRectF)
public void setRemote(boolean remote)
public void setDrawable2D(com.ksy.recordlib.service.glrecoder.gles.Drawable2d drawable2d)
public void setCreateDrawable(boolean hasCreate)
public void setState(int state)
public int getId()
public java.lang.String getBitmapName()
public float getSpeed()
public android.graphics.RectF getMappedRectF()
public boolean isMirrored()
public boolean isRemote()
public float getInitialScale()
public float getScale()
public float getScaleTime()
public float getInitialAlpha()
public float getAlpha()
public float getAlphaTime()
public float getInitialSize()
public android.graphics.Bitmap getBitmap()
public int getBitWidth()
public int getBitHeight()
public float getIncreaseY()
public void setIncreaseY(float increaseY)
public float getInitialY()
public android.graphics.RectF getInitialRectF()
public void setInitialRectF(android.graphics.RectF rectF)
public com.ksy.recordlib.service.glrecoder.gles.Drawable2d getDrawable2d()
public boolean hasCreateDrawable()
public int getState()
public void init(float initialX, float initialY, android.graphics.Bitmap bitmap, float initialSize)
public void updateRectF()
public abstract int update(long millis)
millis
- 时间戳public void modify(long millis)
public void setLifeStartTime(long millis)
public float getLifeStartTime()
public void setLifeTime(float millis)
public float getLifeTime()
public float getAlphaStartTime()
public float getAlphaEndTime()
public float getScaleStartTime()
public float getScaleEndTime()
public void isStopIncreaseY(boolean isStopIncrease)
public boolean isStopIncreaseY()
public boolean isAlive()
public void setAnimation(BaseAnimation animation)