HernánCheers,Is just an idea to simplify API usage.What could be interesting is to have RTUMLAttributeToClassLine implementing those "Side to side", "Bottom to top", etc. types of connections. Then instead of:Have a look at the following types of connectors:Hi Milton,Thanks for the code. As a little suggestion I would subclass RTArrowedLine as RTUMLLine's.
https://www.edrawsoft.com/about-connectors.phpline := (RTArrowedLine newcolor: Color black;withHorizontalAttachPoint;yourself)edgeFrom: (b view elementFromModel: #compilationContext)to: (b view elementFromModel: CompilationContext).one could write:line := (RTUMLAttributeToClassLine newcolor: Color black;withHorizontalAttachPoint;yourself)edgeFrom: (Compiler >> #compilationContext)to: CompilationContext.2016-02-16 11:01 GMT-03:00 milton mamani <akevalion@gmail.com>:Hi HernanSorry for the late response, try this:| b |b := RTUMLClassBuilder new.binstanceVariables: #instVarNames;methodselector: #selector;methodsNames: #();attributeselector: #yourself.b attributeShape color: Color black.b methodShape color: Color black.b classNameShape color: Color black.b lineShape color: Color black.b boxShape borderColor: Color black.baddObjects: { Compiler . CompilationContext };treeLayout;build.line := (RTArrowedLine newcolor: Color black;withHorizontalAttachPoint;yourself)edgeFrom: (b view elementFromModel: #compilationContext)to: (b view elementFromModel: CompilationContext).b view add: line.b viewPlease tell me what do you thinkCheers,Milton2016-02-07 12:55 GMT-04:00 Hernán Morales Durand <hernan.morales@gmail.com>:_______________________________________________Hello,I am using Moose 6.0 to generate an UML diagram for a paper.In the UML diagram below is there a way to specify a Line between the compilationContext instance variable and CompilationContext class box?| b |
b := RTUMLClassBuilder new.
b
instanceVariables: #instVarNames;
methodselector: #selector;
methodsNames: #();
attributeselector: #yourself.
b attributeShape color: Color black.
b methodShape color: Color black.
b classNameShape color: Color black.
b lineShape color: Color black.
b boxShape borderColor: Color black.
b
addObjects: { Compiler . CompilationContext };
treeLayout;
build;
viewHernán
Moose-dev mailing list
Moose-dev@list.inf.unibe.ch
https://www.list.inf.unibe.ch/listinfo/moose-dev
_______________________________________________
Moose-dev mailing list
Moose-dev@list.inf.unibe.ch
https://www.list.inf.unibe.ch/listinfo/moose-dev
_______________________________________________
Moose-dev mailing list
Moose-dev@list.inf.unibe.ch
https://www.list.inf.unibe.ch/listinfo/moose-dev