IMotionPath

All Implemented Interfaces: com.aspose.ms.System.Collections.Generic.IGenericEnumerable

public interface IMotionPath extends System.Collections.Generic.IGenericEnumerable<IMotionCmdPath>

Represent motion path.

Methods

MethodDescription
add(int type, Point2D.Float[] pts, int ptsType, boolean bRelativeCoord)Add new command to path
getCount()Returns the number of paths in the collection.
insert(int index, int type, Point2D.Float[] pts, int ptsType, boolean bRelativeCoord)Insert new command to path
clear()Removes all commands from the collection.
remove(IMotionCmdPath item)Removes specified commans from the collection.
removeAt(int index)Removes a command at the specified index.
get_Item(int index)Returns a command at the specified index.

add(int type, Point2D.Float[] pts, int ptsType, boolean bRelativeCoord)

public abstract IMotionCmdPath add(int type, Point2D.Float[] pts, int ptsType, boolean bRelativeCoord)

Add new command to path

Parameters:

ParameterTypeDescription
typeintType of command for animation motion effect behavior MotionCommandPathType
ptsjava.awt.geom.Point2D.Float[]Points array java.awt.geom.Point2D.Float[]
ptsTypeintType of points in animation motion path MotionPathPointsType
bRelativeCoordbooleanIndicates whether to use relative coordinates or not boolean

Returns: IMotionCmdPath - Command of a path IMotionCmdPath

getCount()

public abstract int getCount()

Returns the number of paths in the collection. Read-only int.

Returns: int

insert(int index, int type, Point2D.Float[] pts, int ptsType, boolean bRelativeCoord)

public abstract void insert(int index, int type, Point2D.Float[] pts, int ptsType, boolean bRelativeCoord)

Insert new command to path

Parameters:

ParameterTypeDescription
indexintIndex for command insertion int
typeintType of command for animation motion effect behavior MotionCommandPathType
ptsjava.awt.geom.Point2D.Float[]Points array java.awt.geom.Point2D.Float[]
ptsTypeintType of points in animation motion path MotionPathPointsType
bRelativeCoordbooleanIndicates whether to use relative coordinates or not boolean

clear()

public abstract void clear()

Removes all commands from the collection.

remove(IMotionCmdPath item)

public abstract void remove(IMotionCmdPath item)

Removes specified commans from the collection.

Parameters:

ParameterTypeDescription
itemIMotionCmdPathMotion path to remove IMotionCmdPath

removeAt(int index)

public abstract void removeAt(int index)

Removes a command at the specified index.

Parameters:

ParameterTypeDescription
indexintIndex for removing command int

get_Item(int index)

public abstract IMotionCmdPath get_Item(int index)

Returns a command at the specified index.

Parameters:

ParameterTypeDescription
indexintIndex of element.

Returns: IMotionCmdPath - Command at specified index IMotionCmdPath