Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Issues with Arrows (Read 2993 times)
Vipins
Guest


Issues with Arrows
Nov 1st, 2005 at 2:30pm
Print Post  
We are working with a ASP.NET web application and we are having a requirement to generate some work flow diagrams dynamically and present it to the user in a web browser. So we came across FlowChart.NET. Recently we downloaded the flowchart.NET trial version and started creating some work flow diagrams dynamically. The layout algorithms are working very nice and diagrams are rendered pretty nice. But we got two issues:-

1.Issue with double Arrows :- Consider two boxes A and B. We have created an arrow from A to B with a text “A to B”. Then we created an arrow from B to A with a text “B to A”. After layout arrangement, the system combines two arrows into a single double arrow but the two texts defined for the two arrows get overlapped.
2.Sometimes we may need to display some more texts (say 50 characters) for arrow. Since we can’t change the length of the arrow based on its text, we are not able to display the arrow text properly (It comes into the nearby boxes).


System Details
1.Developing ASP.NET application using C#
2.Using WebChart.NET DLL for .NET framework 1.1
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Issues with Arrows
Reply #1 - Nov 1st, 2005 at 4:06pm
Print Post  
Regarding the double arrows, I am afraid at this time the component cannot distribute them automatically so they don't cover each other. You could run some code to fix that after the layout routine completes and set the coordinates of arrows using their ControlPoints collections (only for the double arrows). E.g. in vertical layouts, move the arrow control points to the left or right to make space for the arrows text.

Another option that could help both for double arrows and the long arrow text is to use transparent boxes to display the text of arrows. E.g.

Box label = fc.CreateBox( ... some coordinates near the arrow ... );
label.transparent = true;
label.IgnoreLayout = true;
label.text = "the text that should go with the arrow";
label.AttachTo(theArrow, EAttachToArrow.Segment, 0);

Now if the text is very long it will wrap to a second line.

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