• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Jude experts - how to draw composition in class diagram

 
Roger Rustin
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

In this forum lots of people recommended using Jude and I am using it now. It works just fine and ,so far, I'm happy with it.

I need to draw composition relationship in class diagram and couldn't find the right tool. Am I missing something here?

thank.
- Roger
 
Parag Doshi
Ranch Hand
Posts: 317
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Roger Rustin:
Hi,

In this forum lots of people recommended using Jude and I am using it now. It works just fine and ,so far, I'm happy with it.

I need to draw composition relationship in class diagram and couldn't find the right tool. Am I missing something here?

thank.
- Roger


Roger,
Representing a composition relationship is a multi-step process. Lets assume you want to draw a composition between Class A and Class B, where Class A contains B.
1. First draw a regular association (horizontal line, 5th icon in the class diagram toolbar) between the 2 classes.
2. Click on the association line to select it and it will show the properties in the left hand corner section.
3. Click on the 'Role' tab and make sure the target is Class A.
4. Choose the 'aggregation' dropdown and select 'composite'from the options. Choosing this option will draw the filled diamond pointing at Class A.

Parag
[ August 15, 2004: Message edited by: Parag Doshi ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic