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,
java.awt.geom.Point2D.Float[] 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,
java.awt.geom.Point2D.Float[] 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.
|
com.aspose.ms.System.Collections.Generic.IGenericEnumerator<IMotionCmdPath> |
iteratorJava()
Returns a java iterator for the entire 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, java.awt.geom.Point2D.Float[] pts, int ptsType, boolean bRelativeCoord)
Add new command to path
add in interface IMotionPathtype - MotionCommandPathTypepts - Array of pointsptsType - MotionPathPointsTypebRelativeCoord - Relative coordinates booleanIMotionCmdPathpublic final int getCount()
Returns the number of paths in the collection.
Read-only int.
getCount in interface IMotionPathpublic final void insert(int index,
int type,
java.awt.geom.Point2D.Float[] pts,
int ptsType,
boolean bRelativeCoord)
Insert new command to path
insert in interface IMotionPathindex - The zero-based index at which item should be inserted.type - MotionCommandPathTypepts - Array of pointsptsType - MotionPathPointsTypebRelativeCoord - Relative coordinates booleanpublic final void clear()
Removes all commands from the collection.
clear in interface IMotionPathpublic final void remove(IMotionCmdPath item)
Removes specified commans from the collection.
remove in interface IMotionPathitem - Motion path to remove.public final void removeAt(int index)
Removes a command at the specified index.
removeAt in interface IMotionPathindex - 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 IMotionPathindex - 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>IGenericEnumerator that can be used to iterate through the collection.public final com.aspose.ms.System.Collections.Generic.IGenericEnumerator<IMotionCmdPath> iteratorJava()
Returns a java iterator for the entire collection.
Iterator for the entire collection.Copyright © 2004-2025 Aspose Pty Ltd. All Rights Reserved.