com.aspose.slides.pptx.animation
Class MotionPathEx

java.lang.Object
  extended by com.aspose.slides.pptx.animation.MotionPathEx

public class MotionPathEx
extends java.lang.Object

Motion path is a collection which contains motion commands.


Constructor Summary
MotionPathEx()
           
 
Method Summary
 int add(MotionCommandPathTypeEx type, java.awt.geom.Point2D.Float[] pts, MotionPathPointsTypeEx ptsType, boolean bRelativeCoord)
          Add new command to a motion path.
 void clear()
          Removes all commands from a motion path.
 MotionCmdPathEx get(int index)
          Returns command at the specified index.
 void insert(int index, MotionCommandPathTypeEx type, java.awt.geom.Point2D.Float[] pts, MotionPathPointsTypeEx ptsType, boolean bRelativeCoord)
          Inserts new command to a motion path.
 java.util.Iterator iterator()
          Returns the iterator for a motion path.
 void remove(MotionCmdPathEx item)
          Removes specified command from a motion path.
 void removeAt(int index)
          Removes command at the specified index.
 int size()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MotionPathEx

public MotionPathEx()
Method Detail

add

public int add(MotionCommandPathTypeEx type,
               java.awt.geom.Point2D.Float[] pts,
               MotionPathPointsTypeEx ptsType,
               boolean bRelativeCoord)
Add new command to a motion path.

Parameters:
type - type of a motion command to add.
pts - coordinate points for creating new motion command.
ptsType - type of the used points.
bRelativeCoord - determines whether the coordinates are relative.

size

public int size()

insert

public void insert(int index,
                   MotionCommandPathTypeEx type,
                   java.awt.geom.Point2D.Float[] pts,
                   MotionPathPointsTypeEx ptsType,
                   boolean bRelativeCoord)
Inserts new command to a motion path.

Parameters:
index - where new command should be inserted.
type - type of a motion command to add.
pts - coordinate points for creating new motion command.
ptsType - type of the used points.
bRelativeCoord - determines whether the coordinates are relative.

clear

public void clear()
Removes all commands from a motion path.


remove

public void remove(MotionCmdPathEx item)
Removes specified command from a motion path.


removeAt

public void removeAt(int index)
Removes command at the specified index.


get

public MotionCmdPathEx get(int index)
Returns command at the specified index.


iterator

public java.util.Iterator iterator()
Returns the iterator for a motion path.