public class MotionPath extends java.lang.Object implements IMotionPath
Represent motion path.
Constructor and Description |
---|
MotionPath() |
Modifier and Type | Method and Description |
---|---|
IMotionCmdPath |
add(int type,
android.graphics.PointF[] pts,
int ptsType,
boolean bRelativeCoord)
Add new command to path
|
void |
clear()
Removes all commands from the collection.
|
IMotionCmdPath |
get_Item(int index)
Returns a command at the specified index.
|
int |
getCount()
Returns the number of paths in the collection.
|
void |
insert(int index,
int type,
android.graphics.PointF[] pts,
int ptsType,
boolean bRelativeCoord)
Insert new command to path
|
com.aspose.ms.System.Collections.Generic.IGenericEnumerator<IMotionCmdPath> |
iterator()
Returns an enumerator that iterates through the collection.
|
void |
remove(IMotionCmdPath item)
Removes specified commans from the collection.
|
void |
removeAt(int index)
Removes a command at the specified index.
|
public final IMotionCmdPath add(int type, android.graphics.PointF[] pts, int ptsType, boolean bRelativeCoord)
Add new command to path
add
in interface IMotionPath
type
- MotionCommandPathType
pts
- Array of pointsptsType
- MotionPathPointsType
bRelativeCoord
- Relative coordinates boolean
public final int getCount()
Returns the number of paths in the collection.
Read-only int
.
getCount
in interface IMotionPath
public final void insert(int index, int type, android.graphics.PointF[] pts, int ptsType, boolean bRelativeCoord)
Insert new command to path
insert
in interface IMotionPath
index
- The zero-based index at which item should be inserted.type
- MotionCommandPathType
pts
- Array of pointsptsType
- MotionPathPointsType
bRelativeCoord
- Relative coordinates boolean
public final void clear()
Removes all commands from the collection.
clear
in interface IMotionPath
public final void remove(IMotionCmdPath item)
Removes specified commans from the collection.
remove
in interface IMotionPath
item
- Motion path to remove.public final void removeAt(int index)
Removes a command at the specified index.
removeAt
in interface IMotionPath
index
- Index of a command that should be deleted.public final IMotionCmdPath get_Item(int index)
Returns a command at the specified index.
get_Item
in interface IMotionPath
index
- Index of element.IMotionCmdPath
object.public final com.aspose.ms.System.Collections.Generic.IGenericEnumerator<IMotionCmdPath> iterator()
Returns an enumerator that iterates through the collection.
iterator
in interface com.aspose.ms.System.Collections.Generic.IGenericEnumerable<IMotionCmdPath>
iterator
in interface com.aspose.ms.System.Collections.IEnumerable<IMotionCmdPath>
iterator
in interface java.lang.Iterable<IMotionCmdPath>
System.Collections.Generic.IEnumerator`1
that can be used to iterate through the collection.