org.robokind.api.animation.factory
Class ControlPointFactory
java.lang.Object
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 |
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 Factoryy
- the y-coordinates given to all Point2D created by this Factory
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.