Hi. I want to build a UML class diagram in moose. Can anybody tell me how to do it? Thanks,
Best regards, Natalia
Hi Natalia, try to use RTUMLClassBuilder
| b | b := RTUMLClassBuilder new. b methodShape label if: [ :method | method selector beginsWith: 'init' ] color: Color green; if: [ :method | method selector beginsWith: 'with' ] color: Color red. b attributeShape label if: [ :attribute | attribute beginsWith: 'a' ] color: Color blue. b addObjects: RTShape withAllSubclasses. b treeLayout.
b view setDefaultMenu. b build. ^ b view
Cheers, Milton
2015-06-20 12:27 GMT-04:00 Natalia Tymchuk natalia.tymchuk@unikernel.net:
Hi. I want to build a UML class diagram in moose. Can anybody tell me how to do it? Thanks,
Best regards, Natalia _______________________________________________ Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Thanks, Milton.
On 20 Jun 2015, at 19:28, milton mamani akevalion@gmail.com wrote:
Hi Natalia, try to use RTUMLClassBuilder
| b | b := RTUMLClassBuilder new. b methodShape label if: [ :method | method selector beginsWith: 'init' ] color: Color green; if: [ :method | method selector beginsWith: 'with' ] color: Color red. b attributeShape label if: [ :attribute | attribute beginsWith: 'a' ] color: Color blue. b addObjects: RTShape withAllSubclasses. b treeLayout.
b view setDefaultMenu. b build. ^ b view
Cheers, Milton
2015-06-20 12:27 GMT-04:00 Natalia Tymchuk <natalia.tymchuk@unikernel.net mailto:natalia.tymchuk@unikernel.net>: Hi. I want to build a UML class diagram in moose. Can anybody tell me how to do it? Thanks,
Best regards, Natalia _______________________________________________ Moose-dev mailing list Moose-dev@iam.unibe.ch mailto:Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev