Construct a QArrow (quad arc) where bend indicates the distance to the control point.
Construct a QArrow (quad arc) where bend indicates the distance to the control point.
the starting point for the curve/arc
the ending point for the curve/arc
the bend or curvature (1. => line length)
the starting point for the curve/arc
the control point for the curve/arc
the ending point for the curve/arc
the length of the arrowhead on the curve/arc
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
Get the x-coordinate of the center of the main line/curve.
Get the x-coordinate of the center of the main line/curve.
Get the y-coordinate of the center of the main line/curve.
Get the y-coordinate of the center of the main line/curve.
the length of the arrowhead on the curve/arc
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
the starting point for the curve/arc
the ending point for the curve/arc
the control point for the curve/arc
Set (or reset) the location for the QArrow as a curve using an explicitly given control point.
Set (or reset) the location for the QArrow as a curve using an explicitly given control point.
the starting point
the control point
the ending point
Set (or reset) the location for the QArrow as a curve using bend to compute the control point.
Set (or reset) the location for the QArrow as a curve using bend to compute the control point.
the starting point
the ending point
the bend or curvature (1. => line-length)
Set (or reset) the location for the QArrow as a line.
Set (or reset) the location for the QArrow as a line.
the starting point
the ending point
The
QArrow
class uses Java'sPath2D
class to create a quad curve with an arrowhead on the far end. The main curve is defined by points 'p1' and 'p2' along with a control point 'pc'. Points 'p3' and 'p4' are the corners of the triangular arrowhead.the starting point for the curve/arc
the control point for the curve/arc
the ending point for the curve/arc
the length of the arrowhead on the curve/arc