Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Modify Link after swimlane layout (Read 4528 times)
binuvc
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 46
Joined: Nov 7th, 2011
Modify Link after swimlane layout
Apr 27th, 2012 at 9:40am
Print Post  
Hi,


Once we apply the swimlane layout, we are not able to modify the link beginconnectionpoint and endconnectionpoint. It is allowing to modify the intermediate control points of the link. Begin and end connectionpoints are reverting back to the previous points itself.


Following is the code that we use to apply swimlane layout

    SwimlaneLayout layout = new SwimlaneLayout();
            layout.Anchoring = Anchoring.Ignore;
            layout.CollapseEmptyLanes = false;
            layout.CompactNodes = false;
            layout.Direction = MindFusionLayout.Direction.Straight;
            layout.KeepGroupLayout = false;
            layout.KeepLaneSizes = true;
            layout.LaneDistance = 150;            
            layout.NodeDistance = 50;
            layout.Orientation = MindFusionLayout.Orientation.Horizontal;            

            layout.Margins = new Size(
                     diagramLite.LaneGrid.GetRowHeaderBounds().Width,
                     diagramLite.LaneGrid.GetColumnHeaderBounds().Height);
          
            layout.Arrange(diagramLite);

            var rect = diagramLite.LaneGrid.GetColumnHeaderBounds();
            rect.Union(diagramLite.LaneGrid.GetRowHeaderBounds());
            diagramLite.Bounds = rect;

Please advice.


Thanks
BinuVC
« Last Edit: Apr 27th, 2012 at 11:17am by binuvc »  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: Modify Link after swimlane layout
Reply #1 - Apr 27th, 2012 at 1:24pm
Print Post  
Hi,

I am not able to reproduce this. Can you attach a small sample illustrating it?

Regards,
Meppy
  
Back to top
 
IP Logged
 
binuvc
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 46
Joined: Nov 7th, 2011
Re: Modify Link after swimlane layout
Reply #2 - Apr 27th, 2012 at 3:14pm
Print Post  
Hi,

Please find the attached sample.

Also included in the project is a txt file listing the issues noted.
I have added 3 issues that have been posted separately in the forum.

1) if all the lanes in a diagram are empty, layout.arrayge throws error.
2) empty lanes dissappearing on applying layout
3) not able to move links once layout is applied

Please advice.

Thanks
BinuVC
  

SilverlightApplication2.zip (Attachment deleted)
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: Modify Link after swimlane layout
Reply #3 - Apr 27th, 2012 at 3:34pm
Print Post  
Hi,

1) This is a bug. We will fix it.
2) This is by design and can be worked around using one of the suggestions from this thread.
3) It appears that the layout sets Diagram.RoutingOptions.Anchoring to Anchoring.Reassign which causes subsequent modifications of the link end points to reset to the nearest anchor. To resume the link modification behavior set this property to Anchoring.Ignore after the layout has been applied. This is something we will likely fix too to avoid side effects caused by the layout.

Regards,
Meppy
  
Back to top
 
IP Logged
 
binuvc
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 46
Joined: Nov 7th, 2011
Re: Modify Link after swimlane layout
Reply #4 - Apr 27th, 2012 at 4:28pm
Print Post  
Many Thanks !!
Finally it is working!!

Thanks
BinuVC
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint