|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectdata.ControlPoint
This class represents a control point of a Bezier curve. It has an x and a y coordinate.
| 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 |
protected double x
ControlPoint.
protected double y
ControlPoint.
| Constructor Detail |
public ControlPoint(double x,
double y)
ControlPoint with the given coordinates.
x - The x coordinate.y - The y coordinate.| Method Detail |
public double getX()
ControlPoint.
ControlPoint. Duh.public void setX(double x)
ControlPoint to x.
x - The x coordinate to set.public double getY()
ControlPoint.
ControlPoint. Yeah.public void setY(double y)
ControlPoint to y.
y - The y coordinate to set.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||