MotionPath

Inheritance: java.lang.Object

All Implemented Interfaces: com.aspose.slides.IMotionPath

public class MotionPath implements IMotionPath

Represent motion path.

Constructors

ConstructorDescription
MotionPath()

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.
iterator()Returns an enumerator that iterates through the collection.
iteratorJava()Returns a java iterator for the entire collection.

MotionPath()

public MotionPath()

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

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

Add new command to path

Parameters:

ParameterTypeDescription
typeintMotionCommandPathType
ptsjava.awt.geom.Point2D.Float[]Array of points
ptsTypeintMotionPathPointsType
bRelativeCoordbooleanRelative coordinates boolean

Returns: IMotionCmdPath

getCount()

public final 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 final void insert(int index, int type, Point2D.Float[] pts, int ptsType, boolean bRelativeCoord)

Insert new command to path

Parameters:

ParameterTypeDescription
indexintThe zero-based index at which item should be inserted.
typeintMotionCommandPathType
ptsjava.awt.geom.Point2D.Float[]Array of points
ptsTypeintMotionPathPointsType
bRelativeCoordbooleanRelative coordinates boolean

clear()

public final void clear()

Removes all commands from the collection.

remove(IMotionCmdPath item)

public final void remove(IMotionCmdPath item)

Removes specified commans from the collection.

Parameters:

ParameterTypeDescription
itemIMotionCmdPathMotion path to remove.

removeAt(int index)

public final void removeAt(int index)

Removes a command at the specified index.

Parameters:

ParameterTypeDescription
indexintIndex of a command that should be deleted.

get_Item(int index)

public final IMotionCmdPath get_Item(int index)

Returns a command at the specified index.

Parameters:

ParameterTypeDescription
indexintIndex of element.

Returns: IMotionCmdPath - The IMotionCmdPath object.

iterator()

public final System.Collections.Generic.IGenericEnumerator<IMotionCmdPath> iterator()

Returns an enumerator that iterates through the collection.

Returns: com.aspose.ms.System.Collections.Generic.IGenericEnumerator<com.aspose.slides.IMotionCmdPath> - A IGenericEnumerator that can be used to iterate through the collection.

iteratorJava()

public final System.Collections.Generic.IGenericEnumerator<IMotionCmdPath> iteratorJava()

Returns a java iterator for the entire collection.

Returns: com.aspose.ms.System.Collections.Generic.IGenericEnumerator<com.aspose.slides.IMotionCmdPath> - An java.util.Iterator for the entire collection.