Connector

class visualife.diagrams.Connector(id, *points, **attrs)

Bases: visualife.diagrams.NodeBase

Connector is a line path that connects two nodes of a diagram.

It’s also derived from NodeBase so it’s possible to compute its center and assign a location

Parameters:

Methods Summary

draw(viewport, **kwargs) Draw this dot node on a viewport.

Methods Documentation

draw(viewport, **kwargs)

Draw this dot node on a viewport.

Parameters:
Keyword Arguments:
 
  • mark (string) – add a UML marker to this connector line; marker name must be one of the following:

    • "inheritance" to mark inheritance
    • "composition" to mark composition
    • "aggregation" to mark aggregation
  • reverse_connector (boolean) – draw arrows / markers in an opposite direction