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(Point2D.Float 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(Point2D.Float value) | Specifies the target location for an animation motion effect (in percents). | 
| getBy() | Describes the relative offset value for the animation (in percents). | 
| setBy(Point2D.Float 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(Point2D.Float 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 Point2D.Float getFrom()
Specifies an x/y co-ordinate to start the animation from (in percents). Read/write java.awt.geom.Point2D.Float.
Returns: java.awt.geom.Point2D.Float
setFrom(Point2D.Float value)
public final void setFrom(Point2D.Float value)
Specifies an x/y co-ordinate to start the animation from (in percents). Read/write java.awt.geom.Point2D.Float.
Parameters:
| Parameter | Type | Description | 
|---|---|---|
| value | java.awt.geom.Point2D.Float | 
getTo()
public final Point2D.Float getTo()
Specifies the target location for an animation motion effect (in percents). Read/write java.awt.geom.Point2D.Float.
Returns: java.awt.geom.Point2D.Float
setTo(Point2D.Float value)
public final void setTo(Point2D.Float value)
Specifies the target location for an animation motion effect (in percents). Read/write java.awt.geom.Point2D.Float.
Parameters:
| Parameter | Type | Description | 
|---|---|---|
| value | java.awt.geom.Point2D.Float | 
getBy()
public final Point2D.Float getBy()
Describes the relative offset value for the animation (in percents). Read/write java.awt.geom.Point2D.Float.
Returns: java.awt.geom.Point2D.Float
setBy(Point2D.Float value)
public final void setBy(Point2D.Float value)
Describes the relative offset value for the animation (in percents). Read/write java.awt.geom.Point2D.Float.
Parameters:
| Parameter | Type | Description | 
|---|---|---|
| value | java.awt.geom.Point2D.Float | 
getRotationCenter()
public final Point2D.Float getRotationCenter()
Describes the center of the rotation used to rotate a motion path by X angle. Read/write java.awt.geom.Point2D.Float.
Returns: java.awt.geom.Point2D.Float
setRotationCenter(Point2D.Float value)
public final void setRotationCenter(Point2D.Float value)
Describes the center of the rotation used to rotate a motion path by X angle. Read/write java.awt.geom.Point2D.Float.
Parameters:
| Parameter | Type | Description | 
|---|---|---|
| value | java.awt.geom.Point2D.Float | 
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 |