org.robokind.api.animation.factory
Class ControlPointFactory
java.lang.Object
org.robokind.api.animation.factory.ControlPointFactory
- All Implemented Interfaces:
- Factory<Point2D>
public class ControlPointFactory
- extends Object
- implements 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 Factory<Point2D>
- Returns:
- a new Point2D with the given coordinates
Copyright © 2011-2012. All Rights Reserved.