java.awt.geom
public static class QuadCurve2D.Float extends QuadCurve2D
Field Summary | |
---|---|
float | ctrlx
The x coordinate of the curve’s control point. |
float | ctrly
The y coordinate of the curve’s control point. |
float | x1
The x coordinate of the curve’s start point. |
float | x2
The x coordinate of the curve’s end point. |
float | y1
The y coordinate of the curve’s start point. |
float | y2
The y coordinate of the curve’s end point. |
Constructor Summary | |
---|---|
Float()
Constructs a new QuadCurve2D that stores its coordinate values
in single-precision floating-point format. | |
Float(float x1, float y1, float cx, float cy, float x2, float y2)
Constructs a new QuadCurve2D that stores its coordinate values
in single-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 point. |
Point2D | getCtrlPt()
Returns the curve’s control point. |
double | getCtrlX()
Returns the x coordinate of the curve’s control
point. |
double | getCtrlY()
Returns the y coordinate of the curve’s 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 cx, double cy, double x2, double y2)
Changes the geometry of the curve, specifying coordinate values
as double-precision floating-point numbers.
|
void | setCurve(float x1, float y1, float cx, float cy, float x2, float y2)
Changes the geometry of the curve, specifying coordinate values
as single-precision floating-point numbers.
|
Parameters: x1 the x coordinate of the curve’s start point. y1 the y coordinate of the curve’s start point. cx the x coordinate of the curve’s control point. cy the y coordinate of the curve’s 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. cx the x coordinate of the curve’s new control point. cy the y coordinate of the curve’s new control point. x2 the x coordinate of the curve’s new end point. y2 the y coordinate of the curve’s new 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. cx the x coordinate of the curve’s new control point. cy the y coordinate of the curve’s new control point. x2 the x coordinate of the curve’s new end point. y2 the y coordinate of the curve’s new end point.