Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic LinkType in LayeredLayout (Read 2208 times)
KillaChris
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 18
Joined: Apr 25th, 2012
LinkType in LayeredLayout
Jul 16th, 2012 at 7:10am
Print Post  
Hello,
I'd like to know if there is a possibility to use the LinkStyle.Bezier with the LayeredLayout? In the activeX Version of Flowchart it was possible to use a Bezier style, but in the new Version i can only set the style to cascading or straight, but the Bezier style would look much better, is there any workaround or are you planning to implement the style for this layout?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: LinkType in LayeredLayout
Reply #1 - Jul 16th, 2012 at 10:14am
Print Post  
Hi,

If you only need the curved appearance of links, check if enabling Diagram.RoundedLinks will work for you. If not, our developers could port the Bezier code to .NET for the next release.

Stoyan
  
Back to top
 
IP Logged
 
KillaChris
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 18
Joined: Apr 25th, 2012
Re: LinkType in LayeredLayout
Reply #2 - Jul 16th, 2012 at 11:41am
Print Post  
Hello,
the Diagram.RoundedLinks seems not to work for the LayeredLayout. Setting it to true doesn't change anything.
It'd be really nice if the Bezier layout would be available for the LayerLayout as well. It makes the Diagram much more viewable than the Cascade or Straight Layout.

Edit:
Hm it seems that there are more features, which don't work with the LayerdLayout.
I have this code:
Code
Select All
        Dim layeredLt As New MindFusion.Diagramming.Layout.LayeredLayout

        layeredLt.Orientation = Layout.Orientation.Horizontal
        layeredLt.NodeDistance = 100
        layeredLt.LayerDistance = 150
        layeredLt.Margins = New System.Drawing.SizeF(15, 30)
        layeredLt.Arrange(diagramm)

        Dim diagLink As MindFusion.Diagramming.DiagramLink
        For Each diagLink In diagramm.Links
            diagLink.Style = LinkStyle.Cascading
        Next

        Dim diagNode As MindFusion.Diagramming.ShapeNode
        For Each diagNode In diagramm.Nodes
            diagNode.AnchorPattern = MindFusion.Diagramming.AnchorPattern.LeftInRightOut
        Next
 



I'm changing the link style with For ... Next because the result looks much better than setting layeredLt.LinkType = Layout.LayeredLayoutLinkType.Cascading

But the second For ... Next doesn't change anything.
There are still incoming and outgoing links that are at the bottom or the top of the shapes.
Am I doing something wrong or do these features just don't work with the layerdlayout?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: LinkType in LayeredLayout
Reply #3 - Jul 17th, 2012 at 7:31am
Print Post  
If your MeasureUnit is Pixel, try setting larger RoundedLinksRadius to see the effect of RoundedLinks.

Setting a node's AnchorPattern does not realign the link end points automatically. Move the nodes' for-each loop before the links' one and call diagLink.ReassignAnchorPoints to align to the new anchor pattern. If the nodes already have their AnchorPattern set before applying LayeredLayout, setting layout.Anchoring = Reassign will align the link end points to the anchor points too.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
KillaChris
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 18
Joined: Apr 25th, 2012
Re: LinkType in LayeredLayout
Reply #4 - Jul 17th, 2012 at 7:41am
Print Post  
Thank you very much that helped a lot.
If i loop through the links and set the style to Bezier after setting the layout to layeredlayout the Bezier style finally works Smiley
Now the Diagramm is much more readable tyvm Smiley
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint