A link object describes the reusable part of a connection object. A connection is a line object between two graphicals, attached to handle objects defined on those graphicals or on their classes.
The reusable link contains the handle<-kind
of the handles required at the start- and endpoint of the line and a
prototype for the line (with the appropriate texture, pen, arrows, etc).
See also example Linking Graphicals, class connection and class handle.
<-connection.
This must be a subclass of class connection.
If the value is @default,
this slot will be set to
class(connection) on the first call to link<-connection.<-kind
equal to the value of this variable at the indicated end.-from
<-kind
is handle_kind1 at the connection<-from
end and handle<-kind
is handle_kind2 at the connection<-to
end.
The default handle_kind1 is link. The default
handle_kind2 is handle_kind1. The default line is an instance of class line
create with no arguments.
The connection_class argument determines the class used by
link<-connection
to instantiate the link. The default is class connection.
->connect.
The default implementation of this method creates an instance of
class link<-connection_class
using the arguments passed to this method. See connection->initialise.