GoDiagram Win Reference
GoLink Class Methods


For a list of all members of this type, see GoLink members.

Public Methods
 NameDescription
Public MethodAddObserverRegister an object as an observer of changes to this object. (Inherited from Northwoods.Go.GoObject)
Public MethodAddPointOverloaded. Add another point to the end of this stroke. (Inherited from Northwoods.Go.GoStroke)
Public MethodAddSelectionHandlesOverridden. Unlike a normal GoStroke the end handles are in the shape of diamonds if Relinkable is true.  
Public MethodCalculateArrowheadModify an array of points to hold the four points of a polygon outlining an arrowhead (Inherited from Northwoods.Go.GoStroke)
Public MethodCalculateRouteThis implementation of IGoRoutable just calls CalculateStroke to determine a new path (i.e. a new set of points) for this link.  
Public MethodCalculateStrokeThis method is responsible for determining the points in the stroke, given the positions of the ports.  
Public MethodCanCopyCalled to see if the user can copy this object. (Inherited from Northwoods.Go.GoObject)
Public MethodCanDeleteCalled to see if the user can delete this object. (Inherited from Northwoods.Go.GoObject)
Public MethodCanEditCalled to see if the user can edit this object. (Inherited from Northwoods.Go.GoObject)
Public MethodCanMoveCalled to see if the user can move this object. (Inherited from Northwoods.Go.GoObject)
Public MethodCanPrintCalled to see if the view can print this object. (Inherited from Northwoods.Go.GoObject)
Public MethodCanReshapeCalled to see if the user can reshape this object. (Inherited from Northwoods.Go.GoObject)
Public MethodCanResizeCalled to see if the user can resize this object. (Inherited from Northwoods.Go.GoObject)
Public MethodCanSelectCalled to see if the user can select this object. (Inherited from Northwoods.Go.GoObject)
Public MethodCanViewCalled to see if the user can see this object. (Inherited from Northwoods.Go.GoObject)
Public MethodChangedOverridden. If one of the stroke's points has changed, we notify this link's AbstractLink about the change, so that it has a chance to recalculate its stroke.  
Public MethodChangeValueOverridden. Performs changes for undo and redo.  
Public MethodChangingNotify this object's document or view that some part of this object's state is about to be changed. (Inherited from Northwoods.Go.GoObject)
Public MethodClearPointsRemove all of the points for this stroke. (Inherited from Northwoods.Go.GoStroke)
Public MethodComputeMoveCalculate a new location for this object. (Inherited from Northwoods.Go.GoObject)
Public MethodComputeResizeCalculate a new bounding rectangle for this object. (Inherited from Northwoods.Go.GoObject)
Public MethodContainedByRectangleConsider the Pen width when determining if this shape is inside a rectangle. (Inherited from Northwoods.Go.GoShape)
Public MethodContainsPointA point is in a stroke only if it is near one of its segments. (Inherited from Northwoods.Go.GoStroke)
Public MethodCopyThis convenience method just makes a copy of the object itself, using a generic GoCopyDictionary. (Inherited from Northwoods.Go.GoObject)
Public MethodCopyNewValueForRedoCopies state to permit a redo. (Inherited from Northwoods.Go.GoStroke)
Public MethodCopyObjectOverridden. Copying a link does not immediately set the IGoLink.FromPort and IGoLink.ToPort of the copied link, but does add the link to the copy dictionary's Delayeds collection so that later processing can set those properties.  
Public MethodCopyObjectDelayedOverridden. Make sure both ports are newly copied ports, or else remove this link from the destination layer.  
Public MethodCopyOldValueForUndoCopies state to permit an undo. (Inherited from Northwoods.Go.GoStroke)
Public MethodCopyPointsArrayReturns a copy of the array of points in this stroke. (Inherited from Northwoods.Go.GoStroke)
Public MethodCreateBoundingHandleCreate a bounding handle for this object. (Inherited from Northwoods.Go.GoObject)
Public MethodCreateEditorCreate a GoControl that implements an editor for this object in the given view. (Inherited from Northwoods.Go.GoObject)
Public MethodCreateResizeHandleCreate a resize handle for this object, given a handle ID. (Inherited from Northwoods.Go.GoObject)
Public MethodDoBeginEditStart editing this object in the given view. (Inherited from Northwoods.Go.GoObject)
Public MethodDoEndEditStop editing this object in the given view. (Inherited from Northwoods.Go.GoObject)
Public MethodDoMoveCalled when a user moves this object. (Inherited from Northwoods.Go.GoObject)
Public MethodDoResizeOverridden. Handle resizing in the same manner as GoStroke, but when Orthogonal is true, we move both points of the middle segment in order to maintain orthogonality.  
Public MethodExpandPaintBoundsConsider Pen width, miter limit, drop shadow and highlight in computing the paint bounds. (Inherited from Northwoods.Go.GoStroke)
Public MethodFillDoubleEdgeOverloaded. Set the GoShape.Brush to be a vertical linear gradient starting with the start color, with most of the center being Color.White, and ending with the starting color. (Inherited from Northwoods.Go.GoShape)
Public MethodFillEllipseGradientOverloaded. Set the GoShape.Brush to be a gradient occupying this shape's GoObject.Bounds, with the color color along the four edges of the rectangle, surrounding a very light version of that color. (Inherited from Northwoods.Go.GoShape)
Public MethodFillHalfGradientOverloaded. Set the GoShape.Brush to be a vertical linear gradient starting with a very light version of the color color, and having the last half of the gradient be the solid color color. (Inherited from Northwoods.Go.GoShape)
Public MethodFillMiddleGradientOverloaded. Set the GoShape.Brush to be a vertical linear gradient starting with a very light version of the color color, having the middle with a color lighter than color, and ending with the starting color. (Inherited from Northwoods.Go.GoShape)
Public MethodFillRectangleGradientOverloaded. Set the GoShape.Brush to be a gradient occupying this shape's GoObject.Bounds, with the color color along the four edges of the rectangle, surrounding a very light version of that color. (Inherited from Northwoods.Go.GoShape)
Public MethodFillShadedGradientOverloaded. Set the GoShape.Brush to be a vertical linear gradient starting with a very light version of the color color, having the middle with a color lighter than color, and ending with a darker color than the color. (Inherited from Northwoods.Go.GoShape)
Public MethodFillShapeFringeOverloaded. Set the GoShape.Brush to be a path shaped gradient starting with the start color, with most of the center being Color.White. (Inherited from Northwoods.Go.GoShape)
Public MethodFillShapeGradientOverloaded. Set the GoShape.Brush to be a path shaped gradient with the color color surrounding a very light version of that color. (Inherited from Northwoods.Go.GoShape)
Public MethodFillShapeHighlightOverloaded. Set the GoShape.Brush to be a path shaped gradient that is mostly the start color, with a white "highlight". (Inherited from Northwoods.Go.GoShape)
Public MethodFillSimpleGradientOverloaded. Set the GoShape.Brush to be a simple vertical linear gradient using the given color. (Inherited from Northwoods.Go.GoShape)
Public MethodFillSingleEdgeOverloaded. Set the GoShape.Brush to be a vertical linear gradient starting with the start color, with most of the center being Color.White. (Inherited from Northwoods.Go.GoShape)
Public MethodGetArrowheadPointsCountGets the number of points to be used in the polygon representing an arrowhead. (Inherited from Northwoods.Go.GoStroke)
Public MethodGetContextMenuCalled to get a GoContextMenu to display for this object. (Inherited from Northwoods.Go.GoObject)
Public MethodGetContextMenuStripCalled to get a ContextMenuStrip to display for this object. (Inherited from Northwoods.Go.GoObject)
Public MethodGetCursorNameCalled by GoObject.OnMouseOver to determine the cursor, if any, to display over this object. (Inherited from Northwoods.Go.GoObject)
Public MethodGetNearestIntersectionPointThe closest intersection point of a stroke with a line is the closest such point for each of its segments. (Inherited from Northwoods.Go.GoStroke)
Public MethodGetOtherNodeOverloaded. Return the node at the other end of this link from the given node.  
Public MethodGetOtherPortOverloaded. Return the port at the other end of this link from the given port.  
Public MethodGetPartInfoReturn a GoPartInfo that describes this object and that can be transmitted to the client (user agent) as JavaScript data structures that can be used by code running on the client. (Inherited from Northwoods.Go.GoObject)
Public MethodGetPointGet the point at a particular index. (Inherited from Northwoods.Go.GoStroke)
Public MethodGetRectangleSpotLocationGet the position of a spot in a rectangle. (Inherited from Northwoods.Go.GoObject)
Public MethodGetSegmentNearPointReturn the index of the first point of a segment of this stroke that is close to a given point. (Inherited from Northwoods.Go.GoStroke)
Public MethodGetShadowBrushGet a Brush for painting a drop shadow in the given view. (Inherited from Northwoods.Go.GoObject)
Public MethodGetShadowOffsetGets the size of a drop shadow for this object in the given view. (Inherited from Northwoods.Go.GoObject)
Public MethodGetShadowPenGet a Pen for painting a drop shadow in the given view. (Inherited from Northwoods.Go.GoObject)
Public MethodGetSpotLocationGet the position of a spot on this object. (Inherited from Northwoods.Go.GoObject)
Public MethodGetToolTipOverridden. Return a string to be displayed in a tooltip, or null for none.  
Public MethodInsertPointAdd a point at a particular index, thereby increasing the number of points by one. (Inherited from Northwoods.Go.GoStroke)
Public MethodInvalidateViewsCause all views to repaint this object when they get a chance. (Inherited from Northwoods.Go.GoObject)
Public MethodIsChildOfDetermines if this object is a child, perhaps indirectly, of the given object. (Inherited from Northwoods.Go.GoObject)
Public MethodMakePathReturns a GraphicsPath representation of what will be drawn. (Inherited from Northwoods.Go.GoStroke)
Public MethodOnContextClickCalled when the user context clicks on this object. (Inherited from Northwoods.Go.GoObject)
Public MethodOnDoubleClickCalled when the user double clicks on this object. (Inherited from Northwoods.Go.GoObject)
Public MethodOnEnterLeaveCalled when the document object immediately under the mouse changes as the mouse moves when no particular tool is running or when the GoToolDragging tool is running. (Inherited from Northwoods.Go.GoObject)
Public MethodOnGotSelectionCalled when this object becomes selected. (Inherited from Northwoods.Go.GoObject)
Public MethodOnHoverCalled when the user hovers over this object. (Inherited from Northwoods.Go.GoObject)
Public MethodOnLostSelectionCalled when this object becomes unselected. (Inherited from Northwoods.Go.GoObject)
Public MethodOnMouseOverCalled when the user moves the mouse over this object when not dragging or resizing. (Inherited from Northwoods.Go.GoObject)
Public MethodOnPortChangedLet links get notifications of changes to either port or to the link itself.  
Public MethodOnSelectionDroppedCalled after the user has dropped the selection on this object. (Inherited from Northwoods.Go.GoObject)
Public MethodOnSelectionDropRejectCalled during a user's drag of the view's Selection when the mouse is over this object, to give this object a chance to veto a drop. (Inherited from Northwoods.Go.GoObject)
Public MethodOnSingleClickCalled when the user single clicks on this object. (Inherited from Northwoods.Go.GoObject)
Public MethodPaintA stroke is drawn as a sequence of straight line segments or Bezier curves, with optional arrows at the ends. (Inherited from Northwoods.Go.GoStroke)
Public MethodPickReturn an object at a point, perhaps only a selectable one. (Inherited from Northwoods.Go.GoObject)
Public MethodPortsOnLinkChangedNotify both ports that there was a change to this link.  
Public MethodRemoveThis convenience method just removes this object from its container, if there is any. (Inherited from Northwoods.Go.GoObject)
Public MethodRemoveObserverMake sure an object is not an observer of changes to this object. (Inherited from Northwoods.Go.GoObject)
Public MethodRemovePointRemove the point at a particular index, thereby reducing the number of points by one. (Inherited from Northwoods.Go.GoStroke)
Public MethodRemoveSelectionHandlesBesides removing all selection handles, we also turn off any highlighting if GoStroke.HighlightWhenSelected is true. (Inherited from Northwoods.Go.GoStroke)
Public MethodSetPointReplace the point at a particular index; (Inherited from Northwoods.Go.GoStroke)
Public MethodSetPointsReplace all of the points for this stroke. (Inherited from Northwoods.Go.GoStroke)
Public MethodSetRectangleSpotLocationModify a rectangle such that its new spot location is at a given point. (Inherited from Northwoods.Go.GoObject)
Public MethodSetSizeKeepingLocationSets a new size for this object while maintaining the same location. (Inherited from Northwoods.Go.GoObject)
Public MethodSetSpotLocationOverloaded. Move this object so this object's given spot is at the given location. (Inherited from Northwoods.Go.GoObject)
Public MethodSpotOppositeGet the spot that is on the opposite side of a given spot. (Inherited from Northwoods.Go.GoObject)
Public MethodUnlinkRemove this link from its layer.  
Public MethodUpdateRouteRequest the recalculation of the stroke for this link.  
Top
Protected Methods
 NameDescription
Protected MethodAddOrthoPointsThis 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.  
Protected MethodAdjustPointsAdjust all of the existing points in this link's stroke in an inclusive range according to new first and last stroke points.  
Protected MethodComputeBoundsThe bounding rectangle of a stroke is computed as the smallest rectangle that includes all of the stroke's points. (Inherited from Northwoods.Go.GoStroke)
Protected MethodDrawArrowheadThis method is called by GoStroke.Paint to actually draw an arrowhead. (Inherited from Northwoods.Go.GoStroke)
Protected MethodGetMidOrthoPositionThis method is called by AddOrthoPoints to determine the distance of the middle segment between the two ports.  
Protected MethodGetPathGets a cached GraphicsPath produced by a call to GoShape.MakePath. (Inherited from Northwoods.Go.GoShape)
Protected MethodModifyEndPointsModify only the end points of this stroke to match any new newFromPoint or newToPoint points; intermediate points are not changed.  
Protected MethodOnBoundsChangedChanging the bounds of a stroke may change all of the stroke's points. (Inherited from Northwoods.Go.GoStroke)
Protected MethodOnLayerChangedOverridden. When a link is removed from a layer, also remove it from the collections of connected links of both ports.  
Protected MethodOnObservedChangedCalled when an observed object has been changed. (Inherited from Northwoods.Go.GoObject)
Protected MethodOnParentChangedCalled when this object's parent is changed. (Inherited from Northwoods.Go.GoObject)
Protected MethodRescalePointsMaintain the same shape for the stroke, but scale and rotate according to new points newFromPoint and newToPoint.  
Protected MethodResetPathClear any cached GraphicsPath. (Inherited from Northwoods.Go.GoShape)
Protected MethodStretchPointsStretch the points of this stroke by interpolating the points from startIndex to endIndex between the new points newFromPoint and newToPoint.  
Top
See Also

Reference

GoLink Class
Northwoods.Go Namespace

 

 


© 2015. Northwoods Software Corporation. All Rights Reserved.

Send Feedback