Post Reply 
applying layouts on distinct graphsubsets
17-11-2009, 11:13 AM
Post: #11
RE: applying layouts on distinct graphsubsets
Hi martin,

Thanks, its working now Smile
Find all posts by this user
Quote this message in a reply
18-11-2009, 08:42 PM
Post: #12
RE: applying layouts on distinct graphsubsets
I've modified the ForceDirectedLayout (attached) following the Martin's hack. It's for solving my problem and may be useful to someone else. Smile

Cheers,
Cassio


Attached File(s)
.as  ForceDirectedLayoutWithFilter.as (Size: 8.96 KB / Downloads: 55)
Find all posts by this user
Quote this message in a reply
18-11-2009, 08:46 PM (This post was last modified: 18-11-2009 08:52 PM by 34all.)
Post: #13
RE: applying layouts on distinct graphsubsets
Hi Cassio,

great, thanks for sharing. I would recommend to start a new thread so that more people find this gem. And - up to you of course - maybe a complete demo is more helpful for newbies rather than posting the class alone.

Greets

martin
Find all posts by this user
Quote this message in a reply
20-11-2009, 04:27 PM
Post: #14
RE: applying layouts on distinct graphsubsets
(18-11-2009 08:46 PM)34all Wrote:  Hi Cassio,

great, thanks for sharing. I would recommend to start a new thread so that more people find this gem. And - up to you of course - maybe a complete demo is more helpful for newbies rather than posting the class alone.

Greets

martin

Hi Martin, of course, as soon as a I get it working I will post a demo. I'm kinda stucked, maybe you can help me here

cheers,
cassio
Find all posts by this user
Quote this message in a reply
04-12-2009, 05:19 PM (This post was last modified: 04-12-2009 05:20 PM by ksiomelo.)
Post: #15
Question RE: applying layouts on distinct graphsubsets
Hello guys,

I slightly modified the behavior of the Demo to show a Sunbust app (RadialTreeLayout) + Circular Layout, however the ExpandControl is not collapsing/expanding the children nodes in the Circular Layout.

Does anyone have a clue about that?? Does Circular Layout respond to a ExpandControl event??

The code is attached, it's part of my masters project so I appreciate any help!!

Cassio


Attached File(s)
.as  CombiningLayoutsExpandControl.as (Size: 23.77 KB / Downloads: 35)
Find all posts by this user
Quote this message in a reply
08-12-2009, 04:02 PM
Post: #16
Exclamation RE: applying layouts on distinct graphsubsets
I've replaced the ExpandControl to a function that collapses/expands nodes when clicked. It still doesn't work for the nodes in the CircularLayout..

Please shed a light on this issue!

Cassio


Attached File(s)
.as  CombiningLayoutsDemo.as (Size: 25.18 KB / Downloads: 32)
Find all posts by this user
Quote this message in a reply
09-12-2009, 12:40 AM (This post was last modified: 09-12-2009 12:44 AM by 34all.)
Post: #17
RE: applying layouts on distinct graphsubsets
Looks like the same issue like I replied here

http://goosebumps4all.net/34all/bb/showt...52&pid=988

CircularLayout doesn't take the "expanded" property of nodes, which is set by the ExpandControl in response to user node click ...


A general advice to become happy with flare, I would highly recommend not to hesitate to look into flare's source code to find out how things work and what works. This is not at all to stop you posting questions which I and others here are happy to answer if time permits yet it will save you a lot of time and frustration I assume. After all the ExpandControl has only 90 lines source code, the crucial line
_cur.expanded = !_cur.expanded;
is not that hidden. Once more this is not to blame you posting questions, just something which might made working with flare much more successful.
Find all posts by this user
Quote this message in a reply
09-12-2009, 09:40 PM
Post: #18
RE: applying layouts on distinct graphsubsets
(09-12-2009 12:40 AM)34all Wrote:  Looks like the same issue like I replied here

http://goosebumps4all.net/34all/bb/showt...52&pid=988

CircularLayout doesn't take the "expanded" property of nodes, which is set by the ExpandControl in response to user node click ...


A general advice to become happy with flare, I would highly recommend not to hesitate to look into flare's source code to find out how things work and what works. This is not at all to stop you posting questions which I and others here are happy to answer if time permits yet it will save you a lot of time and frustration I assume. After all the ExpandControl has only 90 lines source code, the crucial line
_cur.expanded = !_cur.expanded;
is not that hidden. Once more this is not to blame you posting questions, just something which might made working with flare much more successful.

Hi Martin, you're absolutely right. In fact I started to look at AS and Flare just a couple of weeks ago and I was not that 'confident' to dig into the code. In my mind there was a simple solution for this but, as you said, I have to modify the behavior of the FDLayout anyway. I just did a couple of modifications following your comment. I appreciate your attention. Sorry for bothering.

Cheers,
Cassio
Find all posts by this user
Quote this message in a reply
14-04-2010, 04:36 PM
Post: #19
RE: applying layouts on distinct graphsubsets
Whoooa, never saw this thread!! very cool...
I'm thinking about a cool way to use it Smile

thx

<joky />

One year ago, i didn't know flare. Thanks to this board, i do..
I now want to help you if I can. Ask for help...
Visit this user's website Find all posts by this user
Quote this message in a reply
22-06-2010, 03:30 AM
Post: #20
RE: applying layouts on distinct graphsubsets
(09-12-2009 12:40 AM)34all Wrote:  A general advice to become happy with flare, I would highly recommend not to hesitate to look into flare's source code to find out how things work and what works.

this is the most basic thing to do. questions will surely be lessened if you read this, or might as well solve everything. people tend to ignore things like this, which is stupid enough. lol.

Eye Cream
Stretch Mark Cream
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump: