label

Add a label to an existing relation.

The meaning of LabelPos. A "Left" -- "Right" B : "OnRelation"

  1. auto label(Relation m, string txt, LabelPos pos)
    @safe
    label
    (
    Relation m
    ,
    string txt
    ,
    LabelPos pos
    )
  2. auto label(Relation m, string txt)

Examples

1 auto m = new PlantumlModule;
2 auto c0 = m.class_("A");
3 auto c1 = m.class_("B");
4 auto r0 = m.relate(c0.name, c1.name, Relate.Compose);
5 r0.label("foo", LabelPos.Right);

Meta