org.robokind.api.animation.factory
Class MotionPathFactory

java.lang.Object
  extended by org.robokind.api.animation.factory.MotionPathFactory
All Implemented Interfaces:
org.robokind.api.common.utils.Factory<MotionPath>

public class MotionPathFactory
extends Object
implements org.robokind.api.common.utils.Factory<MotionPath>

A class for creating MotionPaths.

Author:
Matthew Stevenson

Constructor Summary
MotionPathFactory()
          Creates a MotionPathFactory with the default InterpolatorFactory.
MotionPathFactory(InterpolatorFactory factory)
          Creates a MotionPathFactory for creating MotionPaths with the given Interpolator type.
 
Method Summary
 MotionPath create()
          Returns a new MotionPath with the given Interpolator type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MotionPathFactory

public MotionPathFactory()
Creates a MotionPathFactory with the default InterpolatorFactory.


MotionPathFactory

public MotionPathFactory(InterpolatorFactory factory)
Creates a MotionPathFactory for creating MotionPaths with the given Interpolator type.

Parameters:
factory - the InterpolatorFactory used to create MotionPath Interpolators
Method Detail

create

public MotionPath create()
Returns a new MotionPath with the given Interpolator type.

Specified by:
create in interface org.robokind.api.common.utils.Factory<MotionPath>
Returns:
a new MotionPath with the given Interpolator type


Copyright © 2011. All Rights Reserved.