nesting in Roassal 2

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

nesting in Roassal 2

Usman Bhatti
Hi Alex,

Nesting in Roassal 2 works well without a label for the root entity. But when adding a label, to the root, the nesting isn't displayed properly. For example:

| view el shape  innerElements |
view := RTView new.
el := (RTBox new width: 80; height: 40; color: (Color purple alpha: 0.3)) element + (RTLabel new text:'test') .
el translateTo: 200 @ 150.
shape := RTBox new color: (Color red alpha: 0.3); size: #yourself.
innerElements := (1 to: 30) collect: [ :i | shape elementOn: i ].
view addAll: innerElements.
RTNest
new 
layout: RTGridLayout new;
on: el nest: innerElements.
view add: el.
view open.

Is this a bug or should a separate label for the root entity?

tx.
usman

Inline image 1


Without label:


Inline image 5




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

Re: nesting in Roassal 2

abergel
Hi Usman,

You’re right! I have updated Roassal2 to produce the following:


Cheers,
Alexandre


On Mar 31, 2014, at 6:33 AM, Usman Bhatti <[hidden email]> wrote:

Hi Alex,

Nesting in Roassal 2 works well without a label for the root entity. But when adding a label, to the root, the nesting isn't displayed properly. For example:

| view el shape  innerElements |
view := RTView new.
el := (RTBox new width: 80; height: 40; color: (Color purple alpha: 0.3)) element + (RTLabel new text:'test') .
el translateTo: 200 @ 150.
shape := RTBox new color: (Color red alpha: 0.3); size: #yourself.

innerElements := (1 to: 30) collect: [ :i | shape elementOn: i ].
view addAll: innerElements.


RTNest
new 
layout: RTGridLayout new;
on: el nest: innerElements.

view add: el.

view open.

Is this a bug or should a separate label for the root entity?

tx.
usman

<Screen Shot 2014-03-31 at 11.28.15 AM.png>


Without label:


<Screen Shot 2014-03-31 at 11.31.01 AM.png>



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

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




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

Re: nesting in Roassal 2

Stéphane Ducasse
roassal2 seems to be exciting.

On 31 Mar 2014, at 19:38, Alexandre Bergel <[hidden email]> wrote:

Hi Usman,

You’re right! I have updated Roassal2 to produce the following:

<Screen Shot 2014-03-31 at 2.37.48 PM.png>

Cheers,
Alexandre


On Mar 31, 2014, at 6:33 AM, Usman Bhatti <[hidden email]> wrote:

Hi Alex,

Nesting in Roassal 2 works well without a label for the root entity. But when adding a label, to the root, the nesting isn't displayed properly. For example:

| view el shape  innerElements |
view := RTView new.
el := (RTBox new width: 80; height: 40; color: (Color purple alpha: 0.3)) element + (RTLabel new text:'test') .
el translateTo: 200 @ 150.
shape := RTBox new color: (Color red alpha: 0.3); size: #yourself.

innerElements := (1 to: 30) collect: [ :i | shape elementOn: i ].
view addAll: innerElements.


RTNest
new 
layout: RTGridLayout new;
on: el nest: innerElements.

view add: el.

view open.

Is this a bug or should a separate label for the root entity?

tx.
usman

<Screen Shot 2014-03-31 at 11.28.15 AM.png>


Without label:


<Screen Shot 2014-03-31 at 11.31.01 AM.png>



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

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



_______________________________________________
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: nesting in Roassal 2

pharo4Stef@free.fr
In reply to this post by abergel
roassal2 seems to be exciting.




On 31 Mar 2014, at 19:38, Alexandre Bergel <[hidden email]> wrote:

Hi Usman,

You’re right! I have updated Roassal2 to produce the following:

<Screen Shot 2014-03-31 at 2.37.48 PM.png>

Cheers,
Alexandre


On Mar 31, 2014, at 6:33 AM, Usman Bhatti <[hidden email]> wrote:

Hi Alex,

Nesting in Roassal 2 works well without a label for the root entity. But when adding a label, to the root, the nesting isn't displayed properly. For example:

| view el shape  innerElements |
view := RTView new.
el := (RTBox new width: 80; height: 40; color: (Color purple alpha: 0.3)) element + (RTLabel new text:'test') .
el translateTo: 200 @ 150.
shape := RTBox new color: (Color red alpha: 0.3); size: #yourself.

innerElements := (1 to: 30) collect: [ :i | shape elementOn: i ].
view addAll: innerElements.


RTNest
new 
layout: RTGridLayout new;
on: el nest: innerElements.

view add: el.

view open.

Is this a bug or should a separate label for the root entity?

tx.
usman

<Screen Shot 2014-03-31 at 11.28.15 AM.png>


Without label:


<Screen Shot 2014-03-31 at 11.31.01 AM.png>



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

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



_______________________________________________
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: nesting in Roassal 2

Usman Bhatti
In reply to this post by abergel



On Mon, Mar 31, 2014 at 7:38 PM, Alexandre Bergel <[hidden email]> wrote:
Hi Usman,

You’re right! I have updated Roassal2 to produce the following:

tx Alex. It tested and it works. Do you think it is easily manageable to change the position of the label. Sometimes, we would like to place the label on the top left and elements start to draw just after or on the next line .
 


Cheers,
Alexandre


On Mar 31, 2014, at 6:33 AM, Usman Bhatti <[hidden email]> wrote:

Hi Alex,

Nesting in Roassal 2 works well without a label for the root entity. But when adding a label, to the root, the nesting isn't displayed properly. For example:

| view el shape  innerElements |
view := RTView new.
el := (RTBox new width: 80; height: 40; color: (Color purple alpha: 0.3)) element + (RTLabel new text:'test') .
el translateTo: 200 @ 150.
shape := RTBox new color: (Color red alpha: 0.3); size: #yourself.

innerElements := (1 to: 30) collect: [ :i | shape elementOn: i ].
view addAll: innerElements.


RTNest
new 
layout: RTGridLayout new;
on: el nest: innerElements.

view add: el.

view open.

Is this a bug or should a separate label for the root entity?

tx.
usman

<Screen Shot 2014-03-31 at 11.28.15 AM.png>


Without label:


<Screen Shot 2014-03-31 at 11.31.01 AM.png>



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

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




_______________________________________________
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: nesting in Roassal 2

Tudor Girba-2
We need a composition mechanism for shapes. Please :)

Doru


On Tue, Apr 1, 2014 at 11:35 AM, Usman Bhatti <[hidden email]> wrote:



On Mon, Mar 31, 2014 at 7:38 PM, Alexandre Bergel <[hidden email]> wrote:
Hi Usman,

You’re right! I have updated Roassal2 to produce the following:

tx Alex. It tested and it works. Do you think it is easily manageable to change the position of the label. Sometimes, we would like to place the label on the top left and elements start to draw just after or on the next line .
 


Cheers,
Alexandre


On Mar 31, 2014, at 6:33 AM, Usman Bhatti <[hidden email]> wrote:

Hi Alex,

Nesting in Roassal 2 works well without a label for the root entity. But when adding a label, to the root, the nesting isn't displayed properly. For example:

| view el shape  innerElements |
view := RTView new.
el := (RTBox new width: 80; height: 40; color: (Color purple alpha: 0.3)) element + (RTLabel new text:'test') .
el translateTo: 200 @ 150.
shape := RTBox new color: (Color red alpha: 0.3); size: #yourself.

innerElements := (1 to: 30) collect: [ :i | shape elementOn: i ].
view addAll: innerElements.


RTNest
new 
layout: RTGridLayout new;
on: el nest: innerElements.

view add: el.

view open.

Is this a bug or should a separate label for the root entity?

tx.
usman

<Screen Shot 2014-03-31 at 11.28.15 AM.png>


Without label:


<Screen Shot 2014-03-31 at 11.31.01 AM.png>



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

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




_______________________________________________
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




--

"Every thing has its own flow"

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

Re: nesting in Roassal 2

abergel
> We need a composition mechanism for shapes. Please :)

Roassal2 and Trachel offer a primitive way to compose shapes.
You can have a look at RTCompositeShape and TRCompositeShape.

Alexandre

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



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