java.lang.Object | ||
↳ | java.awt.geom.CubicCurve2D | |
↳ | java.awt.geom.CubicCurve2D.Float |
A cubic parametric curve segment specified with
float
coordinates.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
ctrlx1 | The X coordinate of the first control point of the cubic curve segment. | ||||||||||
ctrlx2 | The X coordinate of the second control point of the cubic curve segment. | ||||||||||
ctrly1 | The Y coordinate of the first control point of the cubic curve segment. | ||||||||||
ctrly2 | The Y coordinate of the second control point of the cubic curve segment. | ||||||||||
x1 | The X coordinate of the start point of the cubic curve segment. | ||||||||||
x2 | The X coordinate of the end point of the cubic curve segment. | ||||||||||
y1 | The Y coordinate of the start point of the cubic curve segment. | ||||||||||
y2 | The Y coordinate of the end point of the cubic curve segment. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructs and initializes a CubicCurve with coordinates
(0, 0, 0, 0, 0, 0, 0, 0).
| |||||||||||
Constructs and initializes a
CubicCurve2D from
the specified float coordinates. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the first control point.
| |||||||||||
Returns the second control point.
| |||||||||||
Returns the X coordinate of the first control point in double precision.
| |||||||||||
Returns the X coordinate of the second control point
in double precision.
| |||||||||||
Returns the Y coordinate of the first control point in double precision.
| |||||||||||
Returns the Y coordinate of the second control point
in double precision.
| |||||||||||
Returns the start point.
| |||||||||||
Returns the end point.
| |||||||||||
Returns the X coordinate of the start point in double precision.
| |||||||||||
Returns the X coordinate of the end point in double precision.
| |||||||||||
Returns the Y coordinate of the start point in double precision.
| |||||||||||
Returns the Y coordinate of the end point in double precision.
| |||||||||||
Sets the location of the end points and control points of this curve
to the specified double coordinates.
| |||||||||||
Sets the location of the end points and control points
of this curve to the specified
float coordinates. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.awt.geom.CubicCurve2D
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
java.awt.Shape
|
The X coordinate of the first control point of the cubic curve segment.
The X coordinate of the second control point of the cubic curve segment.
The Y coordinate of the first control point of the cubic curve segment.
The Y coordinate of the second control point of the cubic curve segment.
The X coordinate of the start point of the cubic curve segment.
The X coordinate of the end point of the cubic curve segment.
The Y coordinate of the start point of the cubic curve segment.
The Y coordinate of the end point of the cubic curve segment.
Constructs and initializes a CubicCurve with coordinates (0, 0, 0, 0, 0, 0, 0, 0).
Constructs and initializes a CubicCurve2D
from
the specified float
coordinates.
x1 | the X coordinate for the start point
of the resulting CubicCurve2D |
---|---|
y1 | the Y coordinate for the start point
of the resulting CubicCurve2D |
ctrlx1 | the X coordinate for the first control point
of the resulting CubicCurve2D |
ctrly1 | the Y coordinate for the first control point
of the resulting CubicCurve2D |
ctrlx2 | the X coordinate for the second control point
of the resulting CubicCurve2D |
ctrly2 | the Y coordinate for the second control point
of the resulting CubicCurve2D |
x2 | the X coordinate for the end point
of the resulting CubicCurve2D |
y2 | the Y coordinate for the end point
of the resulting CubicCurve2D |
Returns the first control point.
Point2D
that is the first control point of
the CubicCurve2D
.Returns the second control point.
Point2D
that is the second control point of
the CubicCurve2D
.Returns the X coordinate of the first control point in double precision.
CubicCurve2D
.Returns the X coordinate of the second control point in double precision.
CubicCurve2D
.Returns the Y coordinate of the first control point in double precision.
CubicCurve2D
.Returns the Y coordinate of the second control point in double precision.
CubicCurve2D
.Returns the start point.
Point2D
that is the start point of
the CubicCurve2D
.Returns the end point.
Point2D
that is the end point of
the CubicCurve2D
.Returns the X coordinate of the start point in double precision.
CubicCurve2D
.Returns the X coordinate of the end point in double precision.
CubicCurve2D
.Returns the Y coordinate of the start point in double precision.
CubicCurve2D
.Returns the Y coordinate of the end point in double precision.
CubicCurve2D
.Sets the location of the end points and control points of this curve to the specified double coordinates.
x1 | the X coordinate used to set the start point
of this CubicCurve2D |
---|---|
y1 | the Y coordinate used to set the start point
of this CubicCurve2D |
ctrlx1 | the X coordinate used to set the first control point
of this CubicCurve2D |
ctrly1 | the Y coordinate used to set the first control point
of this CubicCurve2D |
ctrlx2 | the X coordinate used to set the second control point
of this CubicCurve2D |
ctrly2 | the Y coordinate used to set the second control point
of this CubicCurve2D |
x2 | the X coordinate used to set the end point
of this CubicCurve2D |
y2 | the Y coordinate used to set the end point
of this CubicCurve2D |
Sets the location of the end points and control points
of this curve to the specified float
coordinates.
x1 | the X coordinate used to set the start point
of this CubicCurve2D |
---|---|
y1 | the Y coordinate used to set the start point
of this CubicCurve2D |
ctrlx1 | the X coordinate used to set the first control point
of this CubicCurve2D |
ctrly1 | the Y coordinate used to set the first control point
of this CubicCurve2D |
ctrlx2 | the X coordinate used to set the second control point
of this CubicCurve2D |
ctrly2 | the Y coordinate used to set the second control point
of this CubicCurve2D |
x2 | the X coordinate used to set the end point
of this CubicCurve2D |
y2 | the Y coordinate used to set the end point
of this CubicCurve2D |