my dog learned polymorphism*
The moose likes OO, Patterns, UML and Refactoring and the fly likes UML of Chart Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » OO, Patterns, UML and Refactoring
Bookmark "UML of Chart" Watch "UML of Chart" New topic
Author

UML of Chart

Mon Hom
Greenhorn

Joined: Oct 13, 2004
Posts: 2
Could you have example about class diagram of charts ( ex. bar chart)?
thanks in advance
Maulin Vasavada
Ranch Hand

Joined: Nov 04, 2001
Posts: 1871
Hi Mon

What are your thoughts about the design?

Is it some kind of homework?

Thanks
Maulin
Mon Hom
Greenhorn

Joined: Oct 13, 2004
Posts: 2
Hi Maulin,
i've classes bar chart,line chart are inherited from graph.i've method draw for each chart but i can't find attribute for each chart.have you any idea?
thanks in advance
Maulin Vasavada
Ranch Hand

Joined: Nov 04, 2001
Posts: 1871
Hi Mon

I guess just list some properties of the charts you have. Those properties will become attribute of the charts.

e.g. Bar chart needs to have, scale and unit on X and Y axis etc

Don't worry about UML right now. Just list all properties each individual chart can have and then UML is easy.

Regards
Maulin
 
 
subject: UML of Chart