Question : HTML 5: UML diagram drawing: Sequence diagram: Class(Clazz).

Hi: I am going to HTML 5 to design a UML diagram tool, the tool provides sequence diagram. The class(clazz) in sequence diagram could be seen in attached diagram. It is normal class figure in UML tool.

My question:

1) In the clazz diagram, it consists of a rect and a extended vertical line. Shall I take them as seperate component(different canvas tag), then group them together, Or I shall draw them in same convas? Which design is better?
Attachments:
 
Class in sequence diagram
Class in sequence diagram
 

Answer : HTML 5: UML diagram drawing: Sequence diagram: Class(Clazz).

The connector expands as more classes are added in the sequence. It doesn't make any sense for the connector to be part of the Clazz itself. It can't know what else is going to be appended to instances of itself. The connector should be controlled by a designer class, not Clazz
Random Solutions  
 
programming4us programming4us