public class ActionBase
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
protected static int |
FRAME_ANIMATION_TYPE_FADE
Fade in and fade out.
|
protected static int |
FRAME_ANIMATION_TYPE_LINEAR_WIPE
Wipe.
|
protected static int |
FRAME_ANIMATION_TYPE_ROTATE_BY
Rotate by an angle.
|
protected static int |
FRAME_ANIMATION_TYPE_ROTATE_REPEAT
Rotate repeatedly.
|
protected static int |
FRAME_ANIMATION_TYPE_ROTATE_TO
Rotate to an angle.
|
protected static int |
FRAME_ANIMATION_TYPE_SCALE
Scale.
|
protected static int |
FRAME_ANIMATION_TYPE_TRANSLATE
Translate.
|
protected float |
mAlpha
The alpha.
|
protected java.lang.String |
mAnimationConfig
The animation configuration.
|
protected boolean |
mClockwise
Whether this rotation is clockwise. true indicates yes.
|
protected int |
mDirection
The direction of this wipe.
|
protected long |
mDuration
The animation duration on the playback timeline.
|
protected float |
mDurationPerCircle
The time to complete a full rotation.
|
protected float |
mFromAlpha
The alpha in the beginning.
|
protected float |
mFromDegree
The angle of the start point in radians.
|
protected float |
mFromPointX
The x coordinate of the start point.
|
protected float |
mFromPointY
The y coordinate of the start point.
|
protected float |
mFromScale
The scale factor in the beginning.
|
protected int |
mId
The animation id.
|
protected boolean |
mIsStream
Whether to perform animation on the source stream.
|
protected boolean |
mRepeat
Whether to repeat this rotation.
|
protected float |
mRotateDegree
The angle of the rotation in radians.
|
protected float |
mRotateToDegree
The angle of the end point in radians.
|
protected long |
mStartTime
The animation start time on the playback timeline.
|
protected int |
mTargetId
The id of the object on which this animation is performed.
|
protected float |
mToAlpha
The alpha in the end.
|
protected float |
mToPointX
The x coordinate of the end point.
|
protected float |
mToPointY
The y coordinate of the end point.
|
protected float |
mToScale
The scale factor in the end.
|
protected int |
mType
The animation type.
|
protected int |
mWipeMode
The mode of this wipe. fade in or fade out.
|
构造器和说明 |
---|
ActionBase() |
限定符和类型 | 方法和说明 |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAnimationConfig()
Gets the animation configuration.
|
long |
getDuration()
Gets the animation duration.
|
int |
getId()
Gets the id, unique resource identifier, of this animation.
|
long |
getStartTime()
Gets the animation start time.
|
int |
getTargetId()
Gets the id of the object on which this animation is performed.
|
int |
getType()
Gets the animation type.
|
boolean |
isStream()
Returns whether this animation is performed on a source stream.
|
void |
setAnimationConfig(java.lang.String animationConfig)
Defines custom animations with the specified animation configuration.
|
void |
setDuration(long durationUs)
Sets the animation duration.
|
void |
setId(int id)
Sets the id of this animation.
|
void |
setIsStream(boolean isStream)
Defines whether this animation is performed on a source stream.
|
void |
setStartTime(long startTimeUs)
Sets the animation start time.
|
void |
setTargetId(int id)
Sets the id of the object on which this animation is performed.
|
protected void |
setType(int type)
Sets the animation type.
|
protected static final int FRAME_ANIMATION_TYPE_FADE
protected static final int FRAME_ANIMATION_TYPE_SCALE
protected static final int FRAME_ANIMATION_TYPE_TRANSLATE
protected static final int FRAME_ANIMATION_TYPE_ROTATE_REPEAT
protected static final int FRAME_ANIMATION_TYPE_ROTATE_BY
protected static final int FRAME_ANIMATION_TYPE_ROTATE_TO
protected static final int FRAME_ANIMATION_TYPE_LINEAR_WIPE
protected int mTargetId
protected int mType
protected long mStartTime
protected long mDuration
protected float mAlpha
protected boolean mIsStream
protected int mId
protected java.lang.String mAnimationConfig
protected float mFromPointX
protected float mFromPointY
protected float mToPointX
protected float mToPointY
protected boolean mClockwise
protected float mFromDegree
protected float mRotateDegree
protected float mRotateToDegree
protected boolean mRepeat
protected float mDurationPerCircle
protected float mFromScale
protected float mToScale
protected float mFromAlpha
protected float mToAlpha
protected int mDirection
protected int mWipeMode
public java.lang.String getAnimationConfig()
public void setAnimationConfig(java.lang.String animationConfig)
animationConfig
- The animation configuration.public int getType()
protected void setType(int type)
type
- The animation type.public long getStartTime()
public void setStartTime(long startTimeUs)
startTimeUs
- The start time in microseconds.public long getDuration()
public void setDuration(long durationUs)
durationUs
- The duration in microseconds.public boolean isStream()
public void setIsStream(boolean isStream)
isStream
- Whether this animation is performed on a source stream.public int getTargetId()
public void setTargetId(int id)
AliyunIClipConstructor.getAllClips()
}
to get the list of source streams, and find the specific AliyunClip
. Use AliyunClip.getId()
to get the stream id. If the object is a material, such as a GIF image or JPG image, use EffectBase.getViewId()
to get the material id.
To perform this animation on a source stream, setIsStream(boolean)
must be set to true.id
- The id of the object on which this animation is performed.public int getId()
public void setId(int id)
id
- The id of this animation.public boolean equals(java.lang.Object obj)
equals
在类中 java.lang.Object