What i want is to have a loop my the node i am back to the node i am, and I want the node loop to be big and not the smallest thing ive ever seen and I thought i had the right options, as its not working it must mean i am missing one
I have a class inheriting with GoNode and set up the following options
port.Style = GoPortStyle.Object;
port.Size = displayObject.Size;
port.PortObject = displayObject;
port.EndSegmentLength = 0.0f;
port.FromSpot = Northwoods.Go.GoObject.NoSpot;
port.ToSpot = Northwoods.Go.GoObject.NoSpot;
port.IsValidSelfNode = true;
port.IsValidDuplicateLinks = true;
Add(port);
Selectable = true;
Resizable = displayObject.Resizable;
Reshapable = displayObject.Reshapable;
ResizesRealtime = Resizable;
I then have a class inheriting from GoView and override create link…
public override IGoLink CreateLink(IGoPort fromPort, IGoPort toPort)<BR> {<BR> GoObject link = <strong>getting current object here </strong>
if (link != null)<BR> {<BR> link.FromPort = fromPort;<BR> link.ToPort = toPort;<BR> link.Curviness = -50;<BR> link.AvoidsNodes = true;<BR> link.Orthogonal = true;<BR> link.CalculateStroke();<BR> }
Document.Add(obj);<BR> return link;<BR> }
I thought this where I do link.CalculateStroke(); yet that doesn’t seem to do anything
Here is the last snippet for you…
class Link: GoLabeledLink
{
public Link()
{
this.AvoidsNodes = true;
this.Curviness = -50;
this.RealLink.Curviness = -50;
this.RealLink.AvoidsNodes = true;
lineStyle = MapLineStyle.Bezier;
ApplyLineStyle();
}
hope this is enough information to solve this problem
Thanks in advance