Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic FlowLayout ChangeLaneDimensions Property (Read 3348 times)
tom_w
Junior Member
**
Offline


Swimlanes made our dreams
come true :-)

Posts: 79
Joined: Oct 20th, 2008
FlowLayout ChangeLaneDimensions Property
Nov 6th, 2008 at 3:15pm
Print Post  
Hi there,

Does the FlowLayout.ChangeLaneDimensions Property still work if you are using nodes as lanes?

Thanks

Tom
  
Back to top
 
IP Logged
 
tom_w
Junior Member
**
Offline


Swimlanes made our dreams
come true :-)

Posts: 79
Joined: Oct 20th, 2008
Re: FlowLayout ChangeLaneDimensions Property
Reply #1 - Nov 6th, 2008 at 3:18pm
Print Post  
..and also, is there an example that uses nodes as lanes?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: FlowLayout ChangeLaneDimensions Property
Reply #2 - Nov 7th, 2008 at 9:17am
Print Post  
Hi,

It should work. One step of the demo shows nodes used as lanes; there are just places in the back of the Z order, and locked so the user can't select them. To set them as FlowLayout lanes, set node.LayoutTraits[Lane] = true.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
tom_w
Junior Member
**
Offline


Swimlanes made our dreams
come true :-)

Posts: 79
Joined: Oct 20th, 2008
Re: FlowLayout ChangeLaneDimensions Property
Reply #3 - Nov 13th, 2008 at 12:34pm
Print Post  
That's interesting, thanks Stoyan.

Do the nodes have to be locked for this to work? The reason I ask is that I shortly need to add code to 'roll up' some of the lanes.

What I have to achieve is to effectively make the lanes work like containers. The lanes in our system represent hierarchical data, e.g.

Lane 1
-Lane 1.1
--Lane 1.1.1
-Lane 1.2
Lane 2

The client wants to represent the data as lanes, but wants to be able to minimise the data below a certain point in the hierarchy, e.g. to rollup all lanes below Lane 1 (1.1 and 1.1.1 in the example above). There is a fairly reasonable aim for this, which is to allow 'summary' views of the data to be printed with only the top-level processes (which are represented by the lanes) to be displayed.

However, they still want to see the links that are connected to nodes in Lane 1 that join with nodes in the (now rolled up) lanes 1.1. and 1.1.1.

My plan for this was to replace lanes 1.1 and 1.1.1 with a single lane that contains all of the nodes that were in 1.1. and 1.1.1 and retains their horizontal positions, and then to draw one (probably very wide) node across the whole new lane on top of the 'real' nodes. The hope is that all the links will therefore keep working.

How this relates to the nodes as lanes question is that I was considering using nodes for lanes so that I could create a custom lane node that had a minimize/maximise button, but if this node has to be locked then I may be better just placing a node on top of the grid's row headers.

Any general thoughts you or your team have about the above (i.e. is it a really stupid idea) would be very gratefully received!! Smiley

Thanks

Tom
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: FlowLayout ChangeLaneDimensions Property
Reply #4 - Nov 13th, 2008 at 5:37pm
Print Post  
The Locked property doesn't stop the NodeClicked events, so you'll still be able to implement the roll-up function. The lane nodes in the sample are locked so that users can't modify them or create links from them, but the same effect could be achieved by setting EnableHandles = None and AllowIncoming/OutgoingLinks = false.

You might try using ContainerNodes as lanes. They have a fold/unfold button to hide their content and collapse to their caption area height. Links to nodes inside folded containers remain visible.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
tom_w
Junior Member
**
Offline


Swimlanes made our dreams
come true :-)

Posts: 79
Joined: Oct 20th, 2008
Re: FlowLayout ChangeLaneDimensions Property
Reply #5 - Nov 13th, 2008 at 5:45pm
Print Post  
Thanks Stoyan, that's really good info.

I've already had a good look at the containers and they very nearly did what I needed. The issue I hit there was that when a container is folded the nodes inside the container all seemed to move to a single point within the container, or at least that was what seemed to be happening from where the links were going when they entered/exited the container.

This seemed to happen even if I forced the container to retain a minimum width equal to the width of the area containing the nodes in their unfolded state.

What I am looking to do is to retain the horizontal positions of the nodes so that if say a link is coming vertically down from a node in the lane above the container it continues to point vertically down even when the container is folded up.

Any idea if such a thing is possible?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: FlowLayout ChangeLaneDimensions Property
Reply #6 - Nov 14th, 2008 at 8:38am
Print Post  
I suppose we can add some property to let you change where the link ends are placed when a cotainer is folded. Otherwise, you could use the long-nodes-on-top strategy that you've devised; it doesn't look hard to implement 8)

Stoyan
  
Back to top
 
IP Logged
 
tom_w
Junior Member
**
Offline


Swimlanes made our dreams
come true :-)

Posts: 79
Joined: Oct 20th, 2008
Re: FlowLayout ChangeLaneDimensions Property
Reply #7 - Nov 14th, 2008 at 9:15am
Print Post  
Thanks Stoyan.

I'll go for the long node approach for the time being, it's probably simpler than trying to work with a mix of containers and lanes.

Quote:
it doesn't look hard to implement

my type of solution! Cheesy
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint