I did this workaround. Is there a better way?


view shape rectangle text: #yourself.
view nodes: {#A. #B}.

view shape rectangle withoutBorder text: #yourself.
view node: #C.
view edgeFrom: [ :node | #C ]
to: [ :node | #B ].

view edgeFrom: [ :node | #A ]
to: [ :node | #C ].
view treeLayout.

Thanks in advance!

On Tuesday, July 19, 2011 at 7:51 PM, Alexandre Bergel wrote:

Please, give us the code. I however believe that a set of decorators are needed.

Cheers,
Alexandre



On Jul 19, 2011, at 4:48 PM, Veronica Isabel Uquillas Gomez <vuquilla@vub.ac.be> wrote:

Hi Doru,

I have that behavior and works fine. Maybe you will like to have it in Pharo.

However i tried with multiple edges between 2 nodes and i found that the edges are drawn in the same position so it is only possible to see one label.

Regards,
Veronica

On 19 Jul 2011, at 16:06, Tudor Girba wrote:

Unfortunately not anymore :(. We used to have that in VW.

Cheers,
Doru


On 19 Jul 2011, at 11:43, Alex Schenkman wrote:

Hi list,

Is it possible to put a text label to an edge?

For example, I have two lines going from A to B, and I want to put a text on those two lines.

A ----some text------ |
B
A ----another text ---|

Ascii art, :-)

Thanks!
_______________________________________________
Moose-dev mailing list
Moose-dev@iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev

--
www.tudorgirba.com

"Being happy is a matter of choice."




_______________________________________________
Moose-dev mailing list
Moose-dev@iam.unibe.ch
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
_______________________________________________
Moose-dev mailing list
Moose-dev@iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev