Dia: straight line for association in class diagram
Asked Answered
L

1

9

In Dia, by default (at least on Debian Wheezy out of the box) the lines representing the associations between two classes are not straight but follow the grid. Is there a way to make the association lines between classes in dia straight?

Liederkranz answered 22/5, 2014 at 15:6 Comment(0)
H
1

In the UML symbol sheet, the Association symbol is a zig-zag, meaning it will only ever move orthogonally to the sheet. Depending on whether you're using all of the features of the Association symbol (multiplicity, label, etc), you could use the standard Line symbol in its place. The Line symbol (L) can be given the necessary beginning and end diamonds or arrows and you can attach a Text element to the line. What you mostly miss out on is the multiplicity labels on either end of the line (though it would seem those would be less valuable if your line was diagonal).

I hope this helps and is acceptable.

Huygens answered 13/10, 2015 at 0:26 Comment(1)
How do you attach a text to a standard line (L)? I see no option for that.Scalenus

© 2022 - 2024 — McMap. All rights reserved.