data
Class ControlPoint

java.lang.Object
  extended bydata.ControlPoint

public class ControlPoint
extends Object

This class represents a control point of a Bezier curve. It has an x and a y coordinate.

Since:
1.00
Version:
1.10
Author:
Berend "Kirk" Wouda

Field Summary
protected  double x
          The x coordinate of this ControlPoint.
protected  double y
          The y coordinate of this ControlPoint.
 
Constructor Summary
ControlPoint(double x, double y)
          Constructs a new ControlPoint with the given coordinates.
 
Method Summary
 double getX()
          Returns the x coordinate of this ControlPoint.
 double getY()
          Returns the y coordinate of this ControlPoint.
 void setX(double x)
          Sets the x coordinate of this ControlPoint to x.
 void setY(double y)
          Sets the y coordinate of this ControlPoint to y.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

x

protected double x
The x coordinate of this ControlPoint.


y

protected double y
The y coordinate of this ControlPoint.

Constructor Detail

ControlPoint

public ControlPoint(double x,
                    double y)
Constructs a new ControlPoint with the given coordinates.

Parameters:
x - The x coordinate.
y - The y coordinate.
Method Detail

getX

public double getX()
Returns the x coordinate of this ControlPoint.

Returns:
The x coordinate of this ControlPoint. Duh.

setX

public void setX(double x)
Sets the x coordinate of this ControlPoint to x.

Parameters:
x - The x coordinate to set.

getY

public double getY()
Returns the y coordinate of this ControlPoint.

Returns:
The y coordinate of this ControlPoint. Yeah.

setY

public void setY(double y)
Sets the y coordinate of this ControlPoint to y.

Parameters:
y - The y coordinate to set.