public class PressEffect extends EaseEffect
| 限定符和类型 | 字段和说明 |
|---|---|
protected float |
mCenterX |
protected float |
mCenterY |
protected float |
mMaxRadius |
protected float |
mMaxRadiusFactor |
protected float |
mMinRadius |
protected float |
mMinRadiusFactor |
protected float |
mRadius |
mAlpha, mMaxAlpha| 构造器和说明 |
|---|
PressEffect() |
PressEffect(float minRadiusFactor,
float maxRadiusFactor) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
animationEnter(float factor) |
void |
animationExit(float factor) |
void |
draw(Canvas canvas,
Paint paint)
Draw this shape into the provided Canvas, with the provided Paint.
|
float |
getMaxRadiusFactor() |
float |
getMinRadiusFactor() |
protected void |
onResize(float width,
float height)
Callback method called when
Effect.resize(float, float) is executed. |
protected void |
setMaxRadius(float radius) |
void |
setMaxRadiusFactor(float factor) |
void |
setMinRadiusFactor(float factor) |
getMaxEaseAlpha, setMaxEaseAlphaclone, getHeight, getOutline, getWidth, hasAlpha, resize, setPaintAlpha, touchCancel, touchDown, touchMove, touchReleasedprotected float mMinRadius
protected float mMaxRadius
protected float mRadius
protected float mCenterX
protected float mCenterY
protected float mMinRadiusFactor
protected float mMaxRadiusFactor
public PressEffect()
public PressEffect(float minRadiusFactor,
float maxRadiusFactor)
public void setMaxRadiusFactor(float factor)
public void setMinRadiusFactor(float factor)
public float getMaxRadiusFactor()
public float getMinRadiusFactor()
public void draw(Canvas canvas, Paint paint)
EffectEffect.resize(float, float).draw 在类中 EaseEffectcanvas - the Canvas within which this shape should be drawnpaint - the Paint object that defines this shape's characteristicspublic void animationEnter(float factor)
animationEnter 在类中 EaseEffectpublic void animationExit(float factor)
animationExit 在类中 EaseEffectprotected void onResize(float width,
float height)
EffectEffect.resize(float, float) is executed.protected void setMaxRadius(float radius)