GoDiagram Web Reference
AddOrthoPoints Method

this point will already have been added to the stroke by CalculateStroke before calling this method
normally 0, 90, 180, or 270 degrees
CalculateStroke will add this point after calling this method
normally 0, 90, 180, or 270 degrees
This method is called by CalculateStroke when Orthogonal is true and both ports are instances of GoPort and at least one of them have a link spot that is not NoSpot.
Syntax
'Declaration
 
Protected Overridable Sub AddOrthoPoints( _
   ByVal startFrom As PointF, _
   ByVal fromDir As Single, _
   ByVal endTo As PointF, _
   ByVal toDir As Single _
) 
protected virtual void AddOrthoPoints( 
   PointF startFrom,
   float fromDir,
   PointF endTo,
   float toDir
)

Parameters

startFrom
this point will already have been added to the stroke by CalculateStroke before calling this method
fromDir
normally 0, 90, 180, or 270 degrees
endTo
CalculateStroke will add this point after calling this method
toDir
normally 0, 90, 180, or 270 degrees
Remarks
CalculateStroke is responsible for adding the first two and the last two points of the stroke, including startFrom and endTo. This method is responsible for adding any additional points in the middle of the stroke. This method calls GetMidOrthoPosition to determine the distance of the middle segment between the two ports. It also tries to avoid the source node and the destination node. When the AvoidsNodes property is true, this method uses another, more computationally expensive, method for determining the proper path of the link, which may have many segments.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

GoLink Class
GoLink Members

 

 


© 2013. Northwoods Software Corporation. All Rights Reserved.

Send Feedback