Want curved connector functionality inJGo


#1

Hi Walter,
In microsoft visio ,one curved connector is available.In which only one grabpoint is there(yellow one),by selecting and dragging that point we can reshape our curved connector as line,or any shape depending on drag.
Currently I have a JGoLink , which provides straight link between 2 nodes.What I want is ,to put a curved connector between 2 nodes,so that my task becomes simple.Is there any class for curve (similar to JGoLink) and tell me the appropriate methods also,otherwise tell me the steps to achieve this functionality.
I am newer to JGo,so i am troubling u.Do’nt mind.
Thanks in advance,
Radhika
<V:SHAPE id=_x0000_t75 stroked=“f” filled=“f” path=“m@4@5l@4@11@9@11@9@5xe” o:preferrelative=“t” o:spt=“75” coordsize=“21600,21600”> <V:STROKE joinstyle=“miter”></V:STROKE><V:ULAS><V:F eqn=“if lineDrawn pixelLineWidth 0”></V:F><V:F eqn=“sum @0 1 0”></V:F><V:F eqn=“sum 0 0 @1”></V:F><V:F eqn=“prod @2 1 2”></V:F><V:F eqn=“prod @3 21600 pixelWidth”></V:F><V:F eqn=“prod @3 21600 pixelHeight”></V:F><V:F eqn=“sum @0 0 1”></V:F><V:F eqn=“prod @6 1 2”></V:F><V:F eqn=“prod @7 21600 pixelWidth”></V:F><V:F eqn=“sum @8 21600 0”></V:F><V:F eqn=“prod @7 21600 pixelHeight”></V:F><V:F eqn=“sum @10 21600 0”></V:F></V:ULAS><V:PATH gradientshapeok=“t” o:extrusionok=“f” o:connect=“rect”></V:PATH><O:LOCK aspectratio=“t” v:ext=“edit”></O:LOCK></V:SHAPE><V:SHAPE id=_x0000_i1025 style=“WIDTH: 431.25pt; HEIGHT: 324pt” ="#_x0000_t75"><V:IMAGE o:title="" src=":///C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\mso1\03\clip_image001.png"></V:IMAGE></V:SHAPE>


#2

Call setCubic(true). You can also call setCurviness to programmatically adjust the standard curviness of the link, even as either port is moved.
Users will be able to move the control points of this Bezier curve. Any such adjustments are lost when either port is moved because JGoLink.calculateStroke() will recompute the path of the stroke to match the Curviness.
However, if you want the JGoLink to remember the adjustments that users have made, you may want to call setAdjustingStyle(JGoLink.AdjustingStyleStretch), or perhaps setAdjustingStyle(JGoLink.AdjustingStyleScale).