MotionPath

MotionPath class

Represent motion path.

MotionPath

NameDescription
MotionPath()

Returns: MotionPath


add

NameDescription
add(int, java.awt.geom.Point2D.Float[], int, boolean)Add new command to path

Parameters:

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

Returns: MotionCmdPath


clear

NameDescription
clear()Removes all commands from the collection.

getCount

NameDescription
getCount()Returns the number of paths in the collection. Read-only int.

Returns: int


get_Item

NameDescription
get_Item(int)Returns a command at the specified index.

Parameters:

NameTypeDescription
indexintIndex of element.

Returns: MotionCmdPath


insert

NameDescription
insert(int, int, java.awt.geom.Point2D.Float[], int, boolean)Insert new command to path

Parameters:

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

iterator

NameDescription
iterator()Returns an enumerator that iterates through the collection.

Returns:


iteratorJava

NameDescription
iteratorJava()Returns a java iterator for the entire collection.

Returns:


remove

NameDescription
remove(MotionCmdPath)Removes specified commans from the collection.

Parameters:

NameTypeDescription
itemMotionCmdPathMotion path to remove.

removeAt

NameDescription
removeAt(int)Removes a command at the specified index.

Parameters:

NameTypeDescription
indexintIndex of a command that should be deleted.