Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Intellij java class diagram, arrows between classes

I use Intellij to generate class diagrams from my Java code. I'm pretty happy with it.

When I click 'Show Dependencies' I get straight arrows being drawn between classes.

enter image description here

I then click 'Apply Current Layout (F5)', everything gets reorganized nicely with arrows no longer straight lines but rather going around classes in a neat way

enter image description here

However every time the diagram redraws itself the arrows go straight again. I need to re-click 'Apply Current Layout (F5)' to make them angle again, which also zooms out of the diagram, which is pretty annoying...

Is there a way to keep the arrows angled after a chart redraw?

Using IntelliJ 14.1.4 on Linux, Build IU-141.1532

like image 279
neric Avatar asked Sep 16 '15 08:09

neric


1 Answers

I were working on that problem myself. The solution is easy. File->Settings->(search for "diagrams")-> tick the checkbox "Fit content after Layout"

enter image description here

This only saves the Layout of the classdiagramm, the dependencies are still straight and there is no way to change their behaviour.

like image 173
Tom Wellbrock Avatar answered Sep 24 '22 08:09

Tom Wellbrock