Get the x-coordinate of the center of a line/curve.
Get the x-coordinate of the center of a line/curve. This method must be implemented by all classes mixing in this trait.
Get the y-coordinate of the center of a line/curve.
Get the y-coordinate of the center of a line/curve. This method must be implemented by all classes mixing in this trait.
Set (or reset) the location for a line/curve using the bend parameter to compute the control point.
Set (or reset) the location for a line/curve using the bend parameter to compute the control point. This method must be implemented by all classes mixing in this trait.
the bend or curvature (1. => line-length)
Set (or reset) the location for a straight line.
Set (or reset) the location for a straight line. This method must be implemented by all classes mixing in this trait.
the starting point
the ending point
Show the flaw by printing the error message.
Show the flaw by printing the error message.
the method where the error occurred
the error message
Return the next point on the CurvilinearShape (one step beyond current point) and adjust from top-left to center coordinates for the object traversing the curve based on its width and height.
Return the next point on the CurvilinearShape (one step beyond current point) and adjust from top-left to center coordinates for the object traversing the curve based on its width and height. Return null if past end point. This is an optional method.
the width of object traversing the curve
the height of object traversing the curve
Set (or reset) the location for a line/curve using an explicitly given control point.
Set (or reset) the location for a line/curve using an explicitly given control point. This is an optional method.
The CurvilinearShape trait provides a general type for line and curves. It is analogous to RectangularShape.