This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Little Book of Impediments (e-book only) and have Tom Perry on-line!
See this thread for details.
Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • 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
Marshal
Posts: 35279
384
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic