• Post Reply Bookmark Topic Watch Topic
  • New Topic

Class diagram - diagonal lines

 
Marcelo Ortega
Ranch Hand
Posts: 528
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I understand that the class diagram should be readable to the examiner. In general, do class diagrams have a norm for straight lines (vertical and horizontal), or are diagonal lines acceptable? My class diagram has most diagonal lines because I wouldn't be able to do it otherwise (I'm using StarUML and it doesn't handle multiple vertical / horizontal lines from the same class very well).
 
Rajan Choudhary
Ranch Hand
Posts: 196
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't think, there is any restriction of diagonal or horizontal/vertical lines as per the UML spec. We should try not to intersect the line as much as possible. I had few diagonal, most of them horizontal/vertical and few lines were intersecting. I couldn't remove all intersections as the diagram was big and bit complex.
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 36031
432
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Diagonal lines are fine in a class diagram. They are common when showing something like three classes extending a class or a class with many relationships.
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!