Sorry if this is a repeat, not sure if my first post came through.
Is it possible with Mondrian to do any of the following:
- generate labels on graph edges e.g. names of association ends in a UML class diagram?
- generate nodes like class nodes (with name, line, attributes list, etc.)?
- possibly with some layout coding, generate component-port-connector models: labeled boxes, labeled lines between boxes, labeled mini-boxes on the edges of the connections
- Are these reasonable usages of current Mondrian capability?
Thanks!
Hi,
Sorry if this is a repeat, not sure if my first post came through.
Your mail came through, but I just forgot to answer it :)
Is it possible with Mondrian to do any of the following:
- generate labels on graph edges e.g. names of association ends in a
UML class diagram?
Theoretically yes, but the current implementation will not draw them quite correctly :(. To do that you have to decorate an ArrowShape with a LabelShape. The problem is that LabelShape was made to work with Rectangles, so they will position themselves outside the bounds of the shape they decorate. So, if you have a LineShape that is diagonal from top-left to bottom-right, and you want a label at the end, you will get your label positioned either on the top-right or on the bottom- right.
This should actually be changed, as the line should directly know how to work with labels.
- generate nodes like class nodes (with name, line, attributes list,
etc.)?
view umlClassShapeWithLabel: #name. view nodes: classGroup. ...
- possibly with some layout coding, generate component-port-
connector models: labeled boxes, labeled lines between boxes, labeled mini-boxes on the edges of the connections
Yes it is possible. To build complex shapes, you should take a look at the FormsBuilder. To get an idea of how to use it, take a look at FormsBuilderTest. A very complex shape can be seen in FormsBuilderTest>>testAdvancedApi.
- Are these reasonable usages of current Mondrian capability?
Definitely.
Cheers, Doru
Thanks!
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- www.tudorgirba.com www.tudorgirba.com/blog
"Problem solving efficiency grows with the abstractness level of problem understanding."