[Mondrian] Can edges have text labels on them?

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

[Mondrian] Can edges have text labels on them?

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

Re: [Mondrian] Can edges have text labels on them?

Tudor Girba-2
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
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev

--
www.tudorgirba.com

"Being happy is a matter of choice."




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

Re: [Mondrian] Can edges have text labels on them?

Veronica Isabel Uquillas Gomez
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
>> [hidden email]
>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>
> --
> www.tudorgirba.com
>
> "Being happy is a matter of choice."
>
>
>
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev


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

Re: [Mondrian] Can edges have text labels on them?

Tudor Girba-2
Where is the code?

Doru


On 19 Jul 2011, at 16:48, Veronica Isabel Uquillas Gomez 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
>>> [hidden email]
>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>
>> --
>> www.tudorgirba.com
>>
>> "Being happy is a matter of choice."
>>
>>
>>
>>
>> _______________________________________________
>> Moose-dev mailing list
>> [hidden email]
>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev

--
www.tudorgirba.com

"It's not what we do that matters most, it's how we do it."


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

Re: [Mondrian] Can edges have text labels on them?

abergel
In reply to this post by Alex Schenkman
This is currently not possible

Cheers,
Alexandre



On Jul 19, 2011, at 11:43 AM, Alex Schenkman <[hidden email]> 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
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev

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

Re: [Mondrian] Can edges have text labels on them?

abergel
In reply to this post by Veronica Isabel Uquillas Gomez
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 <[hidden email]> 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
>>> [hidden email]
>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>
>> --
>> www.tudorgirba.com
>>
>> "Being happy is a matter of choice."
>>
>>
>>
>>
>> _______________________________________________
>> Moose-dev mailing list
>> [hidden email]
>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: [Mondrian] Can edges have text labels on them?

Alex Schenkman
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 <[hidden email]> 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
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev

--
www.tudorgirba.com

"Being happy is a matter of choice."




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


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


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

Re: [Mondrian] Can edges have text labels on them?

Veronica Isabel Uquillas Gomez
Hi,

I just published it  and I added a small example in the basic group of the easel.
That was an old change I had in Torch overriding a Mondrian method..

Cheers,
Veronica


On 20 Jul 2011, at 10:23, Alex Schenkman wrote:

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

--
www.tudorgirba.com

"Being happy is a matter of choice."




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


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

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


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

Re: [Mondrian] Can edges have text labels on them?

Veronica Isabel Uquillas Gomez
Wait a minute... It is not a label but a popup text on edges.. In any case i can be useful :)


On 20 Jul 2011, at 11:08, Veronica Isabel Uquillas Gomez wrote:

Hi,

I just published it  and I added a small example in the basic group of the easel.
That was an old change I had in Torch overriding a Mondrian method..

Cheers,
Veronica


On 20 Jul 2011, at 10:23, Alex Schenkman wrote:

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

--
www.tudorgirba.com

"Being happy is a matter of choice."




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


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

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

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


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