1.83 class joint

Class joint is a super-class for all line-like graphical classes that may have arrows at either or both ends of the line. Currently it has the following subclasses:

1.83.1 Instance variables

joint <- first_arrow: graphical*
Arrow object at the start-point of the joint. If @nil, no arrow is displayed. Default (simple) arrows are normally attached using joint->arrows.

Any graphical implementing joint->points compliant to arrow->points can be used as an arrow head. If the joint is changed, it's graphical->compute method will send joint->points to the arrow object and recompute the bounding box of the joint. Similar, graphical->redraw will draw invoke the graphical->redraw method of the arrow(s).

joint <- second_arrow: graphical*
Arrow object at the end-point of the joint. If @nil, no arrow is displayed.

1.83.2 Send methods

joint ->arrows: arrows={none,first,second,both}
Inherits description from: joint<-arrows
joint ->initialise: x=[int], y=[int], width=[int], height=[int], arrows=[{none,first,second,both}]
For an application programmer it is not useful to make instances of class joint directly. See line->initialise, arc->initialise and path->initialise.

1.83.3 Get methods

joint <-arrows: -> arrows={none,first,second,both}
The joint<->arrows method provides a simple interface to joint->first_arrow and joint->second_arrow. If it attaches arrows the new arrow is created using joint<-default_arrow.
joint <-default_arrow: -> graphical
Create a default arrow (new(arrow)), see arrow->initialise. This method is called by joint->arrows. Intended to be redefined for making lines with different arrow styles.