QArrow
The QArrow
class uses Java's Path2D
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.
Value parameters
- len
-
the length of the arrowhead on the curve/arc
- p1
-
the starting point for the curve/arc
- p2
-
the ending point for the curve/arc
- pc
-
the control point for the curve/arc
Attributes
- Graph
-
- Supertypes
-
trait Producttrait Equalstrait CurvilinearShapeclass Doubletrait Serializableclass Path2Dtrait Cloneabletrait Shapeclass Objecttrait Matchableclass AnyShow all
Members list
Value members
Constructors
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.
Value parameters
- bend
-
the bend or curvature (1. => line length)
- p1
-
the starting point for the curve/arc
- p2
-
the ending point for the curve/arc
Attributes
Concrete methods
Get the x-coordinate of the center of the main line/curve.
Get the x-coordinate of the center of the main line/curve.
Attributes
Get the y-coordinate of the center of the main line/curve.
Get the y-coordinate of the center of the main line/curve.
Attributes
Set (or reset) the location for the QArrow
as a line.
Set (or reset) the location for the QArrow
as a line.
Value parameters
- _p1
-
the starting point
- _p2
-
the ending point
Attributes
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.
Value parameters
- _p1
-
the starting point
- _p2
-
the ending point
- bend
-
the bend or curvature (1. => line-length)
Attributes
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.
Value parameters
- _p1
-
the starting point
- _p2
-
the ending point
- _pc
-
the control point
Attributes
- Definition Classes
Inherited methods
Attributes
- Inherited from:
- Double
Attributes
- Inherited from:
- Path2D
Create a copy of the receiver object.
Create a copy of the receiver object.
The default implementation of the clone
method is platform dependent.
Attributes
- Returns
-
a copy of the receiver object.
- Note
-
not specified by SLS as a member of AnyRef
- Inherited from:
- Double
Attributes
- Inherited from:
- Path2D
Attributes
- Inherited from:
- Path2D
Attributes
- Inherited from:
- Path2D
Attributes
- Inherited from:
- Path2D
Attributes
- Inherited from:
- Path2D
Attributes
- Inherited from:
- Path2D
Attributes
- Inherited from:
- Double
Attributes
- Inherited from:
- Path2D
Attributes
- Inherited from:
- Double
Attributes
- Inherited from:
- Path2D
Attributes
- Inherited from:
- Path2D
Attributes
- Inherited from:
- Double
Attributes
- Inherited from:
- Path2D
Attributes
- Inherited from:
- Path2D
Attributes
- Inherited from:
- Path2D
Attributes
- Inherited from:
- Double
Attributes
- Inherited from:
- Double
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.
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.
Value parameters
- height
-
the height of object traversing the curve
- width
-
the width of object traversing the curve
Attributes
- Inherited from:
- CurvilinearShape
Attributes
- Inherited from:
- Product
Attributes
- Inherited from:
- Product
Attributes
- Inherited from:
- Double
Attributes
- Inherited from:
- Path2D
Attributes
- Inherited from:
- CurvilinearShape
Attributes
- Inherited from:
- CurvilinearShape
Attributes
- Inherited from:
- CurvilinearShape
Attributes
- Inherited from:
- Path2D
Attributes
- Inherited from:
- Double
Attributes
- Inherited from:
- Double