A relation describes the reusable part of a constraint
object. Class relation
may be subclassed to define new relations. Subclasses normally redefine relation->create, relation->forward
and/or relation->backwards.
The current system contains two types of relations, two of which are strictly between graphicals and one general. They are:
New relations may be defined as user-defined subclasses of this class. A relation should define the methods:
->create
Called when the relation is established
->forwards
Called if the constraint<-from
side changes.
->backwards
Called if the constraint<-to
side changes.
to has changed. Its task is to update from
accordingly.->forwards
to itself. This method is activated when the
constraint object
this relation is referred from is initialised.from has changed. Its task is to update to
accordingly. If relation->create
has not been redefined, this method is also called when the constraint
object is established.