MotionEffect

Inheritance: java.lang.Object, com.aspose.slides.Behavior

All Implemented Interfaces: com.aspose.slides.IMotionEffect

public class MotionEffect extends Behavior implements IMotionEffect

Represent motion effect behavior of effect.

Constructors

Constructor Description
MotionEffect()

Methods

Method Description
getFrom() Specifies an x/y co-ordinate to start the animation from (in percents).
setFrom(PointF value) Specifies an x/y co-ordinate to start the animation from (in percents).
getTo() Specifies the target location for an animation motion effect (in percents).
setTo(PointF value) Specifies the target location for an animation motion effect (in percents).
getBy() Describes the relative offset value for the animation (in percents).
setBy(PointF value) Describes the relative offset value for the animation (in percents).
getRotationCenter() Describes the center of the rotation used to rotate a motion path by X angle.
setRotationCenter(PointF value) Describes the center of the rotation used to rotate a motion path by X angle.
getOrigin() Specifies what the origin of the motion path is relative to such as the layout of the slide, or the parent.
setOrigin(int value) Specifies what the origin of the motion path is relative to such as the layout of the slide, or the parent.
getPath() Specifies the path primitive followed by coordinates for the animation motion.
setPath(IMotionPath value) Specifies the path primitive followed by coordinates for the animation motion.
getPathEditMode() Specifies how the motion path moves when shape is moved.
setPathEditMode(int value) Specifies how the motion path moves when shape is moved.
getAngle() Describes the relative angle of the motion path.
setAngle(float value) Describes the relative angle of the motion path.

MotionEffect()

public MotionEffect()

getFrom()

public final PointF getFrom()

Specifies an x/y co-ordinate to start the animation from (in percents). Read/write android.graphics.PointF.

Returns: android.graphics.PointF

setFrom(PointF value)

public final void setFrom(PointF value)

Specifies an x/y co-ordinate to start the animation from (in percents). Read/write android.graphics.PointF.

Parameters:

Parameter Type Description
value android.graphics.PointF

getTo()

public final PointF getTo()

Specifies the target location for an animation motion effect (in percents). Read/write android.graphics.PointF.

Returns: android.graphics.PointF

setTo(PointF value)

public final void setTo(PointF value)

Specifies the target location for an animation motion effect (in percents). Read/write android.graphics.PointF.

Parameters:

Parameter Type Description
value android.graphics.PointF

getBy()

public final PointF getBy()

Describes the relative offset value for the animation (in percents). Read/write android.graphics.PointF.

Returns: android.graphics.PointF

setBy(PointF value)

public final void setBy(PointF value)

Describes the relative offset value for the animation (in percents). Read/write android.graphics.PointF.

Parameters:

Parameter Type Description
value android.graphics.PointF

getRotationCenter()

public final PointF getRotationCenter()

Describes the center of the rotation used to rotate a motion path by X angle. Read/write android.graphics.PointF.

Returns: android.graphics.PointF

setRotationCenter(PointF value)

public final void setRotationCenter(PointF value)

Describes the center of the rotation used to rotate a motion path by X angle. Read/write android.graphics.PointF.

Parameters:

Parameter Type Description
value android.graphics.PointF

getOrigin()

public final int getOrigin()

Specifies what the origin of the motion path is relative to such as the layout of the slide, or the parent. Read/write MotionOriginType.

Returns: int

setOrigin(int value)

public final void setOrigin(int value)

Specifies what the origin of the motion path is relative to such as the layout of the slide, or the parent. Read/write MotionOriginType.

Parameters:

Parameter Type Description
value int

getPath()

public final IMotionPath getPath()

Specifies the path primitive followed by coordinates for the animation motion. Read/write IMotionPath.

Returns: IMotionPath

setPath(IMotionPath value)

public final void setPath(IMotionPath value)

Specifies the path primitive followed by coordinates for the animation motion. Read/write IMotionPath.

Parameters:

Parameter Type Description
value IMotionPath

getPathEditMode()

public final int getPathEditMode()

Specifies how the motion path moves when shape is moved. Read/write MotionPathEditMode.

Returns: int

setPathEditMode(int value)

public final void setPathEditMode(int value)

Specifies how the motion path moves when shape is moved. Read/write MotionPathEditMode.

Parameters:

Parameter Type Description
value int

getAngle()

public final float getAngle()

Describes the relative angle of the motion path. Read/write float.

Returns: float

setAngle(float value)

public final void setAngle(float value)

Describes the relative angle of the motion path. Read/write float.

Parameters:

Parameter Type Description
value float