Addling lines to RTUMLClassBuilder

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Addling lines to RTUMLClassBuilder

hernanmd
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
[hidden email]
https://www.list.inf.unibe.ch/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Addling lines to RTUMLClassBuilder

akevalion
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: Addling lines to RTUMLClassBuilder

hernanmd
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 <[hidden email]>:
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 <[hidden email]>:
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
[hidden email]
https://www.list.inf.unibe.ch/listinfo/moose-dev



_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.list.inf.unibe.ch/listinfo/moose-dev



_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.list.inf.unibe.ch/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Addling lines to RTUMLClassBuilder

akevalion
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: Addling lines to RTUMLClassBuilder

hernanmd
Thank you Milton for taking care of this.
(working in Dia or ArgoUML is not very amusing)

Hernán

2016-02-16 16:03 GMT-03:00 milton mamani <[hidden email]>:
I will work on this, in this week

Cheers,
Milton

2016-02-16 14:33 GMT-04:00 Hernán Morales Durand <[hidden email]>:
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 <[hidden email]>:
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 <[hidden email]>:
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
[hidden email]
https://www.list.inf.unibe.ch/listinfo/moose-dev



_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.list.inf.unibe.ch/listinfo/moose-dev



_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.list.inf.unibe.ch/listinfo/moose-dev



_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.list.inf.unibe.ch/listinfo/moose-dev



_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.list.inf.unibe.ch/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Addling lines to RTUMLClassBuilder

abergel
Hi Hernán,

Thanks for your input. I think it would be great to improve RTEdgeBuilder. All the edge construction should go through it.

Cheers,
Alexandre


> On Feb 16, 2016, at 7:14 PM, Hernán Morales Durand <[hidden email]> wrote:
>
> Thank you Milton for taking care of this.
> (working in Dia or ArgoUML is not very amusing)
>
> Hernán
>
> 2016-02-16 16:03 GMT-03:00 milton mamani <[hidden email]>:
> I will work on this, in this week
>
> Cheers,
> Milton
>
> 2016-02-16 14:33 GMT-04:00 Hernán Morales Durand <[hidden email]>:
> 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 <[hidden email]>:
> Hi Hernan
>
> Sorry for the late response, try this:
>
> | 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.
> 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 <[hidden email]>:
> 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
> [hidden email]
> https://www.list.inf.unibe.ch/listinfo/moose-dev
>
>
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.list.inf.unibe.ch/listinfo/moose-dev
>
>
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.list.inf.unibe.ch/listinfo/moose-dev
>
>
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.list.inf.unibe.ch/listinfo/moose-dev
>
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.list.inf.unibe.ch/listinfo/moose-dev

--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.



_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.list.inf.unibe.ch/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Addling lines to RTUMLClassBuilder

abergel
In reply to this post by akevalion
It would be great to write instead:

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
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.

b shape arrowedLine
        color: Color black;
        withHorizontalAttachPoint.
b edges
        connectFrom: 'compilationContext' to: CompilationContext.

b
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

Alexandre


> On Feb 16, 2016, at 11:01 AM, milton mamani <[hidden email]> wrote:
>
> Hi Hernan
>
> Sorry for the late response, try this:
>
> | 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.
> 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 <[hidden email]>:
> 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
> [hidden email]
> https://www.list.inf.unibe.ch/listinfo/moose-dev
>
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.list.inf.unibe.ch/listinfo/moose-dev

--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.



_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.list.inf.unibe.ch/listinfo/moose-dev