problem with Roassal mouse interaction

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

problem with Roassal mouse interaction

Usman Bhatti
MouseEnter event does not fire while entering a node. 
This script shows the demonstrates the problem.

view := ROMondrianViewBuilder new.
view shape rectangle size: 20.
view interaction on: ROMouseEnter do: [ :event | 
view shape line color: Color blue. 
view edgesFrom: [ :i | i \\ 2 ].
].
view nodes: (1 to: 20).
view shape line.
view treeLayout.
view open
tx,
Usman Bhatti


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

Re: problem with Roassal mouse interaction

abergel
> MouseEnter event does not fire while entering a node.

Yes it does. You've just forgot to signal a refresh (view raw signalUpdate).

Try this:
-=-=-=-=-=-=-=-=-=
view := ROMondrianViewBuilder new.
        view shape rectangle size: 20.
        view interaction on: ROMouseEnter do: [ :event |
                                view shape line color: Color blue.
                                view edgesFrom: [ :i | i \\ 2 ].
                                view raw signalUpdate
                        ].
        view nodes: (1 to: 20).
        view shape line.
        view treeLayout.
        view open
-=-=-=-=-=-=-=-=-=

Cheers,
Alexandre


> This script shows the demonstrates the problem.
>
> view := ROMondrianViewBuilder new.
> view shape rectangle size: 20.
> view interaction on: ROMouseEnter do: [ :event |
> view shape line color: Color blue.
> view edgesFrom: [ :i | i \\ 2 ].
> ].
> view nodes: (1 to: 20).
> view shape line.
> view treeLayout.
> view open
>
> tx,
> Usman Bhatti
>
> _______________________________________________
> 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: problem with Roassal mouse interaction

Usman Bhatti


On Mon, Jun 18, 2012 at 5:28 PM, Alexandre Bergel <[hidden email]> wrote:
> MouseEnter event does not fire while entering a node.

Yes it does. You've just forgot to signal a refresh (view raw signalUpdate).

Yes it was a problem in code. Thanx for pointer. 
Usman



Try this:
-=-=-=-=-=-=-=-=-=
view := ROMondrianViewBuilder new.
       view shape rectangle size: 20.
       view interaction on: ROMouseEnter do: [ :event |
                               view shape line color: Color blue.
                               view edgesFrom: [ :i | i \\ 2 ].
                               view raw signalUpdate
                       ].
       view nodes: (1 to: 20).
       view shape line.
       view treeLayout.
       view open
-=-=-=-=-=-=-=-=-=

Cheers,
Alexandre


> This script shows the demonstrates the problem.
>
> view := ROMondrianViewBuilder new.
>       view shape rectangle size: 20.
>       view interaction on: ROMouseEnter do: [ :event |
>                               view shape line color: Color blue.
>                               view edgesFrom: [ :i | i \\ 2 ].
>                       ].
>       view nodes: (1 to: 20).
>       view shape line.
>       view treeLayout.
>       view open
>
> tx,
> Usman Bhatti
>
> _______________________________________________
> 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