I will work on this, in this week

Cheers,
Milton

2016-02-16 14:33 GMT-04:00 Hernán Morales Durand <hernan.morales@gmail.com>:
Hi Milton,

Thanks for the code. As a little suggestion I would subclass RTArrowedLine as RTUMLLine's.

Have a look at the following types of connectors:

https://www.edrawsoft.com/about-connectors.php

What could be interesting is to have RTUMLAttributeToClassLine implementing those "Side to side", "Bottom to top", etc. types of connections. Then instead of:

line := (RTArrowedLine new 
color: Color black;
withHorizontalAttachPoint;
yourself)
edgeFrom: (b view elementFromModel: #compilationContext) 
to: (b view elementFromModel: CompilationContext).

one could write:

line := (RTUMLAttributeToClassLine new 
color: Color black;
withHorizontalAttachPoint;
yourself)
edgeFrom: (Compiler >> #compilationContext) 
to: CompilationContext.

Is just an idea to simplify API usage.
Cheers,

Hernán


2016-02-16 11:01 GMT-03:00 milton mamani <akevalion@gmail.com>:
Hi Hernan

Sorry for the late response, try this:

| b |
b := RTUMLClassBuilder new.
    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.

    addObjects: { Compiler . CompilationContext };
    treeLayout;
    build.
line := (RTArrowedLine new 
color: Color black;
withHorizontalAttachPoint;
yourself)
edgeFrom: (b view elementFromModel: #compilationContext) 
to: (b view elementFromModel: CompilationContext).
b view add: line.
b view

Please tell me what do you think

Cheers,
Milton

2016-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;
    view

Herná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