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
Get the x-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
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