java.awt.geom
public static class CubicCurve2D.Double extends CubicCurve2D
Field Summary | |
---|---|
double | ctrlx1
The x coordinate of the curve’s first control point. |
double | ctrlx2
The x coordinate of the curve’s second control point. |
double | ctrly1
The y coordinate of the curve’s first control point. |
double | ctrly2
The y coordinate of the curve’s second control point. |
double | x1
The x coordinate of the curve’s start point. |
double | x2
The x coordinate of the curve’s end point. |
double | y1
The y coordinate of the curve’s start point. |
double | y2
The y coordinate of the curve’s end point. |
Constructor Summary | |
---|---|
Double()
Constructs a new CubicCurve2D that stores its coordinate values
in double-precision floating-point format. | |
Double(double x1, double y1, double cx1, double cy1, double cx2, double cy2, double x2, double y2)
Constructs a new CubicCurve2D that stores its coordinate values
in double-precision floating-point format, specifying the
initial position of each point.
|
Method Summary | |
---|---|
Rectangle2D | getBounds2D()
Determines the smallest rectangle that encloses the
curve’s start, end and control points. |
Point2D | getCtrlP1()
Returns the curve’s first control point. |
Point2D | getCtrlP2()
Returns the curve’s second control point. |
double | getCtrlX1()
Returns the x coordinate of the curve’s first
control point. |
double | getCtrlX2()
Returns the x coordinate of the curve’s second
control point. |
double | getCtrlY1()
Returns the y coordinate of the curve’s first
control point. |
double | getCtrlY2()
Returns the y coordinate of the curve’s second
control point. |
Point2D | getP1()
Returns the curve’s start point. |
Point2D | getP2()
Returns the curve’s end point. |
double | getX1()
Returns the x coordinate of the curve’s start
point. |
double | getX2()
Returns the x coordinate of the curve’s end
point. |
double | getY1()
Returns the y coordinate of the curve’s start
point. |
double | getY2()
Returns the y coordinate of the curve’s end
point. |
void | setCurve(double x1, double y1, double cx1, double cy1, double cx2, double cy2, double x2, double y2)
Changes the curve geometry, separately specifying each coordinate
value.
|
Parameters: x1 the x coordinate of the curve’s start point. y1 the y coordinate of the curve’s start point. cx1 the x coordinate of the curve’s first control point. cy1 the y coordinate of the curve’s first control point. cx2 the x coordinate of the curve’s second control point. cy2 the y coordinate of the curve’s second control point. x2 the x coordinate of the curve’s end point. y2 the y coordinate of the curve’s end point.
Parameters: x1 the x coordinate of the curve’s new start point. y1 the y coordinate of the curve’s new start point. cx1 the x coordinate of the curve’s new first control point. cy1 the y coordinate of the curve’s new first control point. cx2 the x coordinate of the curve’s new second control point. cy2 the y coordinate of the curve’s new second control point. x2 the x coordinate of the curve’s new end point. y2 the y coordinate of the curve’s new end point.