CurvilinearShape
The CurvilinearShape
trait provides a general type for lines and curves. It is analogous to RectangularShape
.
Attributes
- Graph
-
- Supertypes
-
trait Shapeclass Objecttrait Matchableclass Any
- Known subtypes
Members list
Value members
Abstract methods
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 x-coordinate of the center of a line/curve. This method must be implemented by all classes mixing in this trait.
Attributes
Get the y-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. This method must be implemented by all classes mixing in this trait.
Attributes
Set (or reset) the location for a straight line. This method must be implemented by all classes mixing in this trait.
Set (or reset) the location for a straight line. This method must be implemented by all classes mixing in this trait.
Value parameters
- p1
-
the starting point
- p2
-
the ending point
Attributes
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.
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.
Value parameters
- bend
-
the bend or curvature (1. => line-length)
- p1
-
the starting point
- p2
-
the ending point
Attributes
Concrete methods
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
Set (or reset) the location for a line/curve using an explicitly given control point. This is an optional method.
Set (or reset) the location for a line/curve using an explicitly given control point. This is an optional method.
Value parameters
- p1
-
the starting point
- p2
-
the ending point
- pc
-
the control point
Attributes
Inherited and Abstract methods
Attributes
- Inherited from:
- Shape
Attributes
- Inherited from:
- Shape
Attributes
- Inherited from:
- Shape
Attributes
- Inherited from:
- Shape
Attributes
- Inherited from:
- Shape
Attributes
- Inherited from:
- Shape
Attributes
- Inherited from:
- Shape
Attributes
- Inherited from:
- Shape
Attributes
- Inherited from:
- Shape
Attributes
- Inherited from:
- Shape