com.aspose.slides.pptx.animation
Class AnimMotionPathEx

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

public class AnimMotionPathEx
extends java.lang.Object

Motion path is a collection which contains motion commands.


Constructor Summary
AnimMotionPathEx()
           
 
Method Summary
 int add(AnimMotionCommandPathTypeEx type, java.awt.geom.Point2D.Float[] pts, AnimMotionPathPointsTypeEx ptsType, boolean bRelativeCoord)
          Add new command to a motion path.
 void clear()
          Removes all commands from a motion path.
 AnimMotionCmdPathEx get(int index)
          Returns command at the specified index.
 void insert(int index, AnimMotionCommandPathTypeEx type, java.awt.geom.Point2D.Float[] pts, AnimMotionPathPointsTypeEx ptsType, boolean bRelativeCoord)
          Inserts new command to a motion path.
 java.util.Iterator iterator()
          Returns the iterator for a motion path.
 void remove(AnimMotionCmdPathEx 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

AnimMotionPathEx

public AnimMotionPathEx()
Method Detail

add

public int add(AnimMotionCommandPathTypeEx type,
               java.awt.geom.Point2D.Float[] pts,
               AnimMotionPathPointsTypeEx 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,
                   AnimMotionCommandPathTypeEx type,
                   java.awt.geom.Point2D.Float[] pts,
                   AnimMotionPathPointsTypeEx 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(AnimMotionCmdPathEx item)
Removes specified command from a motion path.


removeAt

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


get

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


iterator

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