org.robokind.api.animation.factory
Class ControlPointFactory

java.lang.Object
  extended by org.robokind.api.animation.factory.ControlPointFactory
All Implemented Interfaces:
org.jflux.api.core.Source<Point2D>

public class ControlPointFactory
extends Object
implements org.jflux.api.core.Source<Point2D>

Author:
Matthew Stevenson

Constructor Summary
ControlPointFactory(double x, double y)
          Creates a ControlPointFactory for creating Point2D with the given coordinates.
ControlPointFactory(Point2D point)
          Creates a ControlPointFactory for creating Point2D with the given coordinates.
 
Method Summary
 Point2D getValue()
          Returns a new Point2D with the given coordinates.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ControlPointFactory

public ControlPointFactory(Point2D point)
Creates a ControlPointFactory for creating Point2D with the given coordinates.

Parameters:
point - the coordinates given to all Point2D created by this Factory

ControlPointFactory

public ControlPointFactory(double x,
                           double y)
Creates a ControlPointFactory for creating Point2D with the given coordinates.

Parameters:
x - the x-coordinates given to all Point2D created by this Factory
y - the y-coordinates given to all Point2D created by this Factory
Method Detail

getValue

public Point2D getValue()
Returns a new Point2D with the given coordinates.

Specified by:
getValue in interface org.jflux.api.core.Source<Point2D>
Returns:
a new Point2D with the given coordinates


Copyright © 2011-2013. All Rights Reserved.