Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Dia: straight line for association in class diagram

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?

like image 551
Iam Zesh Avatar asked May 22 '14 15:05

Iam Zesh


People also ask

How do you draw a straight line in dia?

At the left side menu all symbols will be there. In the drop down menu, select "other sheets" → "flow chart". You will get a straight line.

What is direct association in class diagram?

A directed association indicates that control flows from one classifier to another; for example an actor to a use case. This flow of control means that only one of the association ends specifies navigability. If you use association end names, you do not typically need to name an association.

What is a DIA class?

What is Dia? Dia is a drawing program that can be used to create diagrams. Dia includes a variety of basic tools like lines and boxes and can load “sheets” – collections of tools that are used in a specific type of diagram. Most diagram objects have handles to which lines can be connected to form graph structures.


1 Answers

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.

like image 92
AlVaz Avatar answered Sep 18 '22 18:09

AlVaz