org.robokind.api.animation.factory
Class ControlPointFactory

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

public class ControlPointFactory
extends Object
implements org.robokind.api.common.utils.Factory<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 create()
          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

create

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

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


Copyright © 2011. All Rights Reserved.