public class AnimatorVector extends Animator
Animator.CurveType, Animator.LoopedListener, Animator.StateChangedListener, Animator.TimelineCurveINFINITE, mLoopedListener, mPauseListener, mStartListener| 构造器 | 说明 |
|---|---|
AnimatorVector() |
A constructor with no Component specified for the vector animator.
|
AnimatorVector(Component component) |
A constructor with a Component specified for the vector animator.
|
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
float |
getRotation() |
Obtains the rotation of an animator.
|
Component |
getTarget() |
Obtains the target Component of the current vector animator.
|
void |
parseXmlNode(Node node,
ResourceManager resourceManager) |
Get AnimatorVector by parsing solid xml that described AnimatorVector.
|
AnimatorVector |
setCurveType(int curveType) |
Sets the interpolator used by an animator, which is a linear interpolator by default.
|
AnimatorVector |
setDelay(long startDelay) |
Sets the startup delay of an animator.
|
AnimatorVector |
setDuration(long duration) |
Sets the duration of an animator.
|
AnimatorVector |
setLoopedCount(int loopedCount) |
Sets the repetition times of an animator.
|
void |
setMorphPathData(Element element,
String pathName) |
Sets the morph path of an animator.
|
void |
setRotation(float value) |
Sets the variation for plane rotation of an animator.
|
AnimatorVector |
setTarget(Component component) |
Sets the target Component of the vector animator.
|
cancel, end, getCurveType, getDelay, getDuration, getLoopedCount, isPaused, isRunning, pause, release, resume, setCurveInternal, setCurveTypeInternal, setDelayInternal, setDurationInternal, setLoopedCountInternal, setLoopedListenerInternal, setPauseListenerInternal, setStartListenerInternal, start, stoppublic AnimatorVector()
public AnimatorVector(Component component)
component - Specifies the Component to implement the vector animator.public void parseXmlNode(Node node, ResourceManager resourceManager)
node - solid xml that described AnimatorVector.resourceManager - used to get typedAttributes.public AnimatorVector setTarget(Component component)
component - Specifies the Component to implement the vector animator.public Component getTarget()
public AnimatorVector setDuration(long duration)
duration - Specifies the duration of an animator.
The value must be greater than or equal to 0, in unit of milliseconds.public AnimatorVector setDelay(long startDelay)
startDelay - Specifies the startup delay of an animator.
The value must be greater than or equal to 0, in unit of milliseconds.public AnimatorVector setCurveType(int curveType)
curveType - Specifies the curve type.Animator.CurveTypepublic AnimatorVector setLoopedCount(int loopedCount)
loopedCount - Specifies the repetition times of an animator.
The value must be greater than or equal to 0, or INFINITE.
If the value is 0, the animator will be played only once.Animator.INFINITEpublic void setRotation(float value)
rotation and rotationBy are set, the latter will take effect.value - Specifies the variation for plane rotation of an animator.public float getRotation()