MotionPath
Inheritance: java.lang.Object
All Implemented Interfaces: com.aspose.slides.IMotionPath
public class MotionPath implements IMotionPath
Represent motion path.
Constructors
Constructor | Description |
---|---|
MotionPath() |
Methods
Method | Description |
---|---|
add(int type, PointF[] pts, int ptsType, boolean bRelativeCoord) | Add new command to path |
getCount() | Returns the number of paths in the collection. |
insert(int index, int type, PointF[] 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, PointF[] pts, int ptsType, boolean bRelativeCoord)
public final IMotionCmdPath add(int type, PointF[] pts, int ptsType, boolean bRelativeCoord)
Add new command to path
Parameters:
Parameter | Type | Description |
---|---|---|
type | int | MotionCommandPathType |
pts | android.graphics.PointF[] | Array of points |
ptsType | int | MotionPathPointsType |
bRelativeCoord | boolean | Relative 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, PointF[] pts, int ptsType, boolean bRelativeCoord)
public final void insert(int index, int type, PointF[] pts, int ptsType, boolean bRelativeCoord)
Insert new command to path
Parameters:
Parameter | Type | Description |
---|---|---|
index | int | The zero-based index at which item should be inserted. |
type | int | MotionCommandPathType |
pts | android.graphics.PointF[] | Array of points |
ptsType | int | MotionPathPointsType |
bRelativeCoord | boolean | Relative 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:
Parameter | Type | Description |
---|---|---|
item | IMotionCmdPath | Motion path to remove. |
removeAt(int index)
public final void removeAt(int index)
Removes a command at the specified index.
Parameters:
Parameter | Type | Description |
---|---|---|
index | int | Index 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:
Parameter | Type | Description |
---|---|---|
index | int | Index 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.